aio-message-bridge

aio-message-bridge is a skill for Claude Code from aiocean/claude-plugins. It costs 224 tokens per session (3,538 once invoked), scanned D, original, MIT.

A local HTTP and WebSocket relay lets outside programs, web pages, phones, or webhooks exchange events with Claude Code while a task is running.

In plain words
What is it for?
Use it to receive events from terminals, apps, webhooks, or browser pages and broadcast Claude's responses to connected clients.
Why use it?
It connects Claude Code's turn-based work to live events from other programs and lets Claude send updates back in real time.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the aio-message-bridge plugin — 2 skills shipped together

Good fit Use it to receive events from terminals, apps, webhooks, or browser pages and broadcast Claude's responses to connected clients.

Compare 6 skills from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add aiocean/claude-plugins
Claude Code
/plugin install aio-message-bridge

Made for: Claude Code.

Or install aio-message-bridge, the plugin that ships this one along with the rest of its 2 skills.

Wrote 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.

agentmods badge for aio-message-bridge

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-message-bridge/github.svg)](https://agentmods.dev/skills/aiocean/claude-plugins/aio-message-bridge)
Your own site
<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.

agentmods 80×15 button for aio-message-bridge

Your own site · 80×15
<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>
Per session 224 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,538 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash f9c6c1fa9a70, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (reference/bridge-server.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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)
plugins/aio-message-bridge/skills/aio-message-bridge/SKILL.md · 267 lines

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/push from 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.

Read the full file on GitHub · 267 lines

Files

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.

Changes

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.

  1. 2mo ago First seen · 267 lines · 224 tokens per session scan D f9c6c1fa9a70

Subscribe to this mod's changes

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.

Related

aio-message-bridge compared with skills from other repositories

aio-message-bridge next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aio-message-bridgeaiocean/claude-pluginsSkill44d agoMITD224Claude Code
eval-hooksFlorianBruniaux/claude-code-ultimate-guideSkill7.5ktodayCC-BY-SA-4.0A115Claude Code
design-patternsFlorianBruniaux/claude-code-ultimate-guideSkill7.5ktodayCC-BY-SA-4.0A59Claude Code
eval-skillsFlorianBruniaux/claude-code-ultimate-guideSkill7.5ktodayCC-BY-SA-4.0A60Claude Code
smart-exploreFlorianBruniaux/claude-code-ultimate-guideSkill7.5ktodayCC-BY-SA-4.0A75Claude Code
source-command-audit-whitepapersFlorianBruniaux/claude-code-ultimate-guideSkill7.5ktodayCC-BY-SA-4.0A26Claude Code, Codex
audit-agents-skillsFlorianBruniaux/claude-code-ultimate-guideSkill7.5ktodayCC-BY-SA-4.0A41Claude Code