diff --git a/internal/cmd/prime_molecule.go b/internal/cmd/prime_molecule.go index d8cdf62a..b032762e 100644 --- a/internal/cmd/prime_molecule.go +++ b/internal/cmd/prime_molecule.go @@ -88,9 +88,9 @@ func showMoleculeExecutionPrompt(workDir, moleculeID string) { fmt.Println(style.Bold.Render("→ EXECUTE THIS STEP NOW.")) fmt.Println() fmt.Println("When complete:") - fmt.Printf(" 1. Close the step: bd close %s\n", step.ID) - fmt.Println(" 2. Check for next step: bd ready") - fmt.Println(" 3. Continue until molecule complete") + fmt.Printf(" gt mol step done %s\n", step.ID) + fmt.Println() + fmt.Println("This closes the step and respawns your session with fresh context for the next step.") } else { // No next step - molecule may be complete fmt.Println(style.Bold.Render("✓ MOLECULE COMPLETE")) @@ -162,11 +162,10 @@ func outputMoleculeContext(ctx RoleContext) { showMoleculeProgress(b, rootID) fmt.Println() - fmt.Println("**Molecule Work Loop:**") - fmt.Println("1. Complete current step, then `bd close " + issue.ID + "`") - fmt.Println("2. Check for next steps: `bd ready --parent " + rootID + "`") - fmt.Println("3. Work on next ready step(s)") - fmt.Println("4. When all steps done, run `gt done`") + fmt.Println("**When step complete:**") + fmt.Println(" `gt mol step done " + issue.ID + "`") + fmt.Println() + fmt.Println("This closes the step and respawns with fresh context for the next step.") break // Only show context for first molecule step found } } diff --git a/internal/formula/formulas/mol-polecat-code-review.formula.toml b/internal/formula/formulas/mol-polecat-code-review.formula.toml index b4379e16..ba43b4a9 100644 --- a/internal/formula/formulas/mol-polecat-code-review.formula.toml +++ b/internal/formula/formulas/mol-polecat-code-review.formula.toml @@ -9,10 +9,13 @@ opportunities. The output is a set of beads capturing actionable findings. You are a self-cleaning worker. You: 1. Receive work via your hook (pinned molecule + review scope) -2. Work through molecule steps using `bd ready` / `bd close ` +2. Work through molecule steps using `bd ready` / `gt mol step done ` 3. Complete and self-clean via `gt done` (submit findings + nuke yourself) 4. You are GONE - your findings are recorded in beads +**Fresh context:** Each `gt mol step done` respawns your session with fresh context. +This ensures each review step gets unbiased attention. + **Self-cleaning:** When you run `gt done`, you submit your findings, nuke your sandbox, and exit. There is no idle state. Done means gone. diff --git a/internal/formula/formulas/mol-polecat-review-pr.formula.toml b/internal/formula/formulas/mol-polecat-review-pr.formula.toml index d789152f..c9892205 100644 --- a/internal/formula/formulas/mol-polecat-review-pr.formula.toml +++ b/internal/formula/formulas/mol-polecat-review-pr.formula.toml @@ -9,10 +9,13 @@ standards, then approves, requests changes, or files followup beads. You are a self-cleaning worker. You: 1. Receive work via your hook (pinned molecule + PR reference) -2. Work through molecule steps using `bd ready` / `bd close ` +2. Work through molecule steps using `bd ready` / `gt mol step done ` 3. Complete and self-clean via `gt done` (submit findings + nuke yourself) 4. You are GONE - your review is recorded in beads +**Fresh context:** Each `gt mol step done` respawns your session with fresh context. +This ensures each review step gets unbiased attention. + **Self-cleaning:** When you run `gt done`, you submit your findings, nuke your sandbox, and exit. There is no idle state. Done means gone. diff --git a/internal/formula/formulas/mol-polecat-work.formula.toml b/internal/formula/formulas/mol-polecat-work.formula.toml index 442e23d6..66bff205 100644 --- a/internal/formula/formulas/mol-polecat-work.formula.toml +++ b/internal/formula/formulas/mol-polecat-work.formula.toml @@ -9,10 +9,13 @@ crash after any step and resume from the last completed step. You are a self-cleaning worker. You: 1. Receive work via your hook (pinned molecule + issue) -2. Work through molecule steps using `bd ready` / `bd close ` +2. Work through molecule steps using `bd ready` / `gt mol step done ` 3. Complete and self-clean via `gt done` (submit + nuke yourself) 4. You are GONE - Refinery merges from MQ +**Fresh context:** Each `gt mol step done` respawns your session with fresh context. +This ensures each step gets unbiased attention. + **Self-cleaning:** When you run `gt done`, you push your work, submit to MQ, nuke your sandbox, and exit. There is no idle state. Done means gone.