3.2 KiB
3.2 KiB
name, description
| name | description |
|---|---|
| inbox | Durable agent-to-agent coordination through a bundled inbox CLI. Use when an agent needs to fetch work, claim a thread, report progress, ask blocked questions, wait for replies, inspect thread history, or return done/fail results through a SQLite-backed inbox instead of ad hoc chat. |
Inbox
Use the bundled ./assets/inbox CLI to communicate through a durable SQLite-backed inbox.
Quick Start
- Invoke
./assets/inboxrelative to this skill directory. - Pass
--dbexplicitly for every command. - Prefer
--jsonwhenever another agent or script will read the output. - Run
initbefore first use on a new database path.
Rules
- Treat
fetchas discovery only; onlyclaimgrants ownership. - Do not start work without a valid lease.
- Use
update --status in_progressfor progress andupdate --status blockedfor precise questions. - Prefer
wait-replyover manual sleep loops when blocked. - Use
donefor terminal success andfailfor terminal failure. - Keep scheduling and dependency decisions out of this layer; those belong to
orch.
Typical Commands
./assets/inbox --db ./coord.db --json init
./assets/inbox --db ./coord.db --json fetch --agent backend-worker --status pending
./assets/inbox --db ./coord.db --json claim --agent backend-worker --thread thr_123 --lease-seconds 900
./assets/inbox --db ./coord.db --json update --agent backend-worker --thread thr_123 --status in_progress --summary "Implementing post CRUD routes"
./assets/inbox --db ./coord.db --json update --agent backend-worker --thread thr_123 --status blocked --summary "Need auth decision" --payload-json '{"question":"Should admin auth use email/password in MVP?"}'
./assets/inbox --db ./coord.db --json wait-reply --agent backend-worker --thread thr_123 --after-event 51 --timeout-seconds 1800
./assets/inbox --db ./coord.db --json reply --from leader --to backend-worker --thread thr_123 --summary "Use email/password for MVP" --body "Use a simple credential flow for the first iteration."
./assets/inbox --db ./coord.db --json done --agent backend-worker --thread thr_123 --summary "Post CRUD implemented" --body-file result.md
Command Map
init: initialize schema and pragmas on a database pathsend: create a new thread or append a messagefetch: list candidate threads for an agent without claiming themclaim: acquire a lease on a threadrenew: extend an active leaseupdate: send progress or blocked updatesreply: send an answer, control message, or follow-up inside a threaddone: mark a thread complete with final result datafail: mark a thread failed with failure detailscancel: cancel a threadlist: list threads by filtersshow: inspect thread state and message historywatch: block until matching thread activity arriveswait-reply: block until a reply arrives for a specific thread
Notes
body-fileand artifact-heavy flows are supported; prefer them over long inline strings when sending reports or patches.fetch --unreadandshow --mark-readdepend on per-agent read cursors.- If the bundled binary cannot execute on the current host, stop and report the compatibility issue instead of guessing a replacement path or workflow.