Supergoal
Plan deeply, then autonomously build until it's done.
/supergoal <what you want> recons your codebase, applies your saved preferences from memory, decomposes the work into the right number of phases for the task, gets one confirmation from you, then prints a single ready-to-paste /goal command. Paste it once and the rest is autonomous: every phase runs sequentially with built-in retry, fix-spec recovery, and per-phase memory writeback until SUPERGOAL_RUN_COMPLETE.
Works on Claude Code and Codex (Codex CLI).
How it works (at a glance)
flowchart TD
Start(["/supergoal <your task>"]) --> S0["Stage 0<br/>Load memory + detect tools"]
S0 --> S1{Greenfield<br/>or brownfield?}
S1 -->|Greenfield| Q1["Stage 1<br/>walk full category checklist<br/>(platform, stack, design,<br/>integrations, scope, audience...)"]
S1 -->|Brownfield| Q2["Stage 1<br/>0–2 questions<br/>(recon answers most)"]
Q1 --> S2["Stage 2<br/>Recon (parallel)"]
Q2 --> S2
S2 --> S3["Stage 3<br/>Risks + best practices"]
S3 --> S4["Stage 4<br/>Decompose into N phases<br/>(adaptive — no fixed count)"]
S4 --> S5["Stage 5<br/>Write ROADMAP, STATE,<br/>phase-N.md specs to disk"]
S5 --> S6{"Stage 6<br/>Self-critique +<br/>plan review +<br/>revision menu"}
S6 -->|Revise| S4
S6 -->|Start now| S65{"Stage 6.5<br/>Pre-flight<br/>smoke check"}
S65 -->|Green| S7["Stage 7<br/>Print ready-to-paste /goal"]
S65 -->|Red| S6
S7 --> PASTE(["You paste /goal — once"])
PASTE --> LOOP["Autonomous loop per phase:<br/>read spec → do work →<br/>SUPERGOAL_PHASE_VERIFY<br/>(includes cleanliness grep) →<br/>write memory → SUPERGOAL_PHASE_DONE"]
LOOP --> CHECK{Failure?}
CHECK -->|None| NEXT{More phases?}
NEXT -->|Yes| LOOP
NEXT -->|No| AUDIT["FINAL AUDIT<br/>re-verify against ROADMAP<br/>re-run mandatory commands<br/>spot-check criteria<br/>+ check deliverables vs Baseline ref<br/>(full working tree)"]
CHECK -->|1st| R1["Auto-retry<br/>with probe injected"]
R1 --> LOOP
CHECK -->|2nd| R2["Write fix-spec,<br/>execute inline"]
R2 --> LOOP
CHECK -->|3rd| HANDOFF(["STOP — handoff with<br/>full probe history"])
AUDIT --> AGAPS{Gaps?}
AGAPS -->|None| DONE(["AUDIT_COMPLETE ✓<br/>+ coverage %<br/>SUPERGOAL_RUN_COMPLETE ✓"])
AGAPS -->|Round 1 or 2| AFIX["Write audit-fix-N.md,<br/>execute inline"]
AFIX --> AUDIT
AGAPS -->|Round 3| AHO(["STOP — AUDIT_HANDOFF<br/>persistent gaps"])
classDef human fill:#fef3c7,stroke:#d97706,color:#000
classDef done fill:#d1fae5,stroke:#059669,color:#000
classDef stop fill:#fee2e2,stroke:#dc2626,color:#000
classDef audit fill:#dbeafe,stroke:#2563eb,color:#000
class Start,PASTE human
class DONE done
class HANDOFF,AHO stop
class AUDIT,AFIX audit
Yellow = the only steps you do. Blue = the final audit that re-checks against your original plan. Green = success terminal (audit clean). Red = blocker handoff. Everything else is autonomous.
How it's different
flowchart LR
subgraph Traditional["Traditional planning"]
direction TB
A1["Ask for a plan"] --> A2["Plan returned"]
A2 --> A3["You execute step 1"]
A3 --> A4["Re-prompt"]
A4 --> A5["Execute step 2"]
A5 --> A6["Re-prompt"]
A6 --> A7["... every step ..."]
A7 --> A8["Done — many turns"]
end
subgraph Supergoal["With Supergoal"]
direction TB
B1["/supergoal <task>"] --> B2["Plan + per-phase specs<br/>+ risks + memory hits"]
B2 --> B3["Approve once"]
B3 --> B4["Paste /goal once"]
B4 --> B5["Autonomous run<br/>self-heals failures<br/>writes memories"]
B5 --> B6["Done"]
end
classDef toil fill:#fee2e2,stroke:#dc2626,color:#000
classDef ease fill:#d1fae5,stroke:#059669,color:#000
class A3,A4,A5,A6,A7 toil
class B5 ease
Two human touches total: one approval, one paste. The plan is deeper than a one-shot plan (recon, risk list, memory-informed phase shaping, validated specs) and the execution is autonomous instead of step-by-step babysitting.
Why one /goal (not a chain)
/goal on both hosts takes a short end-state condition that an evaluator checks against the transcript after each turn — not a long task body. Supergoal leverages this directly: one /goal covers the whole run; phase work lives in files the agent reads from disk. No char budget, no inter-session chain, no fragility.
Slash commands only fire from user input, so Stage 7 is an honest one-paste handoff: the planner prepares the /goal line, you paste it, the autonomous run starts. From there it drives itself to completion.
Install — Claude Code
Three commands inside a Claude Code session:
/plugin marketplace add https://github.com/robzilla1738/supergoal.git
/plugin install supergoal@supergoal
/reload-plugins