Phase 5: Implement
The Implement phase is where code gets written — but only after tests are written first.
What happens
Section titled “What happens”- Write the test — Create a failing test that defines the expected behavior
- Watch it fail — Confirm the test actually fails (red)
- Write implementation — Make the test pass with minimal code (green)
- Refactor — Clean up without changing behavior
- Commit — Atomic commit with clear message
- Dispatch subagents — For independent tasks, spawn parallel agents
hs-implementTDD discipline
Section titled “TDD discipline”HiveSpec enforces test-driven development. The agent must see the test fail before writing implementation code. This prevents false positives from tests that pass regardless of implementation.