Creating Agents
Create new agents using the CLI wizard, non-interactive mode, or JSON-RPC API.
Creating Agents
New agents are created through the CLI wizard, non-interactive flags, or the JSON-RPC bridge API. Each method uses the same scaffolding engine under the hood.
CLI Wizard
reeve agents addThe interactive wizard walks you through:
- Name — Agent identifier (e.g.,
marketing-manager) - Role — Select from coordinator, manager, worker, research, assistant
- Workspace — Directory for the agent's context files
- Team — Optional team grouping
- Channel bindings — Which messaging platforms to connect
- Auth — API keys or shared auth
What gets created
When you create an agent, the scaffolding engine:
- Creates the workspace directory
- Writes role-appropriate template files:
- AGENTS.md — Agent instructions (role-specific)
- SOUL.md — Personality and communication style
- HEARTBEAT.md — Periodic check instructions (managers/research only)
- TOOLS.md — Available tool documentation
- IDENTITY.md — Name, emoji, theme
- Creates a
memory/directory for persistent memory - Adds the agent entry to
reeve.jsonwith role defaults - Applies model, heartbeat, and subagent config from role defaults
Non-interactive mode
For scripting and automation:
reeve agents add \
--name ad-optimizer \
--role worker \
--workspace ~/reeve-workspaces/ad-optimizer \
--team marketingRole-Based Templates
Each role has tailored workspace files:
Manager templates
# AGENTS.md (manager role)
## Three-Tier Architecture
- Manager: Strategic planning, delegation, oversight
- Pipeline Manager: Complex multi-file orchestration
- Workers: Focused task execution
## Management Framework
- Spawn pipeline-manager for complex work
- Dispatch workers for focused tasks
- Monitor sub-agent health and progressWorker templates
# AGENTS.md (worker role)
## Scope
- Execute assigned tasks within your workspace
- Report completion to spawning agent
- No management framework (lean and focused)Research templates
# AGENTS.md (research role)
## Research Tools
- web_search, web_fetch, browser for deep research
- Knowledge base for document ingestion
- Memory search for accumulated knowledgeTemplate variables are substituted at scaffold time: {{agentId}}, {{agentName}}, {{role}}, {{description}}, {{workspace}}, {{team}}, {{date}}.
Idempotent Scaffolding
The scaffolding engine is idempotent — it won't overwrite existing files. This means:
- Running
reeve agents addfor an existing agent updates config but doesn't clobber workspace files - You can safely re-scaffold after editing your AGENTS.md
- The
wxfile flag ensures no accidental overwrites
From the Frontend
The Cockpit's Agent Management UI (/cockpit/settings/agents) provides a visual interface:
- Click "New Agent"
- Fill in name, role, workspace path
- Configure model and heartbeat overrides
- Click Create
This calls agents.create via the JSON-RPC bridge (see API Reference).
The reeve agents doctor command checks all agents for missing files, broken paths, and config issues. Run with --fix to auto-repair.