Goal
Define and implement the 4 main specialized agent roles that compose the standard teamcode swarm.
Roles
π§ Planner
- Receives the user task
- Decomposes it into subtasks with dependencies
- Produces a structured
TaskPlan
π Researcher
- Receives search/analysis subtasks
- Accesses tools: code search, file reading, LSP
- Produces
ResearchResult with relevant context
βοΈ Executor
- Receives implementation subtasks
- Writes/modifies code using existing tools
- Integrates with
worktree/ for branch isolation
β
Reviewer
- Receives the Executor's output
- Validates quality, tests, coverage
- Approves or returns to Executor with feedback
Scope
Acceptance criteria
- Each role runs in isolation and is unit-testable
- Configurable via
opencode.jsonc
Goal
Define and implement the 4 main specialized agent roles that compose the standard teamcode swarm.
Roles
π§ Planner
TaskPlanπ Researcher
ResearchResultwith relevant contextβοΈ Executor
worktree/for branch isolationβ Reviewer
Scope
swarm/roles/planner.tsswarm/roles/researcher.tsswarm/roles/executor.tsswarm/roles/reviewer.tsAcceptance criteria
opencode.jsonc