commands/plan-goal.md
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.