Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"name": "subagent-lifecycle",
"frames": {
"running": {
"prompt": "Preview a foreground subagent while it is reading.",
"parts": [
{ "type": "text", "text": "Running delegated work:" },
{
"type": "subagent",
"agent": "explore",
"description": "Inspect renderer",
"state": "running",
"childTools": [
{
"tool": "read",
"title": "src/cli/cmd/tui/routes/session/index.tsx",
"input": { "filePath": "src/cli/cmd/tui/routes/session/index.tsx" }
}
]
}
]
},
"active-background": {
"prompt": "Preview a launched background subagent whose child is still reading.",
"parts": [
{ "type": "text", "text": "Active background work:" },
{
"type": "subagent",
"agent": "explore",
"description": "Inspect renderer",
"state": "active-background",
"childTools": [
{
"tool": "read",
"title": "src/cli/cmd/tui/routes/session/index.tsx",
"input": { "filePath": "src/cli/cmd/tui/routes/session/index.tsx" }
}
]
}
]
},
"retrying": {
"prompt": "Preview a background subagent retrying an upstream request.",
"parts": [
{
"type": "subagent",
"agent": "explore",
"description": "Retry provider request while maintaining context",
"state": "retrying",
"background": true,
"message": "Rate limited by provider; retrying after quota window",
"attempt": 2
}
]
},
"failed": {
"prompt": "Preview a delegated task failure.",
"parts": [
{
"type": "subagent",
"agent": "general",
"description": "Fail delegated work after checking upstream status",
"state": "error",
"error": "Provider returned an authentication error"
}
]
},
"completed": {
"prompt": "Preview completed foreground and background subagents.",
"parts": [
{ "type": "text", "text": "Completed delegated work:" },
{
"type": "subagent",
"agent": "general",
"description": "Answer directly",
"state": "completed",
"durationMs": 501
},
{
"type": "subagent",
"agent": "general",
"description": "Answer directly",
"background": true,
"state": "completed",
"durationMs": 501
},
{
"type": "subagent",
"agent": "explore",
"description": "Inspect renderer",
"background": true,
"state": "completed",
"durationMs": 501,
"childTools": [
{
"tool": "read",
"title": "src/cli/cmd/tui/routes/session/index.tsx",
"state": "completed",
"input": { "filePath": "src/cli/cmd/tui/routes/session/index.tsx" }
}
]
}
]
}
}
}
Loading
Loading