SessionStart

A startup hook that prints the repository’s recent commits, circuit build files, and the end of the latest test log when a session begins.

In plain words
What is it for?
Use it to inspect the current state of a repository automatically at session start.
Why use it?
It gives the agent a quick view of recent project activity and test status before work starts.

Hook for Claude Code

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/bolyra/bolyra/session-start
Clone the repo
git clone --depth 1 https://github.com/bolyra/bolyra

Made for: Claude Code.

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. Scan, not verified.
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 yesterday.

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": "cd \"$CLAUDE_PROJECT_DIR\" 2>/dev/null && { echo '## identityos / Bolyra repo state'; echo; echo '### Recent commits'; git log --oneline -5 2>/dev/null; echo; echo '### Circuit build artifacts'; ls circuits/b
.claude/settings.json · 13 lines

What it actually says

{
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "cd \"$CLAUDE_PROJECT_DIR\" 2>/dev/null && { echo '## identityos / Bolyra repo state'; echo; echo '### Recent commits'; git log --oneline -5 2>/dev/null; echo; echo '### Circuit build artifacts'; ls circuits/build/*_vkey.json 2>/dev/null | xargs -I{} basename {} | sort || echo '(no build artifacts)'; echo; echo '### Last test run'; [ -f .claude/last-test-run.log ] && tail -3 .claude/last-test-run.log || echo '(no test run logged yet)'; }; exit 0",
          "timeout": 10
        }
      ]
    }
  ]
}
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. yesterday First seen · 13 lines scan B b2dbaedaa7f8

Subscribe to this mod's changes

SessionStart is a hook published in the GitHub repository bolyra/bolyra (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.