claude-code

Installation
SKILL.md

claude-code

The claude-code worker exposes the Claude Code API as iii functions. One claude::run call executes one headless Claude Code turn — the same agent the user runs in their terminal, with the same login, filesystem, and permission model — in a chosen working directory, and returns the final result, token usage, and cost. The worker is a pure pass-through: named payload fields cover the common path, the options field forwards any Agent SDK option verbatim, and every message Claude Code emits is published untouched on claude::on-raw-event. A translated AgentEvent view is published on claude::on-agent-event, which is what the iii console and the acp worker render. Observe either with args { session_id } (iii.observe({ function_id: 'claude::on-agent-event', args: { session_id }, deliver: 'output' }, target)); frames are live only (not stored or replayed), ordered by (epoch, seq).

Requires the claude CLI on the host with an existing login or ANTHROPIC_API_KEY in the worker environment. When a turn needs a capability beyond Claude Code itself, add another iii worker to the bus instead of bolting anything onto this one.

Installs
16
Repository
iii-hq/workers
GitHub Stars
120
First Seen
Jun 16, 2026