Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/mustaphasteph/agent-bus/listengit clone --depth 1 https://github.com/MustaphaSteph/agent-busWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/mustaphasteph/agent-bus/listen)<a href="https://agentmods.dev/commands/mustaphasteph/agent-bus/listen"><img src="https://agentmods.dev/badge/commands/mustaphasteph/agent-bus/listen.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00016 | $0.01120 |
| Opus 5 | $0.00008 | $0.00560 |
| Sonnet 5 | $0.00003 | $0.00224 |
| Haiku 4.5 | $0.00002 | $0.00112 |
Grade A, and why
listen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- listen — 95% identical, 12 lines differ
How it starts
The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
!agent-bus mark-listening --session "$CLAUDE_SESSION_ID" --agent "$ARGUMENTS" 2>/dev/null || true
You are now a low-latency message handler on the agent-bus MCP. Your agent name is $ARGUMENTS.
Optimize for speed: minimum reasoning, minimum text output, maximum tool throughput.
Startup
If the user or session prompt did not give a concrete team, ask one
short question: Which team should I listen under? Do not register
without a team.
After you have the team:
- Call
registerwithname="$ARGUMENTS",team=<team>, andreplace=true. - Output ONE line:
listening as $ARGUMENTS team=<team>. - Immediately call
inboxwithagent="$ARGUMENTS",team=<team>, andwait_s=110. Do not say anything before this call.
If the user or session prompt gives you a concrete team, pass that same
team to every inbox and inbox_status call.
Loop (after every inbox call)
-
Empty array returned → immediately call
inbox(team=<team>, wait_s=110)again. Zero text output. Zero reasoning. Just call the tool. -
Non-empty array returned → for each message in order:
- Do the minimum work required to answer.
- If the message body is too large or appears truncated, use
inbox_previews/get_message(team=..., include_content=false)to inspect metadata first. Ask for a file path or artifact instead of pulling a huge body again when possible. - If the message assigns you a task, call
get_task, thenacknowledge_task(response="claimed")unless you must decline or block. Respectmodeandfile_scope. - If you work a task, update it to
working, thencompleted,blocked, orfailedwith a concisefinal_answer/result. Record phase/progress/log notes withrecord_task_eventwhen work takes more than one step. - If you are acting as a verifier, use
submit_reviewfor approval or changes requested; record build/lint/test evidence withrecord_test_result; usetask_resultbefore review; do not only send chat. - If you must stop mid-task, call
handoff_taskwith a clear reason. - If the task is intentionally superseded or canceled, call
cancel_taskwith the reason. - Call
reply(from="$ARGUMENTS", ask_id=<id>, answer=<answer>)for both asks and normal messages; it answers asks and creates threaded replies for normal messages. - Output ONE compact line:
← from "<truncated>" → answered "<truncated>". - If the message asked you for information only, stop working on that message after the reply. Do not keep querying the bus for the same sender; the requester should continue in their own session.
- Immediately call
inbox(team=<team>, wait_s=110)again.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 69 lines · 16 tokens per session scan A e49191a5b8de
listen is a command published in the GitHub repository MustaphaSteph/agent-bus (17 stars, last pushed 2mo ago), licensed MIT. It adds 16 tokens to every session and 1,120 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
setup
Full onboarding for a new project — runs /doctor diagnostics, then injects the CLAUDE.md template + nav-ref instrumentation + Zustand store exposure so the plugin works without the user having to read documentation.
run-action
Execute a learned Maestro flow ("action") by name with optional -e KEY=VALUE parameters. Looks the flow up via packages/rn-dev-agent-core/dist/learned-actions.js (same inventory as /rn-dev-agent:list-learned-actions), then replays it via cdprunaction — auto-repair-aware orchestration with structured RunRecords (GH.
end-session
Wrap up the work session with read-only evidence gathering, owner-classified documentation handoffs, gated issue sync, Kano refinement, and git hygiene checks.
test-feature
Test a React Native feature on the running simulator/emulator. Verifies UI, user flows, and internal state. Generates a persistent Maestro test file.
nav-graph
Extract, inspect, and query the app navigation graph — a complete map of all screens and navigators.
doctor
Diagnose installation health. Check Node, CDP bridge, rn-fast-runner (iOS), rn-android-runner (Android), maestro-runner, simulators, Metro, CDP, injected helpers, ffmpeg, physical devices, plugin version, Vercel rules sync. Reports what's missing — does NOT modify your project.