SessionStart

SessionStart is a hook for Claude Code from NeuralNexusNote/n3mcmcp-lite. Its token cost is not measured, scanned B, original, Apache-2.0.

A session-start hook that runs a Python permission-installation script when a coding session begins.

In plain words
What is it for?
Use it to install or configure permissions automatically when the session starts.
Why use it?
It automates setup work that would otherwise need to be performed manually at the start of each session.

Hook for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the n3mc-workingmemory plugin — 1 hook shipped together

Good fit Use it to install or configure permissions automatically when the session starts.

Compare 6 hooks from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add NeuralNexusNote/n3mcmcp-lite
Claude Code
/plugin install n3mc-workingmemory

Made for: Claude Code.

Or install n3mc-workingmemory, the plugin that ships this one along with the rest of its 1 hook.

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/neuralnexusnote/n3mcmcp-lite/session-start/github.svg)](https://agentmods.dev/hooks/neuralnexusnote/n3mcmcp-lite/session-start)
Your own site
<a href="https://agentmods.dev/hooks/neuralnexusnote/n3mcmcp-lite/session-start"><img src="https://agentmods.dev/badge/hooks/neuralnexusnote/n3mcmcp-lite/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/neuralnexusnote/n3mcmcp-lite/session-start"><img src="https://agentmods.dev/badge/hooks/neuralnexusnote/n3mcmcp-lite/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 B 1 finding. 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 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 6d 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": "python \"${CLAUDE_PLUGIN_ROOT}/hooks/install_permissions.py\" || py \"${CLAUDE_PLUGIN_ROOT}/hooks/install_permissions.py\" || python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/install_permissions.py\" || echo '{\"systemM
plugins/n3mc-workingmemory/hooks/hooks.json · 13 lines

What it actually says

{
  "SessionStart": [
    {
      "matcher": "*",
      "hooks": [
        {
          "type": "command",
          "command": "python \"${CLAUDE_PLUGIN_ROOT}/hooks/install_permissions.py\" || py \"${CLAUDE_PLUGIN_ROOT}/hooks/install_permissions.py\" || python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/install_permissions.py\" || echo '{\"systemMessage\": \"[n3mc-workingmemory] Python was not found on PATH (tried python, py, python3), or the permission script failed, so the memory tools may not be pre-approved and Claude Code may ask for permission on every memory call. Install Python 3, or add \\\"mcp__plugin_n3mc-workingmemory_n3mc-workingmemory__*\\\" to permissions.allow in ~/.claude/settings.json.\", \"hookSpecificOutput\": {\"hookEventName\": \"SessionStart\", \"additionalContext\": \"[n3mc-workingmemory] Python was not found on PATH (tried python, py, python3), or the permission script failed, so the memory tools may not be pre-approved and Claude Code may ask for permission on every memory call. Install Python 3, or add \\\"mcp__plugin_n3mc-workingmemory_n3mc-workingmemory__*\\\" to permissions.allow in ~/.claude/settings.json.\"}}'"
        }
      ]
    }
  ]
}
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. 8d ago Changed 8316d80e5aa5
  2. 10d ago Changed 27eb19a7fce0
  3. 19d ago Changed scan A → B 90ffcd49df71
  4. 3mo ago First seen · 13 lines scan A d095031370cd

Subscribe to this mod's changes

SessionStart is a hook published in the GitHub repository NeuralNexusNote/n3mcmcp-lite (0 stars, last pushed yesterday), licensed Apache-2.0. 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-31.

Related

SessionStart compared with hooks from other repositories

SessionStart next to 6 hooks from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
SessionStartNeuralNexusNote/n3mcmcp-liteHook0yesterdayApache-2.0B—Claude Code
SessionStartsupabase/supabaseHook116ktodayApache-2.0A—Claude Code
PostToolUsesupabase/supabaseHook116ktodayApache-2.0A—Claude Code
SessionStartgoogle-gemini/gemini-cliHook110ktodayApache-2.0A—Claude Code
PreToolUseapache/supersetHook76ktodayApache-2.0A—Claude Code
PreToolUseheygen-com/hyperframesHook95ktodayApache-2.0A—Claude Code
PostToolUseanthropics/claude-plugins-officialHook49ktodayApache-2.0A—Claude Code