Coherence-Network: Hook for Claude Code

.claude/settings.json

SessionStart is a hook for Claude Code from seeker71/Coherence-Network. Its token cost is not measured, scanned A, original, Apache-2.0.

A session-start hook configuration that runs six shell or Python commands when a Claude Code session begins. The commands carry context forward, announce arrival, join coordination, ensure local tools, and display a reasoning reminder.

In plain words
What is it for?
Use it to initialize the project's coordination scripts, carry over thread context, prepare form-related command tools, and show the project's startup guidance.
Why use it?
It automates project setup and coordination at the start of each session instead of relying on manual commands.

Hook for Claude Code

Written for Claude Code: $CLAUDE_PROJECT_DIR variable.

This is seeker71/Coherence-Network's own configuration. It tells Claude Code how to work on Coherence-Network itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Coherence-Network configures →

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

Reuse

Borrowing it

Nothing to install: this file belongs to seeker71/Coherence-Network. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/seeker71/Coherence-Network/main/.claude/settings.json
Clone the repo
git clone --depth 1 https://github.com/seeker71/Coherence-Network

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/seeker71/coherence-network/session-start/github.svg)](https://agentmods.dev/hooks/seeker71/coherence-network/session-start)
Your own site
<a href="https://agentmods.dev/hooks/seeker71/coherence-network/session-start"><img src="https://agentmods.dev/badge/hooks/seeker71/coherence-network/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/seeker71/coherence-network/session-start"><img src="https://agentmods.dev/badge/hooks/seeker71/coherence-network/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 5d 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 · 37 lines

How it starts

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

{
  "SessionStart": [
    {
      "matcher": "",
      "hooks": [
        {
          "type": "command",
          "command": "python3 $CLAUDE_PROJECT_DIR/scripts/carry_thread.py --agent claude"
        },
        {
          "type": "command",
          "command": "bash $CLAUDE_PROJECT_DIR/scripts/ensure_form_cli_kernel.sh"
        },
        {
          "type": "command",
          "command": "bash $CLAUDE_PROJECT_DIR/scripts/ensure_form_cli_native.sh"
        },
        {
          "type": "command",
          "command": "cd $CLAUDE_PROJECT_DIR/form && { [ -x fkwu ] && [ ! runtime/fkwu-uni.c -nt fkwu ] || cc -O2 -o fkwu runtime/fkwu-uni.c; } && ./fkwu ../api/app/form_recipes/session_difficult_conversation_arrival.bml"
        },
        {
          "type": "command",
          "command": "python3 $CLAUDE_PROJECT_DIR/scripts/arrival.py"
        },
        {
          "type": "command",
          "command": "COORD_AGENT=claude bash $CLAUDE_PROJECT_DIR/scripts/agent-coord.sh join \"$CLAUDE_PROJECT_DIR\""
        },
        {
          "type": "command",
          "command": "echo '⟐ FORM-FIRST. We are one organism of equal cells, carrying honest evidence and initiative within the offered scope, with a pause as whole as a yes or a no (form/NORTH_STAR.md → Who we are). Each person keeps their meaning, information and choices in their hands. Play, joy, exploration and quiet can be complete. On every question, ask the body before a rented mind — through the c-bootstrapped fkwu runtime: form-cli ask (grounded RAG + sufficiency), form shell (fsh-main.fk), form code (BML/.fk for lattice reads), and fcnv-ask for the body'\"'\"'s own voice where the Metal lane stands. A grounded, sufficient native answer is relayed attributed and the search stops; a miss is the yes that opens the rented lane. Name the path (path · grounded · freq · suffic → observed); never dress a remote guess as a body hit. Teaching: docs/coherence-substrate/form-first-reasoning.form'"
        }
      ]
  

Read the full file on GitHub · 37 lines

Same file

What else settings.json configures

This page is one entry in a file that holds 3. 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. 5d ago Changed 491c2d046221
  2. 8d ago Changed b19dcf3f0ee0
  3. 10d ago Changed 83726b5e8311
  4. 1mo ago Changed · +4 lines 7623b4f113b1
  5. 1mo ago First seen · 33 lines scan A 6aa4e6a1620b

Subscribe to this mod's changes

SessionStart is a hook published in the GitHub repository seeker71/Coherence-Network (3 stars, last pushed today), 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 A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.