Skip to main content
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.
The status line is for Claude Code only. It checks whether the marketplace plugin is enabled, so it does not suit other agents or a manual Claude Code hook.

Set up the Claude Code status line

Add a statusLine entry to ~/.claude/settings.json. Claude Code picks up the change without a restart. Choose the runner that matches your environment:

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 to statusline, 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>.
Last modified on October 22, 2026