Skip to content

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_DIR and grants, its own fresh strand, readonly mode. It sees the question plus one context line, never the parent transcript.
  • Toolset. The role’s allowlist intersected with read, glob, grep, web_search and web_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.decide row each. In ask mode the parent’s own scout call raises the normal card: the Spawn effect 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_chars under a scout 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 __mcp relay’s 120 s read timeout); a wedged child errors and the parent’s turn watchdog backstops. Every run records a kind = scout usage 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; over scout.max_concurrent (default 2) the call queues, then answers busy. Scouts are exempt from idle-worker eviction (they are mid-research by definition).
[scout]
enabled = false # offer kagent__scout to the model (opt-in)
max_concurrent = 2 # children at once; the rest queue, then busy
timeout_secs = 90 # per-child deadline (10..=119)
max_summary_chars = 6000 # cap on the summary returned to the parent

Disabled by default. When [scout] enabled = false the tool is absent from the model’s tool list entirely.