claude-code
v0.1.2Claude Code as an iii worker — claude::* runs headless turns and claude::terminal::* runs the same CLI in a shell::pty session on its own console page. Both publish raw messages on the claude::raw-event trigger type and AgentEvent frames on claude::agent-event.
Install
iii trigger compose::add worker=claude-code@0.1.2Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.
Functions7
claude::run
Run one Claude Code turn and wait for the result. Accepts `prompt` or a `messages` array plus a raw SDK `options` pass-through; streams raw Claude Code messages onto claude::events, AgentEvent frames onto agent::events, and returns {session_id, result, usage, total_cost_usd}.
claude::sessions::list
List every Claude Code session this worker has run.
claude::start
Start a Claude Code turn and return immediately; watch agent::events (group_id = session_id) for progress and turn_end.
claude::status
Point-in-time status of a Claude Code session.
claude::stop
Interrupt a live Claude Code run for a session.
run::start_and_wait
Alias for claude::run under the shared agent entrypoint: run a turn for {session_id, messages} and return when it ends.