Agent System Overview
Get Shit Done uses a multi-agent orchestration pattern where specialized agents handle specific workflow stages while thin orchestrators coordinate execution and manage state.The Orchestrator Pattern
Every GSD workflow follows the same pattern:Orchestrator spawns specialized agents
Orchestrator spawns planner, checker, and researcher agents in parallel or sequence
Agents return structured results
Each agent completes its task and returns structured data to orchestrator
Why This Architecture?
Context Window Efficiency
You can run an entire phase — deep research, multiple plans created and verified, thousands of lines of code written across parallel executors, automated verification against goals — and your main context window stays at 30-40%. The work happens in fresh subagent contexts. Your session stays fast and responsive.Parallelization
Independent work runs simultaneously:- 4 researchers investigate stack, features, architecture, and pitfalls in parallel
- 3 plans with no dependencies execute in parallel
- Multiple debuggers diagnose different UAT issues in parallel
Specialization
Each agent has a focused role with domain-specific instructions:- Planner knows how to break phases into tasks and build dependency graphs
- Verifier knows goal-backward methodology and stub detection
- Debugger knows scientific method and hypothesis testing
Agent Coordination
Stage-Based Workflow
| Stage | Orchestrator | Agents |
|---|---|---|
| Research | Coordinates, presents findings | 4 parallel researchers investigate stack, features, architecture, pitfalls |
| Planning | Validates, manages iteration | Planner creates plans, checker verifies, loop until pass |
| Execution | Groups into waves, tracks progress | Executors implement in parallel, each with fresh 200k context |
| Verification | Presents results, routes next | Verifier checks codebase against goals, debuggers diagnose failures |
Orchestrator Responsibilities
State Management
Reads and writes STATE.md, ROADMAP.md, config.json
Agent Spawning
Creates fresh agent instances with specific context
Result Integration
Collects and combines outputs from parallel agents
Flow Control
Routes to next step based on agent results
Agent Responsibilities
Focused Execution
Single purpose: research, plan, execute, verify, or debug
Structured Returns
Return formatted results for orchestrator consumption
File Creation
Write artifacts (PLAN.md, SUMMARY.md, RESEARCH.md)
Stateless Operation
Don’t manage global state — orchestrator handles this
Wave Execution Pattern
Plans are grouped into waves based on dependencies. Within each wave, plans run in parallel. Waves run sequentially.- Independent plans → Same wave → Run in parallel
- Dependent plans → Later wave → Wait for dependencies
- File conflicts → Sequential plans or same plan
“Vertical slices” (Plan 01: User feature end-to-end) parallelize better than “horizontal layers” (Plan 01: All models, Plan 02: All APIs).
Agent Lifecycle
Spawning
Orchestrator creates agent with specific context:- Files to read (mandatory initial context)
- User decisions (constraints and freedom)
- Specific task and expected output
Execution
Agent operates autonomously:- Reads mandatory files from
<files_to_read>block - Executes workflow using domain-specific instructions
- Writes artifacts (PLAN.md, SUMMARY.md, etc.)
- Returns structured result to orchestrator
Return
Agent returns one of:- Success:
## PLANNING COMPLETEwith summary - Checkpoint:
## CHECKPOINT REACHEDwith state and awaiting info - Blocked:
## PLANNING BLOCKEDwith issue and options
Orchestrator uses these structured returns to determine next action: proceed, spawn continuation agent, or return control to user.
Communication Patterns
Orchestrator → Agent
- Files to read — Context for the task
- Specific instructions — What to create/verify
- User input — Decisions, feedback, approvals
Agent → Orchestrator
- Structured results — Success/checkpoint/blocked with data
- File paths — Artifacts created for commit
- Next steps — What should happen next
Agent → File System
- Writes artifacts — PLAN.md, SUMMARY.md, RESEARCH.md
- Reads context — PROJECT.md, ROADMAP.md, existing plans
- Never commits — Orchestrator handles git operations
Error Handling
Agent Failures
If agent encounters an error:- Return structured failure to orchestrator
- Include error context for debugging
- Suggest recovery options when possible
- Retry with adjusted context
- Spawn different agent type
- Return to user for input
Context Overflow
If agent approaches context limit:- Complete current task with available context
- Return checkpoint with state and continuation point
- Orchestrator spawns fresh agent with checkpoint state
Checkpoint state includes: completed tasks, current task, next action, all previous evidence/decisions.
Next Steps
Explore the specific agents:Planner
Creates executable phase plans with task breakdown
Executor
Executes plans with atomic commits
Verifier
Verifies phase goal achievement
Debugger
Investigates bugs using scientific method
Plan Checker
Verifies plans will achieve goals before execution
Researchers
Research domains before planning and execution