Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add hamchowderr/braynee/plugin install brayneeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/hooks/hamchowderr/braynee/session-start)<a href="https://agentmods.dev/hooks/hamchowderr/braynee/session-start"><img src="https://agentmods.dev/badge/hooks/hamchowderr/braynee/session-start/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/hooks/hamchowderr/braynee/session-start"><img src="https://agentmods.dev/badge/hooks/hamchowderr/braynee/session-start.svg" alt="Reviewed on agentmods" width="80" height="20"></a>Grade A, and why
SessionStart scanned grade A with 0 findings 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
80% identical to UserPromptSubmit — 181 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.
{
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/ensure-obsidian.js"
],
"timeout": 20,
"statusMessage": "Ensuring Obsidian is running..."
}
]
},
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/ensure-dashboard.js"
],
"timeout": 60,
"async": true
}
]
},
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/statusline-resync.js"
],
"async": true,
"timeout": 60
}
]
},
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/scripts/vault-orphan-check.mjs"
],
"timeout": 30,
"async": true,
"statusMessage": "Checking for deleted-but-linked notes..."
}
]
},
{
"matcher": "compact",
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/reinject-after-compact.js"
],
"timeout": 20
}
]
},
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/session-auto-track.js"
],
"timeout": 20
}
]
},
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/braynee-heartbeat.js"
],
"async": true,
"timeout": 60
}
]
},
{
"hooks": [
{
"type": "commanWhat else hooks.json configures
This page is one entry in a file that holds 16. Installing the file brings all of them; each is measured and scanned on its own page.
- Hook ConfigChange A not measured
- Hook CwdChanged A not measured
- Hook DirectoryAdded A not measured
- Hook FileChanged A not measured
- Hook Notification A not measured
- Hook PostCompact A not measured
- Hook PostToolUse A not measured
- Hook PreCompact A not measured
- Hook PreToolUse A not measured
- Hook SessionEnd A not measured
- Hook Stop A not measured
- Hook StopFailure A not measured
- Hook TaskCompleted A not measured
- Hook TaskCreated A not measured
- Hook UserPromptSubmit A not measured
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 Changed · +12 lines e7d0529ed441
- 3mo ago First seen · 181 lines scan A aaeb1b6291e4
SessionStart is a hook published in the GitHub repository hamchowderr/braynee (2 stars, last pushed 2d ago), licensed MIT. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it A with 0 findings. It is 80% identical to UserPromptSubmit, differing in 181 lines, and is treated as a copy.
SessionStart compared with hooks from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| SessionStarthamchowderr/braynee | Hook | 2 | 2d ago | MIT | A | — | Claude Code |
| StopDesko77/claude-code-skills-1c | Hook | 102 | 7d ago | MIT | A | — | Claude Code |
| Stoptractorjuice/arckit-claude | Hook | 8 | 6d ago | none | A | — | Claude Code |
| SessionStartsupabase/supabase | Hook | 116k | today | Apache-2.0 | A | — | Claude Code |
| PostToolUsesupabase/supabase | Hook | 116k | today | Apache-2.0 | A | — | Claude Code |
| SessionStartgoogle-gemini/gemini-cli | Hook | 109k | today | Apache-2.0 | A | — | Claude Code |
| PreToolUseapache/superset | Hook | 76k | today | Apache-2.0 | A | — | Claude Code |