跳转到内容

ChatGPT Pro 规划器

用 ChatGPT Pro 规划,用 Claude 或 Codex 执行。repo-harness 通过本地 MCP sidecar 给 ChatGPT 对你已注册仓库的只读访问(工作流文件,加上仓库目录树、搜索和文件内容),同时写入仍限定在工作流产物(计划、sprint、契约、handoff)范围内;这样规划器读取真实状态时不会碰到源码。

Terminal window
repo-harness mcp setup chatgpt --repo .
repo-harness mcp serve --transport http \
--host 127.0.0.1 --port 8765 --profile planner

把打印出的 /mcp URL 作为 ChatGPT Connector 连接。planner profile 对已注册仓库是只读的,写入仅限于工作流产物。

Terminal window
repo-harness mcp prepare-goal \
--prd plans/prds/auth.prd.md \
--sprint plans/sprints/auth.sprint.md
# › .ai/harness/handoff/codex-goal.md

planner profile 提供硬性保证:

  • 不写源码,
  • 没有任意 shell,
  • 没有默认 runner,
  • 与你的 API 配额相互独立。

它只做规划与审查——Codex 或 Claude 始终是执行器。

完整的 Connector 流程——OAuth、隧道端点、Codex stdio、可选的 dev runner,以及故障排查——见 MCP 连接器。如果想通过 Oracle 而非 API 来驱动 ChatGPT Web,见 ChatGPT 浏览器引擎