feat(subagents): add multi-turn subagent session runtime
This commit is contained in:
@@ -136,6 +136,11 @@ Tool Calls (inside NativeAgent loop)
|
||||
| v
|
||||
+---------------------------> AuditLogger (redacted)
|
||||
|
||||
Subagent sessions (multi-turn child agents)
|
||||
parent AgentOrchestrator -> subagent.* tools -> SubagentManager
|
||||
SubagentManager -> child AgentOrchestrator (session namespace: subagent:<parent>:<id>)
|
||||
child AgentOrchestrator -> NativeAgent/tool loop (same policy engine, recursion tools removed)
|
||||
|
||||
Session start (when `memory.user_namespace` is set)
|
||||
AgentOrchestrator -> MemoryStore (user/profile + user/working)
|
||||
AgentOrchestrator -> System prompt (session context injection)
|
||||
@@ -155,6 +160,7 @@ Gateway streaming UX signals:
|
||||
Key files:
|
||||
|
||||
- Routing + per-session agent creation: `src/daemon/routing.ts`
|
||||
- Subagent session manager (child orchestrators): `src/backends/native/subagents.ts`
|
||||
- Runtime preference persistence (`modelTier`, `backendMode`): `src/preferences.ts`
|
||||
- Orchestration: `src/backends/native/orchestrator.ts`
|
||||
- Tool loop: `src/backends/native/agent.ts`
|
||||
|
||||
Reference in New Issue
Block a user