agent-bridge: Instructions file for Claude Code

CLAUDE.md

agent-bridge CLAUDE.md is an instructions file for Claude Code from raysonmeng/agent-bridge. It costs 2,848 tokens per session, scanned A, original, MIT.

Repository guidance for agent-bridge, a tool that connects coding agents to other services. It requires user-facing communication in Chinese and documents the Bun commands, code structure and data-flow rules.

In plain words
What is it for?
Developing or reviewing the agent-bridge CLI and plugin bundle, following its architecture, and running its validation and build commands.
Why use it?
It prevents contributors from breaking project conventions or producing user-facing text in the wrong language. It also provides the commands needed to check types, run tests and build the project.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is raysonmeng/agent-bridge's own configuration. It tells Claude Code how to work on agent-bridge 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-bridge configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/raysonmeng/agent_bridge.

Reuse

Borrowing it

Nothing to install: this file belongs to raysonmeng/agent-bridge. 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/raysonmeng/agent-bridge/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/raysonmeng/agent-bridge

Made for: Claude Code.

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-bridge CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/raysonmeng/agent-bridge/claude-md/github.svg)](https://agentmods.dev/instructions/raysonmeng/agent-bridge/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/raysonmeng/agent-bridge/claude-md"><img src="https://agentmods.dev/badge/instructions/raysonmeng/agent-bridge/claude-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-bridge CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/raysonmeng/agent-bridge/claude-md"><img src="https://agentmods.dev/badge/instructions/raysonmeng/agent-bridge/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,848 This file is loaded in full into every session.
When invoked 2,848 The same file — it is already loaded in full.
Security scan A 0 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.02848 $0.02848
Opus 5.5 $0.01139 $0.01139
Sonnet 5.5 $0.00570 $0.00570
Haiku 4.5 $0.00285 $0.00285

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

Security

Grade A, and why

agent-bridge CLAUDE.md 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 1mo 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.

CLAUDE.md · 169 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

语言 / Language

  • 🔴 铁律:面向用户的叙述只可以用中文,禁止用英文。(用户多次强调,2026-06-11 再次明确"禁止说英文!!只可以说中文!")。聊天回复、状态汇报、表格标题、列表、解释、报告里的叙述文字——一律中文。唯一例外:代码、命令、文件路径、标识符、API 名、配置键、PR/commit 里既有的英文约定段落可保留原文(因为它们就是字面量)。除此之外任何句子都不许用英文。每次回复前自检:有没有冒出英文叙述句?有就改成中文。
  • 强制使用中文回复(用户明确要求 / 强制项目级规则)。所有面向用户的输出(解释、报告、问答、plan、commit message 中的中文部分、issue / report)使用中文。
  • 代码内的注释、变量名、提交信息中的英文部分、日志保持英文(与项目既有约定一致)。
  • 涉及给用户读的内容(README、用户文档、终端说明)必须中文优先。
  • 若用户用英文提问,仍用中文回复(除非他明确要求英文)。

Commands

Runtime is Bun — do not change the local Bun version.

Task Command
Install deps bun install
Type check bun run typecheck (= tsc --noEmit)
Run all tests bun test src
Run a single test file bun test src/unit-test/<name>.test.ts
Run a single test by name bun test src -t "<test name pattern>"
Full pre-commit check bun run check (typecheck + tests + plugin sync + plugin versions)
Build CLI binary bun run build:cli → dist/cli.js
Build plugin bundle bun run build:plugin → plugins/agentbridge/server/{bridge-server,daemon}.js
Verify plugin sync bun run verify:plugin-sync
Validate plugin manifest bun run validate:plugin (requires claude CLI)
Local dev link bun link then agentbridge dev (registers local marketplace + installs plugin; repo checkout only)
Update global CLI + plugin bun run install:global (one command: rebuild, replace global install, sync plugin; --skip-plugin to opt out)
Start session agentbridge claude (one terminal) + agentbridge codex (another)
Show quota snapshot agentbridge budget [--json] (both agents' 5h/weekly usage, drift, pause state)
Stop everything agentbridge kill

Before committing: run bun run typecheck && bun test src.

After modifying src/: run bun run build:plugin before end-to-end testing. The installed plugin loads the bundled JS under plugins/agentbridge/server/, not the raw TS — forgetting to rebuild means you are testing the old code.

Read the full file on GitHub · 169 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. 1mo ago First seen · 169 lines · 2,848 tokens per session scan A 4b3e247fb1f9

Subscribe to this mod's changes

agent-bridge CLAUDE.md is an instructions file published in the GitHub repository raysonmeng/agent-bridge (415 stars, last pushed today), licensed MIT. It adds 2,848 tokens to every session, about $0.0114 per session on Opus 5.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.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,786 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens