Skip to content

Pipeline & Goals

Build goals

Every build starts by choosing a goal. Goals control which agents run and how deeply each phase is executed.

GoalUse whenAgentsTypical time
prototypeExploring an idea~15 core agents3–5 min
mvpBuilding something realCore + specialists8–12 min
productionShipping to usersAll 58+ agents15–25 min

Pipeline v2 (streaming)

Start a build with a POST to /pipeline/v2/stream:

json
{
  "prompt": "Build a FastAPI CRUD app with PostgreSQL and JWT auth",
  "goal": "mvp",
  "mode": "plus",
  "hitl_enabled": true,
  "hitl_phases": ["planning"],
  "project_name": "my-api"
}

The response is a text/event-stream. Each agent emits events as it runs:

event: phase_start
data: {"phase": "planning", "agents": ["IdeationAgent", "ArchitectureAgent"]}

event: agent_output
data: {"agent": "IdeationAgent", "content": "...", "tokens": 412}

event: checkpoint
data: {"checkpoint_id": "chk_a1b2", "phase": "planning", "type": "hitl"}

event: build_complete
data: {"project": "my-api", "files": 47, "lines": 3820, "ctq_score": 84}

Pipeline phases

PhaseDescription
planningIdeation, architecture, scope definition
designDatabase schema, API contracts
implementationBackend, frontend, infrastructure code
testingUnit, integration, security, performance
releaseCI/CD, deployment config, documentation

HITL — pausing at checkpoints

Set hitl_enabled: true and specify which phases to pause at:

json
{
  "hitl_enabled": true,
  "hitl_phases": ["planning", "release"]
}

When the pipeline hits a HITL phase, it emits a checkpoint event and pauses. Resume with:

bash
POST /pipeline/v2/checkpoint/{checkpoint_id}/resolve

{
  "action": "approve",
  "feedback": "Architecture looks good, proceed"
}

action can be approve, reject, or modify. Use modify with a feedback string to redirect the agent before it continues.

Session management

bash
# List all your sessions
GET /pipeline/v2/sessions?status=running

# Get full session details and all agent outputs
GET /pipeline/v2/session/{session_id}

# Cancel a running build
DELETE /pipeline/v2/session/{session_id}

Modes

ModeDescription
standardUses the default LLM routing (MoE)
plusRoutes all agents to the highest-capability models

Use plus for Production goal builds where quality matters most. standard is faster and cheaper for prototypes.

Purple8 Builder is proprietary software. All rights reserved.