Skip to main content

Add Agent

Usage

drevon add-agent <name>

Description

Enables a new agent in your workspace. Updates drevon.config.json and generates the agent’s config file.

Arguments

ArgumentDescription
nameAgent ID: copilot, claude, cursor, codex, windsurf, cline, aider, continue

Example

drevon add-agent cursor
This:
  1. Validates the agent name
  2. Sets agents.cursor.enabled = true in drevon.config.json
  3. For Claude, automatically adds default allowedCommands
  4. 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:
  1. Calls the adapter’s clean() method to delete generated files (e.g., .windsurfrules)
  2. Sets agents.windsurf.enabled = false in drevon.config.json
  3. 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.