You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Agent stubs filled mid-session never take effect: subagent definitions are loaded at session start #830
Found in simulated builds on 2026-11-21 (10 runs on master, real claude -p agents, fresh init-project.sh scaffolds).
What happens: build-ready FAILs on {{…}} placeholders in .claude/agents/*.md (bin/gate-check.sh ~:2527, 9 of 10 runs). Agents fill the stubs mid-session to pass it — but Claude Code loads subagent definitions at session start, so the subagents they then dispatch still run the unfilled stub and refuse (bin/init-agents.sh:67-68). 3 of the 4 runs that dispatched subagents reported this. The gate forces work whose result the session cannot use.
Value: M — wasted turns plus a refusal loop in any session that both fills and dispatches.
Options (DISCUSS):
Fill agent stubs during kickoff (before the build session starts), never mid-session — tell the agent to restart the session after filling.
Stubs read their project-specific values from a file at run time (e.g. PROJECT.md sections) instead of placeholders baked into the definition.
Activity