SessionStart

SessionStart is a hook for Claude Code from Vinix24/vnx-orchestration. Its token cost is not measured, scanned A, original, MIT.

Session-start hooks that run setup, state-refresh, readiness, path-check, monitoring, and hook-verification scripts when an agent session begins.

In plain words
What is it for?
Use them to close stale sessions, refresh terminal state, signal tmux readiness, check path consistency, start monitoring, and verify that hooks are installed.
Why use it?
They prepare the repository and terminal environment consistently and warn when required state-building files are missing. A terminal is a command-line session.

Hook for Claude Code

One of 6 entries in settings.json — they are configured in one file and arrive together.

Install

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.

agentmods
npx agentmods add hooks/vinix24/vnx-orchestration/session-start
Clone the repo
git clone --depth 1 https://github.com/Vinix24/vnx-orchestration

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/vinix24/vnx-orchestration/session-start.svg)](https://agentmods.dev/hooks/vinix24/vnx-orchestration/session-start)
Your own site
<a href="https://agentmods.dev/hooks/vinix24/vnx-orchestration/session-start"><img src="https://agentmods.dev/badge/hooks/vinix24/vnx-orchestration/session-start.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 4d 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.

.claude/settings.json · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

{
  "SessionStart": [
    {
      "matcher": "",
      "hooks": [
        {
          "type": "command",
          "command": "bash -c 'exec bash \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)/scripts/hooks/session_reconcile_autoclose.sh\"'",
          "timeout": 5000
        }
      ]
    },
    {
      "matcher": "terminals/T0",
      "hooks": [
        {
          "type": "command",
          "command": "bash -c 'if [ -n \"${VNX_HOME:-}\" ] && [ -f \"${VNX_HOME}/scripts/hooks/build_t0_state_hook.sh\" ]; then exec bash \"${VNX_HOME}/scripts/hooks/build_t0_state_hook.sh\"; else printf \"[vnx] build_t0_state_hook artifact MISSING (VNX_HOME unset or hook absent); t0_state.json will not refresh\\n\" >&2; exit 0; fi'"
        }
      ]
    },
    {
      "matcher": "",
      "hooks": [
        {
          "type": "command",
          "command": "bash -c 'exec bash \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)/scripts/hooks/tmux_signal_session_ready.sh\"'",
          "timeout": 5000
        }
      ]
    },
    {
      "matcher": "",
      "hooks": [
        {
          "type": "command",
          "command": "bash -c 'exec bash \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)/scripts/hooks/path_parity_check.sh\"'",
          "timeout": 5000
        }
      ]
    },
    {
      "matcher": "",
      "hooks": [
        {
          "type": "command",
          "command": "bash -c 'exec bash \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)/hooks/monitor_tripwire.sh\"'",
          "timeout": 5000
        }
      ]
    },
    {
      "matcher": "",
      "hooks": [
        {
          "type": "command",
          "command": "bash -c 'exec bash \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)/hooks/sessionstart.sh\"'",
          "timeout": 5000
        }
      ]
    },
    {
      "matcher": "",
      "hooks": [
        {
          "type": "command",
          "command": "bash -c 'exec bash \"$(git rev-parse --show-toplevel 2>/dev/n

Read the full file on GitHub · 73 lines

Same file

What else settings.json configures

This page is one entry in a file that holds 6. 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. 4d ago First seen · 73 lines scan A 2894de7e1870

Subscribe to this mod's changes

SessionStart is a hook published in the GitHub repository Vinix24/vnx-orchestration (57 stars, last pushed today), 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-30.