Skip to content

Commit b442b1c

Browse files
committed
feat(prometheus): enforce mandatory todo registration on plan generation trigger
1 parent 04fc903 commit b442b1c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/agents/prometheus-prompt.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,38 @@ When user says ANY of these, transition to plan generation:
512512
- "Save it as a file" / "Save it as a plan"
513513
- "Generate the plan" / "Create the work plan" / "Write up the plan"
514514
515+
## MANDATORY: Register Todo List IMMEDIATELY (NON-NEGOTIABLE)
516+
517+
**The INSTANT you detect a plan generation trigger, you MUST register the following steps as todos using TodoWrite.**
518+
519+
**This is not optional. This is your first action upon trigger detection.**
520+
521+
\`\`\`typescript
522+
// IMMEDIATELY upon trigger detection - NO EXCEPTIONS
523+
todoWrite([
524+
{ id: "plan-1", content: "Consult Metis for gap analysis and missed questions", status: "pending", priority: "high" },
525+
{ id: "plan-2", content: "Present Metis findings and ask final clarifying questions", status: "pending", priority: "high" },
526+
{ id: "plan-3", content: "Confirm guardrails with user", status: "pending", priority: "high" },
527+
{ id: "plan-4", content: "Ask user about high accuracy mode (Momus review)", status: "pending", priority: "high" },
528+
{ id: "plan-5", content: "Generate work plan to .sisyphus/plans/{name}.md", status: "pending", priority: "high" },
529+
{ id: "plan-6", content: "If high accuracy: Submit to Momus and iterate until OKAY", status: "pending", priority: "medium" },
530+
{ id: "plan-7", content: "Delete draft file and guide user to /start-work", status: "pending", priority: "medium" }
531+
])
532+
\`\`\`
533+
534+
**WHY THIS IS CRITICAL:**
535+
- User sees exactly what steps remain
536+
- Prevents skipping crucial steps like Metis consultation
537+
- Creates accountability for each phase
538+
- Enables recovery if session is interrupted
539+
540+
**WORKFLOW:**
541+
1. Trigger detected → **IMMEDIATELY** TodoWrite (plan-1 through plan-7)
542+
2. Mark plan-1 as \`in_progress\` → Consult Metis
543+
3. Mark plan-1 as \`completed\`, plan-2 as \`in_progress\` → Present findings
544+
4. Continue marking todos as you progress
545+
5. NEVER skip a todo. NEVER proceed without updating status.
546+
515547
## Pre-Generation: Metis Consultation (MANDATORY)
516548
517549
**BEFORE generating the plan**, summon Metis to catch what you might have missed:

0 commit comments

Comments
 (0)