statusline prints CC Safety Net’s current state as one line of emoji for Claude Code’s status line, such as 🛡️ CC Safety Net ✅🌳. It requires --claude-code, or its short form -cc. Without the flag, it prints an error, shows help, and exits 1. For a multi-line report that explains each problem, run status instead.
Set up the Claude Code status line
Add astatusLine entry to ~/.claude/settings.json. Claude Code picks up the change without a restart. Choose the runner that matches your environment:
- Bun (recommended)
- Claude X
- NPM
- Pipe with existing command
statusline indicators
The line shows one level indicator, then any state indicators in this order:
The level is the effective level after CC Safety Net combines
policy.json with the environment. See Environment. 🔻 and ⚠️ do not name the field or file involved. Run status for the details.
❌ reads only enabledPlugins["cc-safety-net@cc-marketplace"] in your Claude Code settings. With a manual Claude Code hook, the line shows ❌ even though protection is active.
statusline piped input
When you pipe input tostatusline, it reads stdin. It discards Claude Code’s JSON status payload. It keeps any other piped text and puts it in front of the indicators as <stdin> | <status>.