From safety-net
Configures the Safety Net status line in Claude Code settings by writing a shell command to ~/.claude/settings.json. Supports replacing or piping into an existing status line command.
How this command is triggered — by the user, by Claude, or both
Slash command
/safety-net:set-statuslineThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
You are helping the user configure the Safety Net status line in their Claude Code settings. ## Context ### Schema Documentation The `statusLine` field in `~/.claude/settings.json` has this structure: - `type`: Must be `"command"` - `command`: Shell command that outputs the status line text - `padding`: Optional number for spacing ## Your Task Follow this flow exactly: ### Step 1: Ask for Package Runner Use AskUserQuestion to let user select their preferred package runner: ### Step 2: Check Existing Settings Read the current settings file: Parse the JSON and check if `statu...
You are helping the user configure the Safety Net status line in their Claude Code settings.
The statusLine field in ~/.claude/settings.json has this structure:
{
"statusLine": {
"type": "command",
"command": "<shell command to execute>",
"padding": <optional number>
}
}
type: Must be "command"command: Shell command that outputs the status line textpadding: Optional number for spacingFollow this flow exactly:
Use AskUserQuestion to let user select their preferred package runner:
{
"questions": [
{
"question": "Which package runner would you like to use?",
"header": "Runner",
"multiSelect": false,
"options": [
{
"label": "bunx (Recommended)",
"description": "Uses Bun's package runner - faster startup"
},
{
"label": "npx",
"description": "Uses npm's package runner - more widely available"
}
]
}
]
}
Read the current settings file:
cat ~/.claude/settings.json 2>/dev/null || echo "{}"
Parse the JSON and check if statusLine.command already exists.
If statusLine.command already exists:
{
"questions": [
{
"question": "The statusLine command is already set. What would you like to do?",
"header": "Existing",
"multiSelect": false,
"options": [
{
"label": "Replace",
"description": "Replace the existing command with Safety Net statusline"
},
{
"label": "Pipe",
"description": "Add Safety Net at the end using pipe (existing_command | cc-safety-net --statusline)"
}
]
}
]
}
Based on user choices:
If Replace or no existing command:
{
"statusLine": {
"type": "command",
"command": "bunx cc-safety-net --statusline"
}
}
(Use npx -y instead of bunx if user selected npx)
If Pipe:
{
"statusLine": {
"type": "command",
"command": "<existing_command> | bunx cc-safety-net --statusline"
}
}
Show the generated config to the user.
Use AskUserQuestion to confirm:
{
"questions": [
{
"question": "Does this configuration look correct?",
"header": "Confirm",
"multiSelect": false,
"options": [
{
"label": "Yes, apply it",
"description": "Write the configuration to ~/.claude/settings.json"
},
{
"label": "No, cancel",
"description": "Cancel without making changes"
}
]
}
]
}
If user confirms:
~/.claude/settings.json (or start with {} if it doesn't exist)statusLine configuration~/.claude/settings.json with proper JSON formatting (2-space indent)Use the Write tool to update the file.
Tell the user:
~/.claude/settings.json~/.claude/settings.jsonnpx -y (not just npx) to skip prompts when using npmnpx claudepluginhub sachajw/aiops-claude-code-safety-net --plugin safety-net5plugins reuse this command
First indexed Jan 15, 2026
/add-statuslineAdds a statusline configuration block to a Claude settings file (user, project, or local) via interactive selection and file editing.
/setupInstalls the which-claude-code statusline into ~/.claude/settings.json by running an idempotent Bash setup script that backs up existing config. Requires new session or /reload.
/setupInstalls or updates claude-pace, a lightweight statusline for Claude Code. Downloads the latest script and configures the statusLine in settings.json.
/setupDownloads and installs the claudeline statusline binary, configures Claude Code settings.json to use it, and supports updates on re-run.
/setupInstalls and configures the claude-code-status-bar plugin: copies scripts, merges statusLine settings, and sets refresh interval.