agentleFS
avivsinaiavivsinai/agent-message-queue/skills/amq-remote/SKILL.md

amq-remote

Skill87 starsChanged 2 months agoMITView on GitHub

Let the owner reach this running agent from Buzz, on the phone or in Buzz Desktop. Use when the user types /amq-remote, /amq-remote --native, /amq-remote off, or /amq-remote status, or asks to control this session from Buzz. Not for AMQ messaging between agents (use amq-cli).

  • Installs packages

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the steps in order. When a step says to stop, show the user the command's own message.

    line 26
  2. Very specific:

    Tools: Run command -v amq-remote amq-acp.

    line 31
  3. Very specific:

    Default: run amq-remote attach --self.

    line 34
  4. Very specific:

    If it says this session is not an AMQ participant, offer --native.

    line 35
  5. Distinctive:

    If it fails, show its message and stop.

    line 39
  6. Very specific:

    --native on Claude Code only: the Stop hook: Run amq-remote doctor --root "$ROOT" --json and read its failing list.

    line 40
  7. Very specific:

    If a native_capability entry says the PermissionRequest hook is not installed (a Claude target with approve, shared through a relay share), …

    line 48
  8. Distinctive:

    Default: "DMs arrive in this agent's AMQ inbox.

    line 63
  9. Distinctive:

    When the approval hook was installed in step 3: "When a Buzz request needs a tool approval, the DM shows it.

    line 67
  10. Very specific:

    Do the work, then answer with amq reply --id <that message id>.

    line 79
  11. Very specific:

    Run amq-remote detach --self.

    line 85

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AMQ Remote

/amq-remote gives this session its own Buzz agent, "AMQ: <name>", with its own DM. The owner DMs that agent from the Buzz phone app or Buzz Desktop. Several sessions can be connected at once; each has its own agent.

  • Default (AMQ mailbox). Each DM arrives as an AMQ message from buzz in this agent's inbox. This agent answers with amq reply --id <id>, and that reply is shown in the DM. A reply with --kind status shows as progress; any other reply is the final answer. No Stop hook and no wake are needed. Noticing the message is this agent's own business (a wake, a built-in consumer, monitor, or the next drain).
  • --native. For a session that is not on AMQ: each DM is typed into this exact conversation, and the harness's own final answer goes back. On Claude Code it needs the AMQ Stop hook.

Run the steps in order. When a step says to stop, show the user the command's own message. Do not work around a refusal.

/amq-remote (connect)

  1. Tools. Run command -v amq-remote amq-acp. If either is missing, tell the user to run brew install avivsinai/tap/amq, then stop.
  2. Bind.
    • Default: run amq-remote attach --self. It uses AM_ROOT and AM_ME. If it says this session is not an AMQ participant, offer --native.
    • --native: use $AM_ROOT when set, else $HOME/.amq/remote/root (create it with mkdir -p). Run amq-remote attach --self --native --root "$ROOT". If it fails, show its message and stop.
  3. --native on Claude Code only: the Stop hook. Run amq-remote doctor --root "$ROOT" --json and read its failing list; the exit code is not the signal. If an entry has boundary native_capability, tell the user this step adds one Stop hook to ~/.claude/settings.json (it always exits 0, and amq-remote claude uninstall-stop-hook removes it). Ask once, then run amq-remote claude install-stop-hook. The default mailbox path never needs this. If a native_capability entry says the PermissionRequest hook is not installed (a Claude target with approve, shared through a relay share), tell the user: "This adds one PermissionRequest hook. It exits at once in sessions that are not shared. Another decision hook you have can answer first. amq-remote claude uninstall-approval-hook removes it." Ask once, then run amq-remote claude install-approval-hook.
  4. This session's Buzz agent. Attach printed the session name <name>. Run amq-acp setup --session <name> --out "$HOME/Downloads/AMQ <name>.agent.json" and show its printed steps: in Buzz Desktop, Agents, then + then Import, pick that file, then Start. If this was the first /amq-remote on the Mac (the harness file did not exist before) and Desktop was open, it must be restarted first so it sees the harness. Skip this step when the agent "AMQ: <name>" already exists in Desktop.
  5. Tell the user: "Connected. DM AMQ: <name> from the Buzz app or Desktop."
    • Default: "DMs arrive in this agent's AMQ inbox. Stop in Buzz stops waiting; a delivered message may still be acted on."
    • --native: "A DM sent while this session is busy waits. Buzz Stop cannot interrupt a Claude turn."
    • When the approval hook was installed in step 3: "When a Buzz request needs a tool approval, the DM shows it. ❌ blocks that call. Buzz cannot allow a tool call yet; allow it in the terminal. The first answer wins."

Codex with --native: attach needs CODEX_THREAD_ID and a thread loaded in the Codex app-server daemon. A session started with plain codex is not in the daemon; start it with codex app-server daemon start, then codex --remote unix://.

Answering a Buzz DM (default mailbox)

A message from buzz with subject "Buzz DM" is the owner writing from Buzz. Do the work, then answer with amq reply --id <that message id>. Use --kind status for an interim update. Keep the final answer short; it is read in a chat.

/amq-remote off

Run amq-remote detach --self. The session keeps running; the Buzz agent then answers "Not connected".

/amq-remote status

List ~/.amq/remote/bindings/ (one file per connected session: carrier, root, and handle or target).

Trust limits

The Buzz agent's identity belongs to Buzz Desktop. Its grant has no kind limit and no expiry. Archiving the agent does not invalidate a copied key and grant; only removing the agent's relay access does that. Buzz "owner only" also admits the owner's other agents. See the amq-acp README.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.