Skip to content

Agents & Delegation

Agents are specialized AI personas with different instructions, models, and tool access patterns. Gee-Code includes 13 built-in agent archetypes and supports custom agents.

AgentRoleDescription
exploreCodebase ExplorerFast, read-only exploration. Uses Glob, Grep, Read.
researcherResearch SpecialistWeb search, local search, broad research.
architectSystem DesignerArchitecture analysis, trade-offs, design documents.
codeProgrammerWriting, editing, and refactoring code.
testQA EngineerTest writing, test runner execution, coverage analysis.
docsTechnical WriterDocumentation generation and improvement.
reviewCode ReviewerCode review, best practices, security analysis.
debugDebuggerTroubleshooting, log analysis, root cause identification.
devopsDevOps EngineerInfrastructure, CI/CD, deployment, monitoring.
dataData AnalystSQL queries, data analysis, visualization.
artistCreative ArtistImage and video generation using FAL models.
designerUI/UX DesignerInterface design, component creation, styling.
synthesisResearch SynthesizerMulti-source research compilation.
/agent code # Switch to the code agent
/agent researcher # Switch to researcher
/agent # Show current agent and list available

Your current agent affects how the AI approaches tasks — a code agent focuses on implementation, while an architect agent thinks about system design.

Use /delegate to route a task to a specific agent without switching your active agent:

/delegate researcher Find all REST API patterns used in the codebase
/delegate code Refactor the authentication middleware to use async/await
/delegate review Check the new login endpoint for security issues

The delegate agent runs the task independently and returns results to your conversation.

Each archetype configures:

PropertyDescription
ModelWhich AI model to use (claude-sonnet for speed, claude-opus for complex)
InstructionsDetailed behavioral rules and tool usage patterns
DepthMaximum tool recursion depth (default: 10)
RoleA concise description shown in the agent list

Create agents on the fly:

CreateAgent(
name="api-specialist",
description="Expert in REST API design and implementation",
system_prompt="You are an API design specialist who follows OpenAPI standards..."
)

Or define agents in plugin files:

.gee/plugins/my-plugin/
agents/
api-specialist.md

Agent definition format:

---
name: api-specialist
description: Expert in REST API design
model: claude-sonnet
---
# Instructions
You are a specialized agent for API design...

For complex tasks, agents work through the bead system — a dependency graph of tasks:

  1. AI creates a bead plan with agent assignments
  2. You review and approve
  3. Beads execute in parallel where possible
  4. Results flow through the dependency graph
/plan Refactor the auth module # Creates bead plan with agent assignments
/beads approve # Approve for execution
/run # Execute (parallel by default)

Agents come from multiple sources:

SourcePersistenceExample
Built-in archetypesAlways availableexplore, code, architect
Skill-bundledAvailable when skill is activeAgents defined in skill frontmatter
Plugin-definedAvailable when plugin is installedAgents in .gee/plugins/
User-createdPersists until deletedCreated via CreateAgent