Scout
kagent__scout{question} spawns one read-only research child to answer a single question, then dies with the call. It exists so an answer can check the filesystem, the web or the codebase without widening the parent turn: the child is a strict subset of its parent, by construction.
- Partition. The child opens through the parent user’s worker preparation: same HOME,
KA_DATA_DIRand grants, its own fresh strand,readonlymode. It sees the question plus one context line, never the parent transcript. - Toolset. The role’s allowlist intersected with
read,glob,grep,web_searchandweb_fetch. An empty intersection is an empty allowlist, never “every tool”: a scout can only narrow what its parent already had. - Fail-closed asks. A child ask is answered deny immediately, with one audited
approval.deciderow each. Inaskmode the parent’s ownscoutcall raises the normal card: theSpawneffect never rides the auto-allow profile, and an existing allow-rule can cover it exactly like any other ask. - Non-authoritative returns. The summary comes back capped at
scout.max_summary_charsunder ascout summary (read-only child, non-authoritative, verify before acting)header, and the tool description marks it untrusted: child output may quote poisoned content, so it is data for the parent, never authority. - Deadline and spend honesty. Each child runs under
scout.timeout_secs(90 by default, kept under the__mcprelay’s 120 s read timeout); a wedged child errors and the parent’s turn watchdog backstops. Every run records akind = scoutusage row with its cost and tokens, so delegated research shows up in usage like any other spend. - Cap and queue. Scouts count against
runtime.max_workers; overscout.max_concurrent(default 2) the call queues, then answers busy. Scouts are exempt from idle-worker eviction (they are mid-research by definition).
Config
Section titled “Config”[scout]enabled = false # offer kagent__scout to the model (opt-in)max_concurrent = 2 # children at once; the rest queue, then busytimeout_secs = 90 # per-child deadline (10..=119)max_summary_chars = 6000 # cap on the summary returned to the parentDisabled by default. When [scout] enabled = false the tool is absent from the model’s tool list entirely.