
Forge Orchestrator
io.github.nxtg-ai由 GitHub 账号 nxtg-ai 发布v1.8.0更新于 Nov 6, 2026
Forge orchestrator MCP server for Claude Code (alpha). Codex/Gemini runners are not in the alpha.
概览
Alpha 阶段的 Rust 编排器,为 AI 助手提供共享任务板、文件锁和知识库,用于在同一仓库上协调多个 AI 编码工具。
- 可以做什么
- 在带依赖关系的共享任务板上创建、认领和完成任务
- 检查并记录文件锁,使文件重叠的任务被拒绝
- 记录决策、模式与经验,并在后续会话中检索
- 读取和更新 Claude Code、Codex CLI 与 Antigravity CLI 共享的编排状态
- 通过命令行从规格生成任务计划并查看项目状态
- 适用场景
- 当多个 AI 编码工具同时处理同一代码库,希望共享任务状态、用文件锁协调并保留决策记录,而不是互相覆盖时值得加入。它是 alpha 软件,面向共享仓库上的 Claude Code 用户。
- 运行要求
- 需在本机安装 Forge 二进制(单个 Rust 二进制,无运行时依赖),可用厂商安装脚本或各平台安装包;服务器以 forge mcp 通过 stdio 运行。它作用于启动时所在的项目目录,或用 FORGE_PROJECT_ROOT 指定的目录。漂移检测需要 openai 大脑和 API 密钥;默认的规则型大脑免费。
安装
在 SourceWeft 中
- 打开 控制台中的 Forge Orchestrator,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
forge-orchestrator
[stage: alpha] [MCP Registry] [License: FSL-1.1-ALv2] [Version] [docs.rs] [CI] [GitHub stars] [crates.io]
Stage: Alpha. The Forge plugin and orchestrator are in alpha. On 2026-10-15 (UTC) a separate NXTG.AI team (product-oracle) ran the pre-registered core-job test on a clean install of the plugin (v3.14.0) and the orchestrator (forge 1.7.0). The test passed; each repeated check passed 3 of 3 (run 7). The evidence is attached to the forge-plugin v3.14.0 release. No SLA; interfaces may change without notice.
Orchestration for Claude Code on shared repos, with Codex CLI and Antigravity CLI (agy) as task runners — single Rust binary, zero deps.
Multi-agent inside a single tool works fine. Claude Code runs 20 subagents and they stay aligned because the tool manages that orchestration internally. The problem is multi-tool: several AI coding tools on the same repo with no shared state. That's what the orchestrator solves: today for Claude Code, with Codex CLI and Antigravity CLI (agy) as task runners. The orchestrator launches agy as a task runner; Forge makes no other claim about agy.
It adds file locking, knowledge capture, task planning, drift detection, and multi-tool orchestration to your development workflow. The tools read from and write to a single state directory. A 12-tool MCP server exposes the full orchestration state to any connected AI client, and can create, claim and complete tasks.
The orchestrator exists because I ran two AI tools on the same codebase and watched them fail in the same ways human teams fail. Claude refactored a module. Codex updated tests against the pre-refactor interface. Both saved. Tests failed. Neither tool knew the other existed. I'd spent 23 years watching this exact scenario with talented human teams. The solution was always the same: orchestration infrastructure.
Install
The installer installs Forge v1.8.0, the pinned release, not whichever release is newest. It puts forge in ~/.local/bin (change it with FORGE_INSTALL_DIR) and adds that directory to your PATH with one guarded line in ~/.profile, ~/.bashrc and, if you have zsh, ~/.zshenv. Set FORGE_NO_MODIFY_PATH=1 to leave your shell files alone.
If the claude CLI is on your PATH, the installer then adds forge's MCP tools to Claude Code, using only that CLI: it adds and refreshes the nxtg-forge marketplace (nxtg-ai/forge-plugin), updates nxtg-forge@nxtg-forge if you already have it, and installs the companion plugin nxtg-forge-orchestrator@nxtg-forge. It prints one line per change and changes no Claude configuration any other way. Without claude, or if a step fails, it prints the commands for you to run and still exits 0. Set FORGE_NO_CLAUDE_PLUGIN=1 to skip it.
Single binary. No runtime dependencies.
Connect Codex CLI to the MCP server
Register the orchestrator's MCP server with Codex CLI, then check that Codex lists it:
This writes the entry to ~/.codex/config.toml:
The server works on the project in the directory it starts in. To pin one project, bind it when you register: codex mcp add forge --env FORGE_PROJECT_ROOT=/path/to/project -- forge mcp. Checked with codex-cli 0.162.1: codex mcp list shows forge enabled over stdio, and the server answers tools/list with its 12 tools. A tool call made through this registration from inside a Codex session has not been measured.
Quick Demo
Four commands from zero to task board:
From here you can:
forge run— execute tasks headlessly (autonomous mode, great for CI)forge dashboard --pty— launch the TUI dashboard with interactive agent panes
Past Result: Stargate Mode (before v1.6.1)
From a 94-line specification, an earlier version of the orchestrator coordinated three AI coding tools to build a complete CLI toolkit. That run drove the retired Gemini CLI; since v1.6.1 the adapter launches Antigravity CLI (agy) instead, and the run has not been re-measured.
Three companies. Three tools. One orchestrator. One command:
What You Get
Key Commands
Every command and its options, as the binary prints them. CI regenerates this block from forge --help and fails if it differs:
Use as a library
Since v1.8.0, the crate also builds a library, forge_orchestrator, for tools that read or write a project's .forge/ directory without running forge. Its documented surface is forge_orchestrator::core: project state and file locks, tasks, the event log, the knowledge base and the plan. The rest of the crate is the binary's internals, hidden from the docs. Like the binary, the library is alpha, and its API may change.
API docs: https://docs.rs/forge-orchestrator. To build them locally: cargo doc --open in a checkout.
Runnable examples, run in CI against the built binary:
examples/task_board.rs: print a project's task board from.forge/.examples/capture_knowledge.rs: capture a decision and list that category.examples/mcp_stdio.rs: talk toforge mcpas an MCP client: initialize, list the 12 tools, create a task.
Architecture
The orchestrator holds Forge's shared state: tasks, file locks, knowledge and the event log. The plugin (L1: Vibe Coder) adds Claude Code commands, skills and hooks, and its guard hooks run inside Claude Code. The UI (L3: Ship Lord) is a separate React dashboard.
Communication: .forge/ filesystem + MCP stdio. No daemon. No database. State is files.
Tool adapters: Claude Code uses MCP stdio. Codex CLI and Antigravity CLI (agy) run tasks through filesystem conventions. The agy adapter keeps the agent id gemini in task files, config keys and MCP arguments, so existing projects keep working. Each tool reads its own config format. No Forge-specific configuration language.
How File Locking Works
File locking exists because I've watched teams lose days to conflicting edits.
Each task lists the files it touches. A claim through the forge_claim_task MCP tool or single-task forge run --task <id> --agent <agent> first checks those files against the locks held in .forge/state.json. If any overlap, the claim is refused, and the refusal names the task and agent that hold them; otherwise the files are recorded as locked by that task. forge start and the dashboard record locks the same way when they launch a task, but do not check for overlap first. Autonomous forge run (no --task) neither checks for overlap nor records locks. Finishing the task releases its locks.
The lock governs claims, not edits: it does not stop a tool from writing a file. Locks have no timeout: if the process that took a lock dies, the lock stays in the state file. The state file is read and rewritten without a cross-process lock, so two claims made at the same moment can both succeed.
How the Knowledge Flywheel Works
The knowledge flywheel exists because I've watched decisions evaporate between sprints.
Decisions, patterns, learnings and research captured through forge_capture_knowledge are stored in .forge/knowledge/, one directory per category, and classified automatically. Any tool connected to the MCP server can search them with forge_get_knowledge, in a later session as well as the current one.
Forge UI
forge-ui is a separate React dashboard for Forge, released on its own; its README states its stage. To run it from source:
Links
- Forge Product Page
- Forge Plugin (L1: Vibe Coder)
- Forge UI (L3: Ship Lord)
- Documentation
- MCP Registry:
mcp-name: io.github.nxtg-ai/forge-orchestrator
License
Source available under the Functional Source License 1.1 (FSL-1.1-ALv2). Converts to Apache License 2.0 on 2028-03-18. See LICENSE.md for full terms.
来源:README.md,提交 163e620
工具
0版本历史
7- v1.8.0最新Nov 6, 2026
- v1.7.1Oct 15, 2026
- v1.7.0Oct 14, 2026
- v1.6.4Oct 14, 2026
- v1.6.3Oct 14, 2026
- v1.6.2Oct 7, 2026
- v1.6.0Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。