Repository navigation
2.10.1 - The session-start hook shows the model sheet, so every pstack subagent runs on it
Latest@ShumRain reported in #104 that a /poteto-mode chat in T3 sometimes started its subagents with Claude Code's own Agent tool instead of delegate_task. Those subagents ran at the parent's model and reasoning level, and the model sheet's per-role lines never applied. Nothing failed, so it was easy to miss. A count of the maintainer's own T3 poteto-mode chats with subagents found the same: 11 of 25 used the native Agent tool for real work, and 8 never called delegate_task.
Why it happened. The chat chose its tool before it had read the sheet. The routing text asked it to read the sheet "before the first subagent or panel", but injected only that instruction. Without the sheet, an Opus subagent of an Opus chat looks like the case T3's own guidance sends to the native tool, the same provider and model with no extra settings. Only the sheet's effort= makes it a delegate_task case, and the native tool cannot set a reasoning level at all. The routing text also scoped delegate_task to "a step it says to delegate" and never named the native tools.
The hook shows the sheet. session-start.sh already decoded the sheet to check session hook: off. When the hook is on and the sheet has a role line, it now appends the sheet's path and role lines after the routing text, keeping the # defaults: and # budget: lines and leaving out other comments, blank lines, and the session hook: line:
Model sheet (/Users/you/.config/t3-pstack/models.md):
# defaults: 3
# budget: small (low)
swarm workers: claudeAgent/claude-opus-5-5 effort=low
...
The lines take the same path as the routing text, so Claude Code, Codex, and Kiro get them as plain text, and Antigravity and Devin inside the same JSON string. session-start.ps1 writes the same bytes on Windows. Claude Code's hook matches compact and Kiro's hooks file runs on PostCompact, so on those hosts a long chat gets the lines back when it is compacted.
The routing text says to use it. Its T3 paragraph now says the sheet below is the user's setting for every pstack subagent, and that every working subagent and panel seat starts with delegate_task and the target from its role's line, also when that line names the chat's own provider and model. It names the native tools, Agent on Claude Code, spawn_agent on Codex, and invoke_subagent on Antigravity, says they run the child at the chat's model and level and cannot set the reasoning option, and keeps them for read-only searches. The chat reads the sheet file only when no sheet is shown. The rest of the paragraph stays: where the sheet lives, that the chat runs the playbook itself, that the reply names the provider and model of each step, and that a delegate_task child is a leaf.
| Session | 2.10.0 | 2.10.1 |
|---|---|---|
| Started by T3, sheet with role lines | Routing text, 1852 bytes | Routing text, 2263 bytes, and the sheet's lines |
| Started by T3, no sheet or no role line | Routing text, 1852 bytes | Routing text, 2263 bytes |
| Sheet turns the hook off, or outside T3 | Nothing, or {} on Antigravity and Devin |
The same |
What stays the same. Neither hooks/hooks.json nor hooks/codex-hooks.json changes, and both pins in tools/frozen-hooks.json stay. Lauren's skill text does not change. Every changed file is port-only: the two session-start scripts, the routing text, the README, and the tests.
This is a port release. It syncs nothing from Lauren's pstack, so all three components stay pinned at cursor/plugins aa9d1df, pstack 0.15.51. It is a patch release, since it fixes how the hook routes subagents and adds no skill, capability, or harness. No user has to act. Run npx -y github:chhoumann/t3-pstack update after it, as after every release, so Codex trusts the hook again and each Antigravity profile and Kiro home gets the new scripts. Thanks to @ShumRain for the report, the side-by-side transcripts, and the suggested fix.
Verification.
On macOS 27.0:
- Against a real sheet with nine role lines,
session-start.shwithT3CODE_THREAD_IDset wrote 3144 bytes forclaudeandcodex, the same bytes for each, where 2.10.0 wrote 1852. The routing text grew by 411 bytes and the sheet's lines take 881. Theantigravityanddevinreplies parse as JSON, and each decoded string equals theclaudeoutput.kirowrites its paragraph and then the same lines. With that sheet set tosession hook: off,claudeandcodexwrote nothing andantigravitywrote{}. WithoutT3CODE_THREAD_ID, both wrote nothing. With no sheet,claudewrote the routing text alone. - On 2.10.0's scripts, the 130 new tests in
tests/session-hook.test.mjsthat expect the sheet's lines fail, and CI's Windows job fails the 43 intests/session-hook-windows.test.mjs, each with theModel sheetlines missing. The tests that expect nothing when the hook is off or the session is outside T3 pass on 2.10.0, so each was run against a changedsession-start.sh. One that shows the sheet's lines when the hook is off fails 106 of them. One that writes the header with no role line fails 143, every no-sheet and no-role-line case among them, and one that keeps every comment fails the 8 for the sheet/setup-pstackwrites. bun tools/generate.mjs --checkreports 14 generated files current.GIT_CONFIG_GLOBAL=/dev/null bun test tests/ --timeout 30000passes 899, skips 196, and fails 0. The 132 new passes are the new sheet and host cases, and the 49 new skips are their Windows cases.- shellcheck 0.11.0 passes on
session-start.sh.
No run was in a live T3 thread. Whether a T3 chat now starts its subagents through delegate_task is checked after the release, by comparing chats before and after it.