Add Agent
Usage
Description
Enables a new agent in your workspace. Updates drevon.config.json and generates the agent’s config file.
Arguments
| Argument | Description |
|---|
name | Agent ID: copilot, claude, cursor, codex, windsurf, cline, aider, continue |
Example
This:
- Validates the agent name
- Sets
agents.cursor.enabled = true in drevon.config.json
- For Claude, automatically adds default
allowedCommands
- Runs
drevon sync to generate the config file
Claude Special Handling
When adding Claude, the adapter automatically configures allowedCommands:
{
"agents": {
"claude": {
"enabled": true,
"allowedCommands": ["git", "npm", "npx", "node", "python3"]
}
}
}
Remove Agent
Usage
drevon remove-agent <name>
Description
Disables an agent and removes its generated config files.
Example
drevon remove-agent windsurf
This:
- Calls the adapter’s
clean() method to delete generated files (e.g., .windsurfrules)
- Sets
agents.windsurf.enabled = false in drevon.config.json
- Saves the updated config
This permanently deletes the agent’s config file. If you’ve made manual edits to it (against best practices), they will be lost.