Skip to main content

What Are Executors?

Executors are the AI code tools that Draft uses to implement tickets. When a ticket moves to EXECUTING, Draft spawns the configured executor CLI in the ticket’s isolated worktree.

Supported Executors

How Execution Works

  1. Draft creates an isolated git worktree for the ticket
  2. The executor CLI is spawned with the ticket’s instructions as a prompt
  3. The agent reads the codebase, makes changes, and exits
  4. Draft checks the git diff in the worktree

Post-Execution States

Configuration

Set the executor in draft.yaml:
Draft auto-detects available CLIs on your system. If multiple executors are installed, the configured one takes precedence.

Executor Detection

Draft checks for CLIs in your PATH:
If the configured executor isn’t found, the job will fail with a clear error message.