Skip to main content

draft.yaml

The main configuration file lives at the root of your repository. It controls the AI executor, verification commands, planner behavior, and more.
draft.yaml
# AI Executor Configuration
executor_config:
  executor_type: CLAUDE          # CLAUDE, CURSOR_AGENT, or CURSOR
  yolo_mode: false               # Skip permission prompts (Claude CLI only)
  yolo_allowlist: []             # Repo paths where YOLO mode is allowed

# Verification Pipeline
verify_config:
  commands:
    - "pytest tests/"
    - "npm run lint"

# Planner Configuration
planner_config:
  model: "claude-sonnet-4-20250514"   # LLM model for planning
  auto_execute: false            # Auto-run tickets after planning
  validate_tickets: false        # Validate generated tickets with LLM
  max_followups_per_ticket: 2    # Max follow-up tickets per blocked ticket
  max_followups_per_tick: 3      # Max follow-ups per planner tick

# Cleanup Configuration
cleanup_config:
  worktree_ttl_hours: 72         # Auto-clean worktrees older than this

Environment Variables

Backend (backend/.env)

Copy from the example file:
cp backend/.env.example backend/.env
VariableDescriptionDefault
APP_ENVEnvironment modedevelopment
DATABASE_URLSQLite database pathsqlite+aiosqlite:///./draft.db
FRONTEND_URLFrontend URL for CORShttp://localhost:5173
GIT_REPO_PATHGit repository rootProject root
BASE_BRANCHBase branch for worktreesmain (fallback: master)
AUTH_SECRET_KEYJWT signing secretDev default (change in production)

Frontend (frontend/.env)

cp frontend/.env.example frontend/.env
VariableDescriptionDefault
VITE_BACKEND_URLBackend API URLhttp://localhost:8000

AI Provider Keys

Set the API key for your chosen LLM provider (used by the planner):
# Anthropic (recommended)
export ANTHROPIC_API_KEY=sk-ant-...

# OpenAI
export OPENAI_API_KEY=sk-...

# AWS Bedrock
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_DEFAULT_REGION=us-east-1
AI executor CLIs (Claude Code, Cursor) use their own authentication. The API keys above are only for the planner’s LLM calls.

Executor Types

TypeCLI RequiredModeAfter Execution
CLAUDEclaudeHeadlessAuto-verifies
CURSOR_AGENTcursorHeadlessAuto-verifies
CURSORcursorInteractiveNeeds human review

YOLO Mode (Claude Only)

When enabled, Claude CLI runs with --dangerously-skip-permissions, allowing it to execute without confirmation prompts:
executor_config:
  executor_type: CLAUDE
  yolo_mode: true
  yolo_allowlist:
    - /path/to/trusted/repo
Only enable YOLO mode for repositories you trust. The AI agent will have unrestricted access to run commands in the worktree.