Skip to content

Commit 1939cdb

Browse files
committed
Update README to reflect new state fields, max depth, and live child sessions
1 parent b53ed14 commit 1939cdb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The agent spawns a child with its own clean context, researches, and caches the
7979

8080
### Spawn — isolate noise
8181

82-
Delegate messy, exploratory work to an isolated child agent. The child has its own clean context, inherits your model and tools, and reports back condensed results. The parent stays focused.
82+
Delegate messy, exploratory work to an isolated child agent. The child has its own clean context, inherits your model and active tools except `handoff`, and only gets `spawn` when depth allows it. The parent stays focused.
8383

8484
```typescript
8585
// The agent calls spawn — you never see the child's messy exploration
@@ -90,7 +90,7 @@ spawn({
9090
// Returns: a concise summary. All intermediate noise stays in the child.
9191
```
9292

93-
- Max depth: 2 (parent → child → grandchild)
93+
- Max depth: 1 (parent → child only)
9494
- Real-time TUI rendering of the child session
9595
- Token cost and usage stats reported back
9696
- Ledger writes from children are visible to parent (same shared state)
@@ -182,6 +182,9 @@ interface AgenticodingState {
182182
lastContextPercent: number | null // last reading from getContextUsage()
183183
pendingHandoff: { task, source } | null
184184
pendingRequestedHandoff: { direction, ... } | null
185+
childSessions: Map<string, AgentSession> // render handoff queue keyed by toolCallId
186+
liveChildSessions: Map<string, AgentSession> // live registry, including claimed sessions
187+
childSessionEpoch: number // increments on /new to invalidate stale child updates
185188
}
186189
```
187190

0 commit comments

Comments
 (0)