Sub-broker delegation (cheaper-model side calls) #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
DELEGATE: fast "summarize this 20k-line build log"and the sub-result is fed back into the next turn.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)