SA

slima4/agent-message

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

20 stars 1 forks 质量 76 趋势 18MIT

AI编码代理之间的跨工具消息传递——Claude Code、Codex CLI、Cursor、Copilot、Aider。基于文件:无服务器、无MCP、无守护进程、无令牌。终端没有LLM令牌。

概览

Claude Code ↔ Codex ↔ 光标 ↔ 副驾驶 ↔ 辅助 ↔ c 没有服务器 ·没有MCP ·没有守护进程 ·来自你的终端 https://github.com/user-attachments/assets/33f4fb50-de16-4791-910a-8b54e4e25f08 my-server 用 Claude Code,my-web 用 OpenAI Codex——两个厂商,两个仓库,没有共享状态。Claude Code 发送 API 规范时会带 /message-send my-web;Codex 运行 ~/.agent-message-cmd 收件箱,获取端点、模型、错误代码和“未配置 CORS ”警告。双向各一个 shell 调用。速度为 3 倍。 安装所有内容,并为这台机器上的每个全局配置代理工具接线:工具规则文件中的标记块,以及Codex的~/.codex/config.toml中的沙盒可写根。所有操作都可以通过./install.sh --卸载来恢复。普通的./install.sh 跳过布线,只命名它找到的。 - api/中的Claude Code,web/中的Codex CLI,移动中的Cursor——三个供应商,一个任务。Claude完成模式更改后,运行发送网页“schema: token nullable”的消息。

概述(AI 翻译)

廉价、快速的AI代理间消息传递——跨越不同工具。

Claude Code ↔ Codex ↔ 光标 ↔ 副驾驶 ↔ 辅助 ↔ c

没有服务器 ·没有MCP ·没有守护进程 ·0个LLM令牌来自你的终端

文档 ·SAMP规范****实现 ·路线图 ·贡献


https://github.com/user-attachments/assets/33f4fb50-de16-4791-910a-8b54e4e25f08

Claude 代码在 my-server,OpenAI Codex 在 [my-web ——两个厂商,两个仓库,没有共享状态。Claude Code 发送其 API 规范时带有 /message-send my-web;Codex 运行 ~/.agent-message-cmd inbox,获取端点、模型、错误代码和“未配置 CORS ”警告。双向一次 shell 调用。3 倍速。

安装所有内容,并为这台机器上发现的每个全局配置代理工具接线:工具规则文件中的标记块,以及Codex的沙盒可写根。所有内容都可以用./install.sh --uninstall可逆。纯[T7]]跳过布线,只命名它找到的。

  • 用例: Claude 代码在 api/,Codex CLI 在 web/,光标在 mobile/ ——三个供应商,一个任务。Claude 完成模式更改并运行 msg send web "schema: token nullable"。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。


https://github.com/user-attachments/assets/33f4fb50-de16-4791-910a-8b54e4e25f08

Claude Code in my-server, OpenAI Codex in my-web — two vendors, two repos, no shared state. Claude Code sends its API spec with /message-send my-web; Codex runs ~/.agent-message-cmd inbox and gets the endpoints, the models, the error codes and a “no CORS configured” warning. One shell call each way. 3x speed.

git clone https://github.com/slima4/agent-message && cd agent-message
./install.sh --integrate=auto

Installs everything and wires each globally-configured agent tool found on this machine: a marker block in the tool’s rules file, plus a sandbox writable-root in ~/.codex/config.toml for Codex. All reversible with ./install.sh --uninstall. Plain ./install.sh skips the wiring and just names what it found.

  • Use case: Claude Code in api/, Codex CLI in web/, Cursor in mobile/ — three vendors, one task. Claude finishes the schema change and runs msg send web "schema: token nullable". The Codex agent sees it on its next inbox check and adapts its code. No shared session, no shared vendor, no human relaying between windows.
  • Why it works everywhere: the transport is a directory of JSONL files and the API is one shell command. No MCP server to register, no per-repo .mcp.json, no token. If an agent can run bash, it can join — including tools with no MCP support at all, plus cron jobs, CI, and you in a terminal.
  • Works with: Claude Code, Codex CLI, Cursor, Copilot Chat + CLI, Antigravity, Zed, Aider, Continue, opencode. --integrate=auto wires up every tool that configures globally in one shot; per-repo ones (Copilot Chat, Zed) take --integrate= from the target repo.
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →