Setup
Install the Claude Code CLI:Configuration
YOLO Mode
By default, Claude Code asks for confirmation before running commands. YOLO mode skips these prompts for fully autonomous execution:How Draft Uses Claude Code
When a ticket executes, Draft runs:- Ticket title and description
- Relevant context from the codebase
- Instructions from the goal
- Reads the codebase in the worktree
- Plans the implementation
- Makes code changes
- Exits when done
Log Streaming
Job logs are streamed in real-time to the UI via WebSocket. You can watch Claude Code’s reasoning and actions as they happen.Troubleshooting
Nested session error
Nested session error
If Claude Code fails with a “nested session” error when spawned from within Claude Code, Draft automatically strips the
CLAUDECODE and CLAUDE_CODE_ENTRYPOINT environment variables to prevent this.Authentication issues
Authentication issues
Run
claude auth to re-authenticate. Ensure your API key or OAuth session is valid.No changes produced
No changes produced
If the agent exits without making changes, the ticket moves to
BLOCKED with reason “no changes”. This usually means the instructions need to be more specific.