Overview
Standard-complexity tasks like new features, refactors, and integrations flow through Magpie’s TDD blueprint (magpie-tdd). This structured approach follows test-driven development: scan → plan → write tests → verify fail → implement → test → lint.
Task Classification
Keywords that trigger the Standard path:add,implement,create,build,refactormigrate,integrate,introduce,design,architectextract,replace,rewrite,optimize,convert
Example: Add Health Check Endpoint
Discord Message
Pipeline Flow
TDD Blueprint Step 1: scan-repo
The blueprint starts by scanning the repository structure:Output (truncated):
TDD Blueprint Step 2: plan
Agent receives the file tree and creates a structured plan:Agent Prompt:Agent Output:
TDD Blueprint Step 3: write-tests
Agent writes test code ONLY (no implementation yet):Agent Prompt:Agent Output:Agent confirms:
TDD Blueprint Step 4: verify-tests-fail
Run tests to confirm they fail (TDD red phase):Output:The blueprint continues because
continue_on_error: true for this step.TDD Blueprint Step 5: implement
Agent implements the feature to make tests pass:Agent Prompt:Agent Output:Agent confirms:
CI Classification
Magpie checks changed files:Because the TDD blueprint’s built-in test+lint steps already passed,
Magpie skips the CI loop entirely.
Pipeline Result
Discord Bot Reply
Performance
| Metric | Value |
|---|---|
| Total time | ~15 minutes |
| Agent turns | ~8-12 (scan, plan, write tests, implement) |
| CI rounds | 0 (TDD lint+test already passed) |
| Tier 1 calls | 2 (branch slug, commit message) |
| Tier 2 calls | 4 (plan, write-tests, implement, investigate) |
Why TDD Works
- Structured phases — agent doesn’t try to do everything at once
- Test-first — validates behavior before implementation
- Built-in CI — lint+test run inside the blueprint
- No wasted retries — if TDD tests pass, skip external CI loop