Human-in-the-loop planning and refinement with a current-session execution handoff.
optim-plans turns a rough repository-change request into a traceable Markdown plan, refines that plan with reviewer or criticizer passes, and then hands an accepted plan back to the current agent session for implementation. Version 0.3.0 is intentionally smaller: it removes the separate controller execution engine and keeps the product focused on planning quality.
A small scoped repo change needs 1 to 3 planning questions and one refinement pass.
create-a-plan
A broad or risky change needs 5 to 10 planning questions, research, and bounded refinement.
create-a-big-plan
A high-risk or open-ended effort needs at least 10 planning questions and refinement until convergence.
diagnose-before-plan
A bug, CI failure, regression, incident, RCA, or broken behavior needs diagnosis before planning.
reference-before-plan
Downloaded projects, articles, papers, or docs must be analyzed before planning choices are safe.
The old aggregate and alias skills were removed. Invoke the skill that matches the depth of the planning job.
Workflow
Inspect the target repository read-only.
Initialize controller state with the selected skill level.
Ask one planning question at a time, using the standard choice order: recommended option first, Other second-last, Auto-complete last.
Ask the mandatory final scope confirmation before writing PLAN_v1.md.
Write PLAN_vN.md artifacts with stable IDs and a ## Verifier Checklist.
Refine with either Reviewer or Criticizer.
Ask the native handoff question without Auto-complete:
Execute this plan now with normal Prime Agent tools, Stop after planning, or Other.
If approved, leave the planning workflow and implement normally in the current session.
There is no separate manifest, run worktree, delegated implementation role, verification role, retry loop, checkpoint lifecycle, or terminal finish gate in 0.3.0.
Runtime Layout
Machine state stays outside the monitored worktree in the Git common directory: