Session start
At the start of a session the agent sees the project: packages, blocking norms, tasks in progress and open questions to the owner. A Claude Code SessionStart hook.
Session start
The idea comes from the harness (the card "Task start"): what the agent sees in its first request decides how many rounds it spends on searching. The harness builds the introduction itself. Here is its small part for any Claude Code session: the SessionStart hook prints a short summary, and Claude Code puts it into the agent's context.
What is in the summary:
- the project name and the installed packages with versions (from
.shtukbase/packages.lock); - the blocking norms:
status: active,level: MUST,mode: enforce: the number and the requirement; - agent tasks in progress (
/work/tasks,status: doing); - open questions to the owner (
/knowledge/questions,status: open).
Each list has at most 25 lines. The summary has no page bodies, only addresses: the agent reads what it needs itself.
Norm TS-R01 says an agent starts a session seeing the norms and the open work. The enforcer is the hook brief.
Boundary: there are no files needed for the task, no first test run and no environment facts, as in the harness. Running the checks at the start is done by the package gate, if it is installed.