Skip to main content

Add Agent

Usage

Description

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

Arguments

Example

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:

Remove Agent

Usage

Description

Disables an agent and removes its generated config files.

Example

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.