File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
2- description : TCR (Test-Commit-Revert) workflow for implementing tasks with test-driven development.
2+ description : Full TCR workflow for implementing plans with test-driven development
33agent : build
44---
55
6- Invoke the ` build ` agent to manage the project roadmap and implement tasks via a strict, agent-delegated TCR loop.
6+ Autonomous TCR workflow for implementing tasks from a plan.
7+
8+ ### Preconditions
9+ - Requires a plan (linked to task via ` task.planPath ` OR passed as argument)
10+ - If no plan exists → stop and instruct: "Use /plan first to create a plan"
11+
12+ ### Workflow
13+
14+ 1 . ** Branch Setup** :
15+ - Generate branch name: ` feature/<task-id>-<slug> ` (e.g., ` feature/G.1-implement-auth ` )
16+ - Create and switch to branch: ` git checkout -b <branch-name> `
17+
18+ 2 . ** Step Execution** (for each step in plan):
19+ - Invoke ` builder ` subagent with the step details
20+ - Builder does: write test → implement → verify
21+ - If builder succeeds → commit step with "Step N: <description >"
22+ - If builder fails once → builder retries one fix
23+ - If builder fails again → ASK USER for guidance
24+
25+ 3 . ** Completion** :
26+ - Merge branch to main
27+ - Run final ` make test `
28+ - Archive task via ` task archive --task-id X.X `
29+ - Report success summary
30+
31+ ### Reporting
32+ - Report progress after each step
33+ - Only interrupt for user input on builder failure after retry
You can’t perform that action at this time.
0 commit comments