SessionStart

SessionStart is a hook for Claude Code from Cyvid7-Darus10/claude-code-config. Its token cost is not measured, scanned A, original, MIT.

A session-start hook is an automatic shell command that runs when a coding session begins. It looks for a JavaScript helper in several plugin folders and runs session-start checks with selected modes.

In plain words
What is it for?
It helps trigger startup checks or setup for Claude Code sessions. It is useful when a project relies on the referenced plugin's session-start script.
Why use it?
It can prepare or check the session automatically, so you do not have to run the same setup command by hand. The input does not say exactly what the session-start script changes.

Hook for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT variable.

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

One of 7 entries in hooks.json upstream. Installing this one merges just its entry into your config; the other 6 are separate, each on its own page.

Good fit It helps trigger startup checks or setup for Claude Code sessions. It is useful when a project relies on the referenced plugin's session-start script.

Compare 6 hooks from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote 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.

agentmods badge for SessionStart

README.md
[![agentmods](https://agentmods.dev/badge/hooks/cyvid7-darus10/claude-code-config/session-start/github.svg)](https://agentmods.dev/hooks/cyvid7-darus10/claude-code-config/session-start)
Your own site
<a href="https://agentmods.dev/hooks/cyvid7-darus10/claude-code-config/session-start"><img src="https://agentmods.dev/badge/hooks/cyvid7-darus10/claude-code-config/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.

agentmods 80×15 button for SessionStart

Your own site · 80×15
<a href="https://agentmods.dev/hooks/cyvid7-darus10/claude-code-config/session-start"><img src="https://agentmods.dev/badge/hooks/cyvid7-darus10/claude-code-config/session-start.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

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 1mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

hooks/hooks.json · 14 lines

What it actually says

{
  "SessionStart": [
    {
      "matcher": "*",
      "hooks": [
        {
          "type": "command",
          "command": "bash -lc 'input=$(cat); for root in \"${CLAUDE_PLUGIN_ROOT:-}\" \"$HOME/.claude/plugins/everything-claude-code\" \"$HOME/.claude/plugins/everything-claude-code@everything-claude-code\" \"$HOME/.claude/plugins/marketplace/everything-claude-code\"; do if [ -n \"$root\" ] && [ -f \"$root/scripts/hooks/run-with-flags.js\" ]; then printf \"%s\" \"$input\" | node \"$root/scripts/hooks/run-with-flags.js\" \"session:start\" \"scripts/hooks/session-start.js\" \"minimal,standard,strict\"; exit $?; fi; done; for parent in \"$HOME/.claude/plugins\" \"$HOME/.claude/plugins/marketplace\"; do if [ -d \"$parent\" ]; then candidate=$(find \"$parent\" -maxdepth 2 -type f -path \"*/scripts/hooks/run-with-flags.js\" 2>/dev/null | head -n 1); if [ -n \"$candidate\" ]; then root=$(dirname \"$(dirname \"$(dirname \"$candidate\")\")\"); printf \"%s\" \"$input\" | node \"$root/scripts/hooks/run-with-flags.js\" \"session:start\" \"scripts/hooks/session-start.js\" \"minimal,standard,strict\"; exit $?; fi; fi; done; echo \"[SessionStart] WARNING: could not resolve ECC plugin root; skipping session-start hook\" >&2; printf \"%s\" \"$input\"; exit 0'"
        }
      ],
      "description": "Load previous context and detect package manager on new session"
    }
  ]
}
Same file

What else hooks.json configures

This page is one entry in a file that holds 7. Installing the file brings all of them; each is measured and scanned on its own page.

Changes

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.

  1. 1mo ago First seen · 14 lines scan A 0efb4bce4ac2

Subscribe to this mod's changes

SessionStart is a hook published in the GitHub repository Cyvid7-Darus10/claude-code-config (2 stars, last pushed 3mo 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.