Skip to main content

Supported Executors

Draft’s executor system is extensible. Beyond Claude Code and Cursor, Draft supports:
ExecutorCLIDescription
CodexcodexOpenAI’s Codex CLI
GeminigeminiGoogle’s Gemini CLI
AMPampSourcegraph AMP agent
AideraiderOpen source AI pair programming
Copilotgh copilotGitHub Copilot CLI
GoosegooseBlock’s open source agent
ClineclineVS Code extension agent
Amazon QqAWS Amazon Q Developer
OpenCodeopencodeOpen source coding agent
QwenqwenAlibaba’s Qwen coding agent
DroiddroidAndroid-focused code agent

Configuration

Each executor is set via draft.yaml:
executor_config:
  executor_type: CODEX    # or GEMINI, AMP, AIDER, etc.

Adding a New Executor

Draft uses an adapter pattern for executors. Each adapter defines:
  1. CLI command — How to invoke the tool
  2. Prompt format — How to pass instructions
  3. Output parsing — How to read results
Adapters live in backend/app/executors/adapters/. To add a new executor:
  1. Create a new adapter file (e.g., my_agent.py)
  2. Implement the executor spec interface
  3. Register it in the executor registry
See the Contributing guide for details.