amq-cli
Skill87 starsChanged 2 months agoMITView on GitHub
Coordinate coding agents through AMQ. Use for agent messages, inboxes, receipts, sessions, wake delivery, cross-project routing, managed launches, or AMQ diagnostics. Use amq-spec for collaborative design; do not use this for general message queues or single-agent work.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- amq-remoteSkill
- amq-specSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use the amq CLI for all queue operations.
- Very specific: line 19
Do not override --me or reconstruct the root.
- Very specific: line 34
If session-start context says wake=live(...), or amq wake check --me <handle> --json reports live_wake: true with an injection mode other …
- Very specific: line 37
Run amq drain --include-body when it fires, then act on the messages.
- Very specific: line 39
Do not run amq watch, amq monitor, sleep-poll, or start another inbox watcher under that live wake.
- Very specific: line 63
Use amq <command> --help for current flags.
- Very specific: line 90
Before any wake mutation, run amq wake check --me "<handle>" --json.
- Distinctive: line 93
Keep cross-host payloads outside privileged inboxes until the configured bridge has authenticated and applied them.
- Very specific: line 96
Do not translate native Windows injection into Unix wake or coop exec.
- Distinctive: line 97
Read the platform section in the operations guide when Windows is involved.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AMQ CLI
Use the amq CLI for all queue operations. Never edit Maildir files directly.
AMQ transports coordination; the caller or orchestrator still owns task planning,
worktrees, approvals, and delivery.
Start in the correct context
Inside coop exec, use the environment as provided and run bare amq commands.
Do not override --me or reconstruct the root. Outside it, resolve and export the
complete context before reading or sending:
amq_context="$(amq env --me "<handle>" --export)" && eval "$amq_context" &&
amq drain --include-bodyFor a named session, add --session <name> to amq env. Treat the evaluated
context as one terminal bound to one session. Use --session or --project for
deliberate routing; do not point a participating command at another queue with a
raw --root.
Receive under a live wake
If session-start context says wake=live(...), or
amq wake check --me <handle> --json reports live_wake: true with an
injection mode other than none, the wake delivers a doorbell for you.
Run amq drain --include-body when it fires, then act on the messages.
Do not run amq watch, amq monitor, sleep-poll, or start another inbox
watcher under that live wake. A blocking wait holds your turn while the
doorbell queues behind it. When your work is done, finish the turn; do not
keep a tool running or send idle check-ins just to wait for mail.
Without an injecting wake, use the receive methods in the operations guide.
A notify-only wake (--inject-mode none) paired with a supervisor monitor
service is a separate supported setup.
Route the task
| Need | Read or run |
| Send, reply, drain, inspect receipts, or diagnose | Use the operations guide. |
| Two-agent research and design | Use the amq-spec skill. |
| Co-op roles and phased collaboration | Read co-op mode. |
| Claude Code Agent Teams | Read swarm mode. |
| Cross-project delivery or decision threads | Read cross-project routing. |
| Grok Bot on a registered Mac | Read registered-machine execution. |
| Symphony or Kanban adapters | Read integrations. |
| Message schema details | Read message format. |
| Multi-round background review | Read review loop. |
| Attach to a running harness session | Read the amq-remote reference. |
Use amq <command> --help for current flags. The repository README is the
canonical setup path.
Remote
amq-remote is a companion binary, not an amq subcommand. It attaches to a
harness session that is already running. Targets are declared in
<AM_ROOT>/extensions/remote/manifest.json (claude, codex, pi, or
fake). up supervises the endpoint; submit, status, wait, and
cancel talk to it; share mints the session body key. A manifest relay
object shares a target with its owner over a Buzz relay. DM commands require
the pinned native_session_id and run only while that session is attached;
Desktop presence reports the attachment status and honors the pin when one
is set.
doctor lists each failing boundary under failing and exits 6 while any
remains. Flags and exit codes
are in the amq-remote reference. The design is
the remote-control ADR. Pinned seams are
the compatibility manifest.
Safety and delivery rules
- A wake notification is attention, not consumption proof. Use receipts or
--wait-for drainedwhen delivery proof matters. - Preserve the existing thread when replying. Drain again after a doorbell; the newest complete message body is authoritative.
- Cleanup is explicit through
amq cleanup. Do not add automatic deletion. - Before any wake mutation, run
amq wake check --me "<handle>" --json. Act only whenrestart_capability=agent_safe; otherwise preserve state and report the required operator action. - Keep cross-host payloads outside privileged inboxes until the configured bridge has authenticated and applied them. Never copy or remote-drain a foreign Maildir as a substitute for routing.
- Do not translate native Windows injection into Unix
wakeorcoop exec. Read the platform section in the operations guide when Windows is involved. - Dangerous provider bypass flags belong only on an operator-controlled direct
coop execcommand. Do not place them in committed launch configuration.
The full command catalog, environment precedence, setup flow, platform notes, operator gates, and examples are in the operations guide.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

