Skip to content

Creating Agents

Custom agents let you define specialized AI personas beyond the built-in archetypes. You can create agents on the fly, bundle them with skills, or define them in plugins.

CreateAgent(
name="api-specialist",
description="Expert in REST API design and implementation",
system_prompt="You are an API design specialist who follows OpenAPI 3.1 standards. Focus on clean resource naming, proper HTTP verbs, pagination, and error responses."
)

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

---
name: api-specialist
description: Expert in REST API design and implementation
model: claude-sonnet
---
You are an API design specialist who follows OpenAPI 3.1 standards.
## Priorities
1. Clean resource naming and URL structure
2. Proper HTTP verb usage
3. Consistent error response format
4. Pagination and filtering patterns
5. Authentication and authorization

Agents can be bundled directly in a skill’s SKILL.md:

---
name: api-toolkit
description: API development toolkit
agents:
- name: api-designer
description: API schema designer
model: claude-opus
system_prompt: |
You are an API schema designer...
- name: api-tester
description: API test writer
model: claude-sonnet
system_prompt: |
You write comprehensive API tests...
---
FieldRequiredDescription
nameYesAgent identifier
descriptionYesShort description shown in agent list
modelNoAI model to use (default: session model)
system_promptYesInstructions that define agent behavior
/agent api-specialist # Switch to your custom agent
/delegate api-specialist Design the user management API
SourcePersistencePriority
Built-in archetypesAlways availableLowest
Skill-bundledWhile skill is activeMedium
Plugin-definedWhile plugin is installedMedium
User-createdUntil deletedHighest

When multiple agents share the same name, higher-priority sources override lower ones.

DeleteAgent(agent_name="api-specialist")

Only works for agents you created. Built-in archetypes and skill/plugin agents can’t be deleted this way.