Skip to content

Add AgEnD multi-agent fleet MCP tools#6

Draft
choujame wants to merge 2 commits into
mainfrom
claude/agend-installation-KyquR
Draft

Add AgEnD multi-agent fleet MCP tools#6
choujame wants to merge 2 commits into
mainfrom
claude/agend-installation-KyquR

Conversation

@choujame
Copy link
Copy Markdown
Owner

說明

移植 suzuke/AgEnD 的核心多代理人協作 MCP 工具。

由於雲端執行環境的網路政策封鎖了 suzuke.github.ionpmjs.com 等外部來源,無法直接安裝 AgEnD 的 Node.js 套件,因此改以 Python + tmux 實作等效的 MCP 工具。

新增工具

工具 說明
agend_list_agents 列出所有正在執行的代理人 tmux 工作階段
agend_start_agent 啟動新代理人(支援 claude / gemini / codex / opencode)
agend_send_message 向指定代理人傳送提示訊息
agend_get_output 擷取代理人最近的終端機輸出
agend_stop_agent 終止代理人工作階段
agend_broadcast 向所有代理人廣播訊息

架構

每個代理人在獨立的 tmux 工作階段中執行(session 名稱前綴 agend-),代理人之間透過這些 MCP 工具對等通訊,無需 Telegram daemon。

前置需求

  • tmux 已安裝(apt install tmux / brew install tmux
  • 已安裝並驗證過的 AI CLI(claudegemini 等)

測試計畫

  • 呼叫 agend_start_agent 啟動一個代理人,確認 tmux session 存在
  • 呼叫 agend_list_agents 確認看得到新代理人
  • 呼叫 agend_send_message 傳訊,再用 agend_get_output 確認輸出
  • 呼叫 agend_stop_agent 終止,確認 session 消失
  • 呼叫 agend_broadcast 向多個代理人廣播

https://claude.ai/code/session_01TYQ5yrGi5wfUd7ftkrxtWy


Generated by Claude Code

claude added 2 commits May 30, 2026 02:48
Mirrors the peer-to-peer MCP tools from github.com/suzuke/AgEnD.
Each agent runs in an isolated tmux session; tools let agents
discover, message, and manage each other without a Telegram daemon.

New tools:
- agend_list_agents   — list all running agent sessions
- agend_start_agent   — spawn a new agent (claude/gemini/codex/opencode)
- agend_send_message  — send a prompt to a specific agent
- agend_get_output    — capture recent terminal output from an agent
- agend_stop_agent    — kill an agent session
- agend_broadcast     — send a message to all running agents

https://claude.ai/code/session_01TYQ5yrGi5wfUd7ftkrxtWy
Implements the same 6 agent-fleet tools as the Python version but as a
standalone Node.js MCP server using only built-in modules (readline,
child_process, fs). Works in the cloud environment where PyPI and npm
registries are blocked.

Register in Claude Code config:
  { "mcpServers": { "agend": { "command": "node", "args": ["agend.js"] } } }

Requires: Node.js >= 18 + tmux (both pre-installed in this environment).

https://claude.ai/code/session_01TYQ5yrGi5wfUd7ftkrxtWy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants