Skip to main content
File: agents/sdlc/07-code.md · Model: Opus · Tools: Bash, Read, Write, Edit

Purpose

The code agent generates real, production-grade scaffolding that follows the architecture exactly. Not pseudocode. Not stubs. Every route has a handler, every handler has error handling, and every database call has connection validation.

Core principle

A stubbed codebase is not a codebase. The test suite will run against this output. If it fails to start, every downstream agent fails with it.

What it does

  1. Reads system_design.json
  2. Generates working code for every component in the architecture
  3. Wires up error handling, environment variable validation, and health endpoints
  4. Runs tests before claiming done
  5. Writes code_report.json

Output structure