Skip to content

feat: Multi-agent β€” specialized roles (Planner, Researcher, Executor, Reviewer)Β #2

@ElioNeto

Description

@ElioNeto

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

  • Create swarm/roles/planner.ts
  • Create swarm/roles/researcher.ts
  • Create swarm/roles/executor.ts
  • Create swarm/roles/reviewer.ts
  • Each role has its own system prompt and allowed tool set
  • Support different models per role (e.g., Planner uses Claude Opus, Executor uses Sonnet)

Acceptance criteria

  • Each role runs in isolation and is unit-testable
  • Configurable via opencode.jsonc

Metadata

Metadata

Assignees

Labels

DORDefinition of Ready β€” issue meets readiness criteriaarea:coreenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions