erk Documentation
erk is a CLI tool for plan-oriented agentic engineering—a workflow where AI agents create implementation plans, execute them in isolated worktrees, and ship code via automated PR workflows.
For the philosophy and design principles behind erk, see The TAO of erk.
Quick Start
New to erk? Start here:
- Prerequisites - Tools you need installed
- Installation - Install and configure erk
- Your First Plan - Complete tutorial from plan to PR
Features
- Plan-First Workflow: AI agents create detailed implementation plans before writing code
- Worktree Isolation: Each implementation runs in its own isolated git worktree
- Agent-Driven Development: Automated PR workflows powered by Claude Code
- Documentation as Code: Agent-generated documentation lives alongside the codebase
Documentation Sections
Tutorials
Step-by-step lessons to get you started.
- Prerequisites - Required tools and versions
- Installation - Installing and initializing erk
- Your First Plan - End-to-end tutorial
Topics
Core concepts that explain how erk works.
- Worktrees - Parallel development with git worktrees
- Graphite Integration - Stacked PR workflows with Graphite
- Plan Mode - Claude Code's planning workflow
- The Workflow - From idea to merged PR
- Plan-Oriented Engineering - The philosophy behind erk
- Why GitHub Issues for Plans - Why plans are stored as issues
How-to Guides
Task-focused recipes for specific goals.
- Use the Local Workflow - Plan, implement, and ship locally
- Run Remote Execution - Run implementations in GitHub Actions
- Checkout and Sync PRs - Review and iterate on PRs
- Automatic Merge Conflict Resolution - Handle merge conflicts with AI assistance
- Work Without Plans - Quick changes without formal plans
- Extract Documentation - Capture patterns for future agents
Reference
Complete technical reference.
- CLI Command Reference - All CLI commands
- Slash Command Reference - Claude Code slash commands
- Configuration Reference - Config files and options
- File Location Reference - Where erk stores data
FAQ
Common questions and solutions.
Common User Journeys
"I want to start using erk" → Prerequisites → Installation → Your First Plan
"I want to understand how erk works" → The Workflow → Plan-Oriented Engineering
"I'm reviewing a teammate's PR" → Checkout and Sync PRs
"My rebase has conflicts" → Automatic Merge Conflict Resolution
"I need quick iteration without planning" → Work Without Plans
Other Documentation
| Directory | Audience | Purpose |
|---|---|---|
docs/learned/ |
AI agents | Agent-generated patterns and conventions |
docs/developer/ |
Contributors | Internal development docs |