Spec4 is a structured pipeline of six AI agents. Each one handles a distinct phase of project planning, produces a machine-readable output, and hands it forward to the next. You stay in control at every step.
When you open Spec4, the first thing you'll do is configure your AI connection:
Once configured, you move through the pipeline. You can start from scratch with a new idea, or begin with CodeScanner if you're planning changes to an existing project.
If you're building something new from scratch, you can skip straight to Brainstormer. But if you're extending or redesigning an existing project, CodeScanner reads your codebase and produces a structured analysis before any planning begins.
It walks through six areas — project type, architecture, languages and frameworks, build system, coding style, and notable observations — and asks you to confirm or correct each one. The result travels with the spec through every downstream agent.
code_review.json
Brainstormer is a collaborative agent that asks you one focused question at a time. It surfaces assumptions, identifies gaps, and pushes back when something is unclear — without overwhelming you with a form to fill out.
Each answer adds to a running vision statement you can review and revise at any step. Brainstormer deliberately stays in its lane: it won't ask about technology, hosting, or libraries. The focus is entirely on what you're building, who it's for, and why it matters.
vision_statement JSON object
Designer reads your vision statement and generates a self-contained HTML mock of your application's look and feel — no frameworks, no build step, no external dependencies. Open it in any browser, share it with stakeholders, or hand it to your coding agent as a visual spec.
Two modes: create from scratch using your vision, or modify an existing UI to reflect your planned changes. Iterative refinement is built in — describe what to change and it regenerates. Give Designer screenshots or images that you like or dislike and it will use those to guide the design. The mock can then inform StackAdvisor's UI library recommendations. You can skip Designer for CLI, terminal, or API-only projects.
design/mock.html
StackAdvisor takes your vision statement — and your UI mock if Designer ran — and walks you through every layer of the technology decision: programming language, deployment platforms, hosting approach, libraries for each functional area, and coding style.
For each choice, it presents ranked options with honest trade-off analysis — maintenance status, adoption, footprint, what you'd have to write yourself without it. When a code review is present, it actively flags conflicts between what you have and what you're considering.
stack.json
Phaser takes the vision, stack spec, and design mock and produces a numbered sequence of implementation phases. Each phase is a self-contained JSON object with a summary, dependency list, configuration requirements, step-by-step instructions, a risk assessment, and an exact verification command.
Phase 1 is always a Steel Thread — the minimal end-to-end connection that proves your stack is wired together before any feature development begins. If a phase would require a dependency not in your stack spec, Phaser stops and asks for your approval first.
phase JSON objects
Deployer works in two parts. First, you tell it which AI coding agent you'll use (Claude Code, Cursor, Copilot, Windsurf, Cline, and others are supported). Deployer searches for current documentation on that agent and gives you precise guidance for loading and executing Spec4 phases — exact syntax, recommended workflow, and known pitfalls.
Second, Deployer walks through your deployment strategy one question at a time: target platform, containerization, CI/CD pipeline, environment configuration, and monitoring. For cloud deployments, it can generate complete Terraform infrastructure scripts.
deployment-plan.md
Spec4 doesn't lock you into an agentic coding tool or a deployment workflow. The output is structured JSON, a deployment plan, and a UI mock — all yours to use however you like. Paste a phase into Claude Code, deploy to your own infrastructure, design on your own schedule.