Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add hooks/narcooo/ccbar/session-startgit clone --depth 1 https://github.com/Narcooo/ccbarGrade B, and why
SessionStart scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the commands this hook runs, not an audit. A hook is shell that executes on your machine at the event it names, which is why every command in it is printed with what was found.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
"command": "sh -lc 'PLUGIN_DIR=$(find \"$HOME/.claude/plugins/cache\" -mindepth 3 -maxdepth 3 -type d -path \"*/ccbar/*\" 2>/dev/null | sort | tail -n 1); [ -n \"$PLUGIN_DIR\" ] || exit 0; exec node \"$PLUGIN_DIR/dist/cl What it actually says
{
"SessionStart": [
{
"matcher": "startup",
"hooks": [
{
"type": "command",
"command": "sh -lc 'PLUGIN_DIR=$(find \"$HOME/.claude/plugins/cache\" -mindepth 3 -maxdepth 3 -type d -path \"*/ccbar/*\" 2>/dev/null | sort | tail -n 1); [ -n \"$PLUGIN_DIR\" ] || exit 0; exec node \"$PLUGIN_DIR/dist/cli.js\" repair'"
}
]
},
{
"matcher": "resume",
"hooks": [
{
"type": "command",
"command": "sh -lc 'PLUGIN_DIR=$(find \"$HOME/.claude/plugins/cache\" -mindepth 3 -maxdepth 3 -type d -path \"*/ccbar/*\" 2>/dev/null | sort | tail -n 1); [ -n \"$PLUGIN_DIR\" ] || exit 0; exec node \"$PLUGIN_DIR/dist/cli.js\" repair'"
}
]
},
{
"matcher": "clear",
"hooks": [
{
"type": "command",
"command": "sh -lc 'PLUGIN_DIR=$(find \"$HOME/.claude/plugins/cache\" -mindepth 3 -maxdepth 3 -type d -path \"*/ccbar/*\" 2>/dev/null | sort | tail -n 1); [ -n \"$PLUGIN_DIR\" ] || exit 0; exec node \"$PLUGIN_DIR/dist/cli.js\" repair'"
}
]
},
{
"matcher": "compact",
"hooks": [
{
"type": "command",
"command": "sh -lc 'PLUGIN_DIR=$(find \"$HOME/.claude/plugins/cache\" -mindepth 3 -maxdepth 3 -type d -path \"*/ccbar/*\" 2>/dev/null | sort | tail -n 1); [ -n \"$PLUGIN_DIR\" ] || exit 0; exec node \"$PLUGIN_DIR/dist/cli.js\" repair'"
}
]
}
]
}What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 40 lines scan B c5ddda874967
SessionStart is a hook published in the GitHub repository Narcooo/ccbar (23 stars, last pushed 1mo ago), licensed MIT. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other hooks, from other repositories
PostToolUse
Runs after a tool call finishes for Write and Edit tool calls, executing check-design-tokens.mjs. From mnfst/manifest.
ConfigChange
Runs on the ConfigChange event, running observer hook claude-code config-change. From superbasedapp/observer.
InstructionsLoaded
Runs after instructions files are loaded, running observer hook claude-code instructions-loaded. From superbasedapp/observer.
Notification
Runs when the agent sends a notification, running observer hook claude-code notification. From superbasedapp/observer.
PermissionDenied
Runs on the PermissionDenied event, running observer hook claude-code permission-denied. From superbasedapp/observer.
PermissionRequest
Runs when the agent asks permission for an action, running observer hook claude-code permission-request. From superbasedapp/observer.