Bridge Claude Code's /goal to the active plan. Derives a goal condition from task_plan.md and invokes /goal so Claude keeps working until the plan is complete.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-planning-with-files-d1d3eafe0973 ,按照其中的说明把「plan-goal」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Bridge the active plan to Claude Code's /goal primitive.
Steps:
${PLAN_ID} env var, then .planning/.active_plan, then newest .planning/<dir>/, then legacy ./task_plan.md.task_plan.md./plan-goal until all tests pass)/goal <condition> with the derived text./goal clear cancels.If task_plan.md does not exist, refuse and direct user to run /plan first.
Why this exists:
/goal runs the agent until a small fast model confirms the condition is met. It evaluates the transcript only, not files. By deriving the condition from the plan file, this command turns the file-based plan into a measurable termination criterion for /goal, so the loop terminates when the plan is actually done, not when the conversation looks done.
Notes:
/plan-goal does not replace /goal. It composes with it. Users can still run /goal "any text" directly./goal enforces by quoting only phase headers + acceptance criteria, not full task body./plan-loop for a "babysit until done" workflow: /plan-loop cadence + /plan-goal termination.