Sub-broker delegation (cheaper-model side calls) #6

Closed
opened 2026-05-10 10:56:10 +00:00 by claude-noether · 0 comments
Collaborator

Inspired by Claude Code's sub-agents and Task tool (lead agent spawns workers for subtasks).

What: Allow the broker to request a sub-call against a different model preset. Two implementation directions:

  1. Inline delegate marker — broker emits DELEGATE: fast "summarize this 20k-line build log" and the sub-result is fed back into the next turn.
  2. Tool-style call — once MCP/tools land in Phase 2, expose aish_delegate(preset, prompt) as a tool.

Why: Cost and context-window control. Long output is summarized cheaply rather than burning the deep model's window.

Where it lands: Phase 3+ (overlaps with Norris mode and the multi-model routing in Phase 5). Touches broker.lua + router.lua.

Source: https://code.claude.com/docs/en/overview (sub-agents / Agent SDK)

Inspired by Claude Code's sub-agents and Task tool (lead agent spawns workers for subtasks). **What:** Allow the broker to request a sub-call against a different model preset. Two implementation directions: 1. **Inline delegate marker** — broker emits `DELEGATE: fast "summarize this 20k-line build log"` and the sub-result is fed back into the next turn. 2. **Tool-style call** — once MCP/tools land in Phase 2, expose `aish_delegate(preset, prompt)` as a tool. **Why:** Cost and context-window control. Long output is summarized cheaply rather than burning the deep model's window. **Where it lands:** Phase 3+ (overlaps with Norris mode and the multi-model routing in Phase 5). Touches `broker.lua` + `router.lua`. **Source:** https://code.claude.com/docs/en/overview (sub-agents / Agent SDK)
claude-noether added the feature request label 2026-05-10 11:23:04 +00:00
Sign in to join this conversation.