← ClaudeAtlas

agent-definition-snapshot-at-session-startlisted

A subagent reports a tool as unavailable and the harness says it is "disabled for this session, in subagents as well as here" — but the main session is using that tool fine. Use when: (1) you edited a file in `.claude/agents/` and dispatched that agent in the SAME session to confirm the fix; (2) a subagent returns "No such tool available: X" for a tool listed in its own `tools:` frontmatter; (3) a newly written agent file returns "Agent type '<name>' not found"; (4) you are about to escalate a subagent capability gap as a harness limitation or a settings problem. The agent registry — file list AND file contents — is resolved once at session start, so a correct repair reports as a failure and the failure names the tool rather than the staleness. Prevents a stale snapshot being escalated as a missing capability.
MrBinnacle/skills · ★ 0 · AI & Automation · score 68
Install: claude install-skill MrBinnacle/skills
# An agent definition is snapshotted at session start ## Problem The natural loop for repairing a subagent is: read its definition, fix the frontmatter, dispatch the agent, confirm the fix. **That loop cannot work.** The Agent tool resolves `.claude/agents/*.md` once, at session start. Every edit after that point is inert for the rest of the session. So the confirming dispatch runs against the pre-repair snapshot, and **a correct repair reports as a failure.** Worse, the failure report names the *tool*, not the staleness — which sends the next hour hunting a capability that is not missing. ## Context / Trigger Conditions Any one of these: - A subagent returns **`Error: No such tool available: X. X is disabled for this session, in subagents as well as here.`** while the main session has successfully used `X` in the same session. The second half of that sentence is the generic absent-tool string and is **not a statement about your configuration**. - A subagent reports a tool as unavailable that **is listed in its own `tools:` frontmatter**. - A newly created agent file returns **`Agent type '<name>' not found`** with the file plainly on disk. - You edited anything under `.claude/agents/` earlier in this session. - You are about to write "the harness does not support X in subagents", "no edit to any file in this repository can change that", or "this needs a settings change" — about a subagent capability. ## Solution ### 1. Check the commit time against the sess