Skip to content

Slim subagent_spawn tool descriptions; move lifecycle guidance to the skill (progressive disclosure) #62

Closed

Description

@tt-a1i

Problem

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:

  1. Duplicates skills/subagents/SKILL.md and the agent-types docs almost verbatim.
  2. Stays resident in the parent's context for every turn after the group loads — the cost is paid on every request, not once.
  3. 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

  1. added
    enhancement
    on Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions