Repository navigation
agent-node 2.4.11 — codex-sdk commhub MCP injection (#245 P0) + 6-commit carry
agent-node 2.4.11 — codex-sdk commhub MCP injection (#245 P0) + 6-commit carry
Companion to agent-network 2.2.14 (same #245 codex-sdk MCP fix, see https://github.com/sleep2agi/agent-network/releases/tag/v2.2.14). Both upgrade together.
🌟 Highlight (#245 codex-sdk MCP injection)
CODEX_CONFIG now includes mcp_servers.commhub = { command: "bun", args: [<cwd>/.anet/node-server.js] }. The codex CLI subprocess inherits this agent-node parent process's env, which anet's launchAgent already sets per-node (COMMHUB_ALIAS = displayName, COMMHUB_TOKEN, COMMHUB_URL). The Codex SDK flattens this config JSON into --config key=value TOML literal overrides — per-Codex-instance, in-memory, no mutation of ~/.codex/config.toml.
Net effect: every codex-sdk node now gets the full 8-tool commhub MCP set (commhub_send_task / commhub_get_all_status / commhub_get_task / commhub_send_message / commhub_send_reply / commhub_report_status / commhub_get_session_status / commhub_list_tasks) with the correct per-node sender alias.
Live-verified on TMCode 副责人 codex-sdk node:
- ✅
commhub_send_taskcallable; the node sent a tracked task ("codex MCP verify alive") that 通信龙 acked - ✅
commhub_get_all_statusreturns the node's correct alias (TMCode副责人, not the stalecodex-硅谷) - 📝 Codex CLI uses lazy MCP discovery via
tool_search(it doesn't surface MCP tools as top-level "native tools" the way claude-agent-sdk does withmcp__commhub__*namespacing).developer_instructionsalready teaches the agent to callcommhub_send_task(...)directly. A tool-discovery hint ("commhub_*tools live in MCP —tool_search 'commhub'for the catalog") will land in the next release as a polish item.
📦 Carry — 6 additional fixes since 2.4.10
Every commit reviewed + soaked on main before inclusion. Full list:
| Commit | Issue | What it does |
|---|---|---|
ff7e2b0 |
#245 | CODEX_CONFIG.mcp_servers.commhub injection (this release's headline) |
c4a5f47 |
#230 (PR #232) |
explicit-delegation precheck — alias equality + self-exclusion + LLM fall-through. Stops "self-reflection" false-positives where a node tried to delegate to itself. Live-verified by N站马 (b340c544 regression PASS). |
49a1fcf |
#229 |
per-node CLAUDE.md template "给用户发文件" SOP + fetchWithTimeout type widen |
2e9fae0 |
#228 (PR-4) |
runtime alias getter + node_id-based identity propagation — caps stale-alias drift on long-running agent processes. 通信牛 + SDK马 review pair PASS. |
d206fdd |
#213 |
grok resume — prepends un-closed-loop outbound-task hint to the first prompt so a resumed grok agent re-engages prior in-flight tasks |
61e0bf3 |
#186 |
codex-sdk runtime self-heals when @openai/codex-sdk is missing from node_modules (auto-installs into agent-node's own modules dir, no global) |
21b0aa2 |
#214 dim 5 A6 |
startup log surfaces the resolved grok-build-acp idle timeout source (config / env / flag) — debuggability |
📦 Install (new users)
# agent-node is auto-fetched on first `anet node start`; explicit install is rare.
# If you want it on PATH:
npm i -g @sleep2agi/agent-node@latest
agent-node --version # should print: agent-node v2.4.11🔄 Upgrade (existing users)
# pair with agent-network 2.2.14 to get the full codex-sdk MCP fix:
npm i -g @sleep2agi/agent-network@latest @sleep2agi/agent-node@latest
# restart any codex-sdk node to pick up the new MCP injection:
cd <node-workdir> && anet node stop <alias> && anet node start <alias>For non-codex-sdk runtimes (claude-code-cli, claude-agent-sdk, grok-build-acp) the upgrade is still recommended — carries 6 additional fixes (#230 / #229 / #228 / #213 / #186 / #214 dim 5 A6).
📦 Components shipped
| Package | latest |
|---|---|
@sleep2agi/agent-network |
2.2.14 (companion — see v2.2.14 release) |
@sleep2agi/agent-node |
2.4.11 ⬆ (from 2.4.10) |
@sleep2agi/commhub-server |
0.8.5 (unchanged) |
🙏 Credits
- #245 codex-sdk audit + double-package fix + release ops: 通信工程马
- Diagnostic snapshot + live verification (3 铁证: send_task + get_all_status + alias correctness): TMCode 负责人
- Original "新成员都用不了 send_task" retro: Vincent
- Coordination + ship-blocker gating + final accept verdict: 通信龙
- Carry commits (#230 / #229 / #228 / #213 / #186 / #214 A6): 通信SDK马 + 通信工程马
Full Changelog: v0.10.14...v2.4.11