claude::auth::status
functionCheck who pays for a Claude terminal session on this host. Reports a Claude subscription, an API key (which overrides the login), or nothing yet; read from `claude auth status` on the host.
billingstring*requiredenum: subscription, api-key, none, unknown
claude::on-config-change
functionInternal: reload claude-code configuration when it changes.
Run one Claude Code turn and wait for the result. Accepts `prompt` or a `messages` array plus a raw SDK `options` pass-through; publishes raw Claude Code messages on the claude::raw-event trigger type and AgentEvent frames on claude::agent-event (bind with { session_id }), and returns {session_id, result, usage, total_cost_usd}.
allowed_toolsstring[]
Allow rules, e.g. "Bash(git *)"
append_system_promptstring
Append to the default system prompt
cwdstring
Working directory the turn runs in
disallowed_toolsstring[]
Deny rules
iii_contextboolean
Append the iii runtime discovery prompt (engine catalog via the iii CLI)
max_turnsintegermax 9007199254740991
Cap on agentic turns
messagesobject[]
Alternative to prompt: role/content messages; the last user entry becomes the prompt
modelstring
Model id or alias; empty = Claude Code default
optionsobject
Raw Agent SDK options forwarded verbatim (camelCase), e.g. forkSession, includePartialMessages
parent_session_idstring
The session delegating this run. Written to the child session metadata, which is what nests it under its parent in the console — the same link a harness sub-agent carries.
permission_modestringenum: default, acceptEdits, plan, bypassPermissions
Claude Code permission mode for this turn
promptstring
The user prompt for this turn
session_idstring
iii session id; reuse to resume the same Claude Code conversation
system_promptstring
Replace the Claude Code system prompt
timeout_msintegermax 9007199254740991
Reserved for callers; not forwarded
session_idstring*required
usageany of
any of (2)
variant 1
input_tokensnumber*required
output_tokensnumber*required
claude::sessions::list
functionList every Claude Code session this worker has run.
sessionsobject[]*required
claude_session_idany of*required
session_idstring*required
statusstring*requiredenum: working, done, error
total_cost_usdnumber*required
updated_at_msnumber*required
usageany of*required
any of (2)
variant 1
input_tokensnumber*required
output_tokensnumber*required
Start a Claude Code turn and return immediately; bind claude::agent-event with { session_id } for progress and turn_end.
allowed_toolsstring[]
Allow rules, e.g. "Bash(git *)"
append_system_promptstring
Append to the default system prompt
cwdstring
Working directory the turn runs in
disallowed_toolsstring[]
Deny rules
iii_contextboolean
Append the iii runtime discovery prompt (engine catalog via the iii CLI)
max_turnsintegermax 9007199254740991
Cap on agentic turns
messagesobject[]
Alternative to prompt: role/content messages; the last user entry becomes the prompt
modelstring
Model id or alias; empty = Claude Code default
optionsobject
Raw Agent SDK options forwarded verbatim (camelCase), e.g. forkSession, includePartialMessages
parent_session_idstring
The session delegating this run. Written to the child session metadata, which is what nests it under its parent in the console — the same link a harness sub-agent carries.
permission_modestringenum: default, acceptEdits, plan, bypassPermissions
Claude Code permission mode for this turn
promptstring
The user prompt for this turn
session_idstring
iii session id; reuse to resume the same Claude Code conversation
system_promptstring
Replace the Claude Code system prompt
timeout_msintegermax 9007199254740991
Reserved for callers; not forwarded
session_idstring*required
Check the status of a Claude Code session.
session_idstring*required
iii session id returned by claude::run / claude::start
recordany of*required
any of (2)
variant 1
claude_session_idany of*required
… expand 2 nestedcollapse
session_idstring*required
statusstring*requiredenum: working, done, error
total_cost_usdnumber*required
updated_at_msnumber*required
usageany of*required
… expand 2 nestedcollapse
any of (2)
variant 1
input_tokensnumber*required
output_tokensnumber*required
session_idstring*required
Stop a live Claude Code run for a session.
session_idstring*required
iii session id returned by claude::run / claude::start
session_idstring*required
Delegate one task to Claude Code and return its session id immediately — the sub-agent shape: it never parks the caller. The outcome is written to state under scope `agent_tasks`, key the child session id, so bind a `state` trigger on that BEFORE calling and be woken by it; progress arrives on claude::agent-event (bind with { session_id }). Pass `parent_session_id` to nest the child under the session that delegated it.
allowed_toolsstring[]
Allow rules, e.g. "Bash(git *)"
append_system_promptstring
Append to the default system prompt
cwdstring
Working directory the turn runs in
disallowed_toolsstring[]
Deny rules
iii_contextboolean
Append the iii runtime discovery prompt (engine catalog via the iii CLI)
max_turnsintegermax 9007199254740991
Cap on agentic turns
modelstring
Model id or alias; empty = Claude Code default
optionsobject
Raw Agent SDK options forwarded verbatim (camelCase), e.g. forkSession, includePartialMessages
parent_session_idstring
The session delegating this run. Written to the child session metadata, which is what nests it under its parent in the console — the same link a harness sub-agent carries.
permission_modestringenum: default, acceptEdits, plan, bypassPermissions
Claude Code permission mode for this turn
session_idstring
iii session id; reuse to resume the same Claude Code conversation
system_promptstring
Replace the Claude Code system prompt
taskstring*requiredmin 1 chars
The child's self-contained goal. It cannot see the caller's context, so name every resource it needs.
timeout_msintegermax 9007199254740991
Reserved for callers; not forwarded
session_idstring*required
A Claude Code lifecycle event from a terminal session (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop, SessionEnd), posted by the workspace hooks. Translated into AgentEvent frames on the claude::agent-event feed.
What a Claude terminal session runs: the claude binary, its argv, the workspace directory, and the session environment. The console page passes this straight to shell::pty::open.
activity_bridgestring
The `iii` CLI on the terminal host that carries this session's activity to the bus. Empty means nothing will reach the claude::agent-event feed.
detailstring
Anything wrong that does not stop a session from opening.
claude::ui-content
functionConsole UI asset content (console plumbing).
run::start_and_wait
functionAlias for claude::run under the shared agent entrypoint: run a turn for {session_id, messages} and return when it ends.
allowed_toolsstring[]
Allow rules, e.g. "Bash(git *)"
append_system_promptstring
Append to the default system prompt
cwdstring
Working directory the turn runs in
disallowed_toolsstring[]
Deny rules
iii_contextboolean
Append the iii runtime discovery prompt (engine catalog via the iii CLI)
max_turnsintegermax 9007199254740991
Cap on agentic turns
messagesobject[]
Alternative to prompt: role/content messages; the last user entry becomes the prompt
modelstring
Model id or alias; empty = Claude Code default
optionsobject
Raw Agent SDK options forwarded verbatim (camelCase), e.g. forkSession, includePartialMessages
parent_session_idstring
The session delegating this run. Written to the child session metadata, which is what nests it under its parent in the console — the same link a harness sub-agent carries.
permission_modestringenum: default, acceptEdits, plan, bypassPermissions
Claude Code permission mode for this turn
promptstring
The user prompt for this turn
session_idstring
iii session id; reuse to resume the same Claude Code conversation
system_promptstring
Replace the Claude Code system prompt
timeout_msintegermax 9007199254740991
Reserved for callers; not forwarded
session_idstring*required
usageany of
any of (2)
variant 1
input_tokensnumber*required
output_tokensnumber*required