Skip to main content
GSD Core uses a multi-agent architecture where thin orchestrators spawn specialized agents with clean context windows. Rather than accumulating a single long conversation where quality degrades over time, each specialist agent starts fresh — with up to 200K tokens of context, or up to 1M tokens on models that support it — focused only on its assigned task, reading only the artifacts it needs. You do not invoke agents directly. Orchestrators (the workflow commands like /gsd-plan-phase and /gsd-execute-phase) spawn agents automatically at the right point in the phase loop. What you see in your session is the orchestrator’s progress updates; the agents work in parallel in their own isolated context windows.

How fresh-context subagents work

When an orchestrator needs to perform heavy work — researching a domain, writing plans, implementing code — it spawns a subagent with a precisely scoped prompt. That subagent receives:
  • Its specific agent definition (role, tools, constraints)
  • The subset of planning artifacts it needs for its task
  • A model assignment based on the workflow profile
The subagent runs to completion, writes its output to disk (a RESEARCH.md, a PLAN.md, a SUMMARY.md), and returns a compact result to the orchestrator. The orchestrator’s context never grows with the weight of the subagent’s work — only the result arrives back. This architecture is why GSD Core can run four researchers in parallel, spawn multiple executors across wave boundaries, and keep the main session lean throughout a long phase.

Agent categories

Researchers

Researchers gather ecosystem knowledge before planning begins. They have web access (WebSearch, WebFetch) and Context7 MCP integration for library documentation. All researchers run in parallel — four instances per invocation, each covering a different dimension of the domain.

gsd-phase-researcher

Researches how to implement a specific phase. Runs four parallel instances covering stack, features, architecture, and pitfalls. Produces RESEARCH.md with a Package Legitimacy Audit table that removes hallucinated or suspicious packages before they reach the planner.

gsd-project-researcher

Researches domain ecosystem before roadmap creation during /gsd-new-project. Produces STACK.md, FEATURES.md, ARCHITECTURE.md, and PITFALLS.md in .planning/research/.

gsd-ui-researcher

Produces UI design contracts for frontend phases during /gsd-ui-phase. Detects your design system state (shadcn, Tailwind, existing tokens) and generates UI-SPEC.md.

gsd-domain-researcher

Researches the business domain and real-world evaluation context for AI integration phases. Surfaces expert rubric ingredients, failure modes, and regulatory context for downstream evaluators.

Planners and checkers

Planners create execution plans from the research and context artifacts. Checkers verify plans meet quality standards before any code is written.

gsd-planner

Creates two to three atomic execution plans per phase, reading PROJECT.md, REQUIREMENTS.md, CONTEXT.md, and RESEARCH.md. Each plan contains structured <task> elements with explicit acceptance criteria, dependency ordering, and requirement traceability. Runs on the Opus model tier for maximum planning quality.

gsd-roadmapper

Creates the project roadmap during /gsd-new-project. Maps every v1 requirement to a phase, derives success criteria, and validates full coverage before presenting the roadmap for your approval.

gsd-plan-checker

Verifies plans across eight dimensions before execution is permitted: requirement coverage, task atomicity, dependency ordering, file scope, verification commands, context fit, gap detection, and Nyquist compliance. Runs iteratively — up to three revision cycles — until plans pass all dimensions.

gsd-research-synthesizer

Combines the outputs of four parallel project researchers into a single SUMMARY.md after /gsd-new-project. Runs sequentially after all researchers complete.

Executors

Executors implement plans. Each executor runs in a fresh context window and produces atomic git commits — one commit per completed task — so the implementation history is granular and recoverable.

gsd-executor

Implements a single PLAN.md file. Reads the plan, the phase CONTEXT.md and RESEARCH.md, and the project-level PROJECT.md and STATE.md. Makes one atomic git commit per completed task. Writes a SUMMARY.md documenting what was built and any deviations from the plan. Multiple executors run in parallel within each wave; waves are sequenced by plan dependency.
The executor is the only agent with Edit tool access. It can modify source files. All other agents are read-only against implementation code — they analyze, plan, verify, or audit, but they do not change your code.

Verifiers and auditors

Verifiers confirm that what was built satisfies the requirements. Auditors check specific quality dimensions like security, test coverage, and UI consistency.

gsd-verifier

Runs after all executors complete. Performs a goal-backward analysis: checks the codebase against phase goals, runs the test suite, and writes VERIFICATION.md with a PASS or FAIL verdict and specific evidence. Also audits test quality — checking for disabled tests, circular test patterns, and weak assertions.

gsd-code-reviewer

Reviews source files for bugs, security vulnerabilities, and code quality problems. Produces a structured REVIEW.md with severity-classified findings. Read-only — never modifies the code it reviews.

gsd-security-auditor

Verifies that the threat mitigations declared in your PLAN.md threat model are actually present in the implemented code. Does not scan blindly for new vulnerabilities — it verifies declared mitigations only. Supports ASVS levels 1, 2, and 3 for verification depth.

gsd-nyquist-auditor

Fills test coverage gaps identified by the Nyquist validation pass. Generates test files but never modifies implementation code. Flags implementation bugs as escalations for you to address.

Mappers

Mappers explore the codebase and produce structured analysis documents for planning and context.

gsd-codebase-mapper

Explores your existing codebase and writes seven structured analysis documents to .planning/codebase/ — stack, architecture, conventions, concerns, structure, testing, and integrations. Runs four parallel instances covering different analysis dimensions. Use this before starting a new project on an existing codebase, or after a phase that significantly restructures the code.

Debuggers and specialized agents

gsd-debugger

Investigates bugs using a scientific method with persistent session state. Tracks hypotheses, evidence, and eliminated theories across context resets. State is written to .planning/debug/ and persists until you mark the bug resolved. Appends learnings to a persistent knowledge base on resolution.

gsd-assumptions-analyzer

Deeply analyzes the codebase for a phase in assumptions mode (discuss_mode: assumptions). Returns structured assumptions with evidence file paths, confidence levels (Confident, Likely, Unclear), and consequences if wrong — so the discussion starts from what the AI observed rather than from scratch.

Agent tool permissions

Each agent has access only to the tools it needs for its role. The principle of least privilege keeps agents focused and prevents unintended side effects:
AgentCan write codeCan search webCan edit files
ResearchersNoYesNo
PlannerNo (writes plans only)NoNo
Plan-checkerNoNoNo
ExecutorYesNoYes
VerifierNoNoNo
Codebase mapperNoNoNo
DebuggerNoYesYes
Security auditorNoNoNo
Checkers, mappers, and auditors are strictly read-only against implementation source. They analyze and report but never change your code.

Agent spawn patterns

The table below maps the major workflow commands to the agents they spawn and the parallelism involved:
CommandAgents spawnedParallelism
/gsd-new-projectgsd-project-researcher × 4 → gsd-research-synthesizer → gsd-roadmapper4 parallel researchers, then sequential
/gsd-discuss-phasegsd-assumptions-analyzer (assumptions mode only)Sequential
/gsd-plan-phasegsd-phase-researcher × 4 → gsd-research-synthesizer → gsd-planner → gsd-plan-checker4 parallel, then sequential (up to 3 check iterations)
/gsd-execute-phasegsd-executor × N → gsd-verifierN parallel per wave, then sequential
/gsd-map-codebasegsd-codebase-mapper × 44 parallel
/gsd-debuggsd-debuggerSequential, interactive
/gsd-code-reviewgsd-code-reviewerSequential
/gsd-secure-phasegsd-security-auditorSequential