From e7c1c9bd86eb4628aa82ea1125f5ed35e0980724 Mon Sep 17 00:00:00 2001 From: Snider Date: Sun, 15 Mar 2026 17:18:50 +0000 Subject: [PATCH] fix(agentic): enforce commit-per-phase in coding prompt Strengthen phase enforcement: 'Each phase = one commit. This is not optional.' Agents were batching all phases into a single commit. Now the prompt explicitly requires stopping and committing after each phase. Co-Authored-By: Virgil --- pkg/mcp/agentic/prep.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkg/mcp/agentic/prep.go b/pkg/mcp/agentic/prep.go index ae2c158..54af85a 100644 --- a/pkg/mcp/agentic/prep.go +++ b/pkg/mcp/agentic/prep.go @@ -278,11 +278,14 @@ Work in the src/ directory. Follow the conventions in CLAUDE.md. ## Workflow -If PLAN.md exists, work through it phase by phase: +If PLAN.md exists, you MUST work through it phase by phase: 1. Complete all tasks in the current phase -2. Commit with message: type(scope): description -3. Move to the next phase +2. STOP and commit before moving on: type(scope): phase N - description +3. Only then start the next phase 4. If you are blocked or unsure, write BLOCKED.md explaining the question and stop +5. Do NOT skip phases or combine multiple phases into one commit + +Each phase = one commit. This is not optional. If no PLAN.md, complete TODO.md as a single unit of work.