iii-directory
v1.3.2Engine introspection, workers registry proxy, filesystem-backed skills, system prompts, and agent profiles, kit install and update with reviewed plans, plus function search ranked by the judge worker (falling back to local hybrid/lexical) with a conditional pre-generate hint.
Install
iii trigger compose::add worker=iii-directory@1.3.2Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.
skill doc
skills/agent-delegation.md
how-toDelegating a task to another agent
Another agent on this engine is not a model and not a provider. Asking
router::provider::list for claude or pi returns nothing, and that answer
is correct: those are workers, and you reach them the way you reach every
worker — by calling a function.
iii call engine::functions::list --json '{"search":"task"}'The one call
| Function | What it is |
|---|---|
claude::task |
Delegate one task to Claude Code |
pi::task |
Delegate one task to pi |
<agent>::task |
Any agent worker that adopts this shape |
iii call claude::task --json '{
"task": "Read src/auth.ts and list every caller of verifyToken",
"parent_session_id": "<your own session id>",
"cwd": "/path/to/repo"
}'
# → { "session_id": "…", "started": true }It returns immediately. The child is a real session: parent_session_id links
it to yours, so the console nests it under your turn the way a sub-agent nests.
Write the task as if the child can see nothing you can see — it cannot. Name the repository, the file, the database, the resource ids, in the task itself.
Being woken, instead of waiting
Nothing new to learn here: a settled task is an ordinary state write, and you
observe it the way you observe any other event — which the calling rules already
tell you to do instead of polling.
- scope
agent_tasks - key the child's
session_id - value
{ session_id, parent_session_id, agent, task, status, result, error, updated_at_ms }
Observe before you delegate: harness::observe { function_id: "state::on-changed", filters: { "input.scope": { "$eq": "agent_tasks" }, "input.key": { "$eq": "<child session_id>" } } }.
Take the event's field names from engine::functions::info function_id=state::on-changed
(its response_format), never from memory.
The child's turns also arrive as AgentEvent frames on claude::on-agent-event
(or pi::on-agent-event): harness::observe { function_id: "claude::on-agent-event", args: { "session_id": "<child session_id>" } }. session::get returns the
child's status and title. Those are for watching; the state write is what wakes
you.
When blocking IS right
run::start_and_wait (and its per-worker aliases claude::run / pi::run)
runs the turn and returns the result. Use it from a script, a shell, or a tool
that has nothing else to do. Inside an agent turn, prefer ::task: a blocking
call spends your turn budget waiting, and a restart loses the answer, while a
state write survives both.
What each agent is for
claude::task— Claude Code with its own tools and login.pi::task— the pi coding agent, provider-agnostic.
Both publish their turns as AgentEvent frames (claude::on-agent-event,
pi::on-agent-event), so the console renders a delegated run exactly like a
native harness sub-agent's.