Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add aiocean/claude-plugins/plugin install aio-message-bridgeWrote 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/skills/aiocean/claude-plugins/aio-message-bridge)<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-message-bridge"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-message-bridge/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-message-bridge"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-message-bridge.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00224 | $0.03538 |
| Opus 5.5 | $0.00090 | $0.01415 |
| Sonnet 5.5 | $0.00045 | $0.00708 |
| Haiku 4.5 | $0.00022 | $0.00354 |
Grade D, and why
aio-message-bridge scanned grade D with 3 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 2mo 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.
Sends data to an external URLmediumData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
send with `curl -X POST .../api/event -d '{"type":"...","payload":{}}'`. Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
6. **Clean up** — `TaskStop` the Monitor task, then `rm -rf /tmp/bridge-demo`. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
(server→client push) (curl, any shell step) How it starts
The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.
aio-message-bridge — give Claude Code an event loop
The problem this solves
Claude Code runs in a turn-by-turn loop. It has no event loop: it cannot
addEventListener, cannot hold a socket open and react to frames as they
arrive, cannot block on await nextEvent(). So how does something outside
Claude — a program in another terminal, a phone, a webhook from a SaaS, a
button in a web page — drive Claude's behavior while a task is in progress,
and how does Claude push updates back to it live?
The pattern — an asymmetric two-channel bridge
One local process (the relay) fronts two channels. They are not symmetric, and the asymmetry is the entire lesson:
EXTERNAL CLIENT RELAY (one process) CLAUDE
──────────────── ─────────────────── ──────
POST /api/event ──────────────▶ prints MSG::{json} ──stdout──▶ Monitor
(HTTP, fire once) to stdout notification
reads WS frames ◀──WebSocket─── broadcast "events" ◀────────── POST /api/push
(server→client push) (curl, any shell step)
-
External → Claude (inbound). The client makes a one-shot HTTP POST to
/api/event. The relay prints exactly one sentinel line —MSG::{instance,type,payload}— to its stdout. The Monitor tool (which launched the relay) turns each stdout line into a notification. That notification is how a turn-based agent receives "something happened outside" without an event loop or polling. -
Claude → external (outbound). Claude makes an HTTP POST to
/api/pushfrom any shell step (curl). The relay re-broadcasts that JSON verbatim over WebSocket to every connected client.
Why asymmetric? Because Claude cannot keep a WebSocket open across turns — it has no event loop to service one. So WebSocket is used only for the server→client leg (where the relay, a normal long-lived process, holds the sockets). The client→Claude leg rides plain HTTP into stdout, where Monitor is already watching. Get this backwards — try to make Claude listen on a socket — and nothing works. This is the mistake the pattern exists to avoid.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago First seen · 267 lines · 224 tokens per session scan D f9c6c1fa9a70
aio-message-bridge is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 4d ago), licensed MIT. It adds 224 tokens to every session and 3,538 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it D with 3 findings (sends data to an external url, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
aio-message-bridge compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aio-message-bridgeaiocean/claude-plugins | Skill | 4 | 4d ago | MIT | D | 224 | Claude Code |
| eval-hooksFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | today | CC-BY-SA-4.0 | A | 115 | Claude Code |
| design-patternsFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | today | CC-BY-SA-4.0 | A | 59 | Claude Code |
| eval-skillsFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | today | CC-BY-SA-4.0 | A | 60 | Claude Code |
| smart-exploreFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | today | CC-BY-SA-4.0 | A | 75 | Claude Code |
| source-command-audit-whitepapersFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | today | CC-BY-SA-4.0 | A | 26 | Claude Code, Codex |
| audit-agents-skillsFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | today | CC-BY-SA-4.0 | A | 41 | Claude Code |