II.
Subagent overview
Reference · livesubagent:babysitter-define-task
Babysitter defineTask Subagent overview
Generic shape — every babysitter process exports `defineTask` declarations that become dispatchable subagents at run-time. Each invocation spawns a `kind: 'agent'` subtask in its own subprocess (persistent ChildSession). Concrete user-authored Tasks specialize this shape with a specific impl, prompt, workspace policy, and tool allowlist.
Attributes
displayName
Babysitter defineTask Subagent
provenance
custom
dispatchPattern
subprocess-task
subjectId
agentVersion:claude:ge-0-0-0
systemPrompt
Generic shape covering any `defineTask(id, impl)` export. Every
babysitter process exports defineTask declarations that become
dispatchable subagents at run-time. Each invocation spawns a
`kind: 'agent'` subtask in its own subprocess — a ChildSession with
`lifecyclePolicy: persistent` — and the impl function controls the
workspace, tool allowlist, and prompt for that subprocess.
tools
[]
triggers
Invoked via `ctx.task(taskSpec, args)` from a babysitter process
function during run iteration. Spawns a subprocess via the
subprocess-task dispatch pattern.
description
Generic shape — every babysitter process exports `defineTask`
declarations that become dispatchable subagents at run-time. Each
invocation spawns a `kind: 'agent'` subtask in its own subprocess
(persistent ChildSession). Concrete user-authored Tasks specialize
this shape with a specific impl, prompt, workspace policy, and
tool allowlist.
Outgoing edges
implements1
- extension-interface:orchestration·ExtensionInterfaceOrchestration
Incoming edges
runs_subagent1
- child-session:babysitter-task-001·ChildSessionbabysitter subprocess kind:'agent' subtask