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
Slim subagent_spawn tool descriptions; move lifecycle guidance to the skill (progressive disclosure) #62
Once the delegate capability group is loaded, subagent_spawn's parameter descriptions carry a large amount of lifecycle guidance inline: when to spawn vs do it inline, "do not poll with subagent_check", the worktree contract (commit expectations, merge semantics, reclamation rules), model/reasoning precedence, plan-mode interactions. That prose:
Duplicates skills/subagents/SKILL.md and the agent-types docs almost verbatim.
Stays resident in the parent's context for every turn after the group loads — the cost is paid on every request, not once.
Contradicts the repo's own stated philosophy: "Keep model-facing schemas compact and progressively disclose specialized capabilities and detailed instructions only when needed" (AGENTS.md, Design stance).
Measured from a live session: the spawn tool schema + its description + the precedence rules repeated across agent_type/model/reasoning_effort parameter descriptions are on the order of several KB of resident tokens per turn.
Proposal
Slim tool descriptions down to: what the tool does, parameter shapes, and one-line invariants that prevent immediate misuse (e.g. "fire-and-forget: results arrive automatically; do not poll").
Move lifecycle guidance (worktree contract, merge semantics, when to delegate) to the skill, which the runtime already surfaces as progressive disclosure ("Before first use, read the matching OpenPI capability guidance: …").
Same treatment for the model/reasoning precedence chain: state it once (on the parameters that actually take overrides), not three times across the schema.
Consider an assertion in the existing provider-surface budget test that caps the resident schema size for the delegate group, so descriptions can't silently regrow.
Activity