agent-comm-hub: Instructions file for Codex

AGENTS.md

agent-comm-hub AGENTS.md is an instructions file for Codex, OpenCode from JochenYang/agent-comm-hub. It costs 8,634 tokens per session, scanned B, original, MIT.

Project instructions for AI coding agents working on agent-comm-hub, a local service that lets multiple AI agents communicate and delegate tasks through MCP.

In plain words
What is it for?
Use them before changing agent-comm-hub to understand how agents connect, communicate, acknowledge messages, and run the zero-dependency Node.js server.
Why use it?
They explain the project's architecture, layout, commands, and rules that must remain intact while editing it.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

This is JochenYang/agent-comm-hub's own configuration. It tells Codex and OpenCode how to work on agent-comm-hub itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-comm-hub configures →

Reuse

Borrowing it

Nothing to install: this file belongs to JochenYang/agent-comm-hub. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/JochenYang/agent-comm-hub/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/JochenYang/agent-comm-hub

Made for: Codex, OpenCode.

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 agent-comm-hub AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jochenyang/agent-comm-hub/agents-md/github.svg)](https://agentmods.dev/instructions/jochenyang/agent-comm-hub/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jochenyang/agent-comm-hub/agents-md"><img src="https://agentmods.dev/badge/instructions/jochenyang/agent-comm-hub/agents-md/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 agent-comm-hub AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jochenyang/agent-comm-hub/agents-md"><img src="https://agentmods.dev/badge/instructions/jochenyang/agent-comm-hub/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,634 This file is loaded in full into every session.
When invoked 8,634 The same file — it is already loaded in full.
Security scan B 1 finding. 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.08634 $0.08634
Opus 5.5 $0.03454 $0.03454
Sonnet 5.5 $0.01727 $0.01727
Haiku 4.5 $0.00863 $0.00863

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

Security

Grade B, and why

agent-comm-hub AGENTS.md scanned grade B with 1 finding 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 10d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

credentials — `chmod 600` them, never commit them, and note that the bundled
AGENTS.md · 463 lines

How it starts

The opening of the file, as written. The whole thing — 463 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Guidance for AI coding agents working on agent-comm-hub. Read this before editing; it explains what the project is, how it is built, and the invariants that must not be broken. If this file conflicts with a user instruction, the user instruction wins.

Project overview

agent-comm-hub is a generic multi-peer communication hub over MCP: any MCP-capable AI agent (MiniMax Code, Claude Code, opencode, Codex, Gemini CLI, DeepSeek Harness, Kimi Code, zcode, …) connects to one local streamable-http endpoint (http://127.0.0.1:18764/mcp), claims a peer id, and then chats with, delegates tasks to, and acknowledges every other connected agent in real time.

Key facts:

  • Zero runtime dependencies: the MCP streamable-http server is hand-rolled over node:http. No database, no daemon, no SDK. This is the project's #1 constraint — see Invariants.
  • One process: npx agent-comm-hub starts the hub; it is a foreground process that stops on Ctrl+C (auto-start via service install is optional).
  • Connect = join: the MCP handshake (initialize) auto-registers the session using the clientInfo name — no manual registration step.
  • Identity is server-injected: from on every message comes from the session→peer binding, never from the caller; peers cannot impersonate each other. Same-name connections share one peer id (N:1) and one mailbox.
  • Offline-tolerant: messages queue per peer (max 200, oldest dropped) and are delivered on the next bridge_wait/bridge_poll.
  • Version 0.11.0, Node ≥ 22, MIT license, npm name agent-comm-hub, package manager is pnpm (single-package repo; pnpm-workspace.yaml only carries the pnpm 10 allowBuilds approval for esbuild). The one exception is the admin/ web-console workspace, which uses npm (its own package-lock.json) and is driven from here by npm --prefix admin run build.

Architecture

The hub is a neutral "post office": it never participates in content, only registers identities, routes messages, and queues for offline peers. Five layers:

Read the full file on GitHub · 463 lines

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. 10d ago Changed · +47 lines · +1,324 tokens per session 35d10608cb6c
  2. 28d ago Changed · +36 lines · +1,123 tokens per session scan A → B a44f230c78d5
  3. 1mo ago Changed · +93 lines · +1,640 tokens per session 0e0a2f8031b8
  4. 1mo ago Changed · +9 lines · +164 tokens per session 86cb406cceae
  5. 2mo ago Changed · +6 lines · +94 tokens per session 04922e12ccf8
  6. 2mo ago First seen · 272 lines · 4,289 tokens per session scan A 320ab002aa20

Subscribe to this mod's changes

agent-comm-hub AGENTS.md is an instructions file published in the GitHub repository JochenYang/agent-comm-hub (5 stars, last pushed 11d ago), licensed MIT. It adds 8,634 tokens to every session, about $0.0345 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

agent-comm-hub AGENTS.md compared with instructions from other repositories

agent-comm-hub AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-comm-hub AGENTS.mdJochenYang/agent-comm-hubInstructions file511d agoMITB8,634Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot