Repository navigation
Open
Labels
area: agentTouches the agent turn loop, compaction, or agent eventsdesignNeeds a design decisionenhancementNew capability
Milestone
Description
Goal
Let the model delegate a bounded task to a subagent with its own context, tools, model, and effort. The subagent returns a report, so search-heavy or parallel work does not flood the main context.
Acceptance criteria
- Subagent definitions (name, description, tools, model, effort, and prompt) load from user and project directories in the package format defined by the extensibility epic (Epic: Extensibility through hooks, skills, agents, and packages #157).
- The parent receives only the final report, and the subagent's tool calls pass through the same permission gate.
- Several subagents can run concurrently, and cancelling the parent turn cancels them all.
- An
isolation: "worktree"option runs a writing subagent in its own git worktree and reports the worktree path and branch with the result. - Configurable limits bound concurrent subagents, nesting depth, and wall-clock time per subagent. Their defaults are 8, 3, and 30 minutes, respectively. A call that exceeds a limit returns an error to the model.
- Cost and token usage are included in the session totals.
- Agents whose definitions set
memoryget their own memory directory under the project memory directory from Keep a memory directory for each project #171, added to the workspace roots, and tests cover it.
Notes
Subagents reuse the agent execution core from #168.
Per-agent memory moved here from #171, which provides the project memory directory it nests under.
Each subagent persists as its own session in the session store from #729, linked to its parent by a parent session column that an additive schema revision adds.
Metadata
Metadata
Assignees
Labels
area: agentTouches the agent turn loop, compaction, or agent eventsdesignNeeds a design decisionenhancementNew capability
Type
Projects
- StatusShow more project fieldsTodo
Activity
docs: track planned work in GitHub issues (#188)
hakula139 commentedon Oct 28, 2026
Persistence note added to the description: subagent sessions go into the session store from #729, linked to their parent by a column an additive schema revision adds.