diff options
| author | Claude <noreply@anthropic.com> | 2026-10-15 22:30:36 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-10-15 22:30:36 +0000 |
| commit | ba27dfbea7ee01b2cbaf4fbfd6ed23c074b3ca88 (patch) | |
| tree | f4dc2ef8188ed691fdc968d299be198548403642 /plugins/security-guidance/README.md | |
| parent | 7b5d1742310abe7d90f10aa574adfa0613226ec6 (diff) | |
| parent | 7b2259ba542c313099b1f00be8b670f7aa0c63bb (diff) | |
Merge remote-tracking branch 'origin/main' into mhegazy/sg-no-credentials-notice
# Conflicts:
# plugins/security-guidance/hooks/security_reminder_hook.py
Diffstat (limited to 'plugins/security-guidance/README.md')
| -rw-r--r-- | plugins/security-guidance/README.md | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/security-guidance/README.md b/plugins/security-guidance/README.md index c51dcb4a..18e5cddc 100644 --- a/plugins/security-guidance/README.md +++ b/plugins/security-guidance/README.md @@ -68,6 +68,14 @@ Claude Code does not pass your sign-in to plugins in a session started with `CLA | `ENABLE_STOP_REVIEW=0` | on | Disable only the Stop-hook diff review, keeping commit/push reviews. Useful for multi-agent / shared-worktree setups where another agent can move HEAD between a worker's turns | | `ENABLE_COMMIT_REVIEW=0` | on | Disable layer 3 (agentic commit review) | +### Hook output for other hosts + +```bash +SECURITY_GUIDANCE_PORTABLE_OUTPUT=1 # default: detected +``` + +The hooks' JSON output carries two fields that only Claude Code reads (`metrics` and `rewakeSummary`), and the SessionStart hook prints a separate `{"async": ...}` line first. A host that validates hook output against a closed schema rejects them. In portable mode they are left out, so every hook prints one JSON object with only the standard fields (`decision`, `reason`, `systemMessage`, `hookSpecificOutput`), and the SessionStart hook runs to completion before the host continues. It turns on by itself when the host passes `PLUGIN_ROOT` and does not identify itself as Claude Code; set the variable to `1` or `0` to force it either way. + ### Higher-recall mode ```bash @@ -80,7 +88,7 @@ Runs two parallel review calls and unions the findings. Catches a few percentage Drop a `claude-security-guidance.md` in any of: -- `~/.claude/claude-security-guidance.md` — user-wide rules +- `~/.claude/claude-security-guidance.md` — user-wide rules (when `CLAUDE_CONFIG_DIR` is set, the same file in that directory is read too) - `<project>/.claude/claude-security-guidance.md` — project rules, intended to be committed - `<project>/.claude/claude-security-guidance.local.md` — local overrides, intended to be `.gitignore`'d |
