Skip to content

Quick Start

Get Chief running in under 5 minutes.

Chief TUI

Prerequisites

Before you begin, make sure you have:

Verify your agent CLI is working

Run the version command for your agent to confirm it's installed:

  • claude --version (Claude Code)
  • codex --version (Codex)
  • opencode --version (OpenCode)

Step 1: Install Chief

Choose your preferred installation method:

bash
brew install minicodemonkey/chief/chief
bash
curl -fsSL https://raw.githubusercontent.com/minicodemonkey/chief/main/install.sh | bash
bash
git clone https://github.com/minicodemonkey/chief.git
cd chief
go build -o chief ./cmd/chief
mv chief /usr/local/bin/

Verify the installation:

bash
chief --version

Step 2: Create Your First PRD

Navigate to your project directory and create a new PRD:

bash
cd your-project
chief new

This launches your agent CLI with a preloaded prompt. Work with the agent to describe what you want to build—your project goals, user stories, and acceptance criteria. The agent will help structure your requirements and write the prd.md file.

When you're done, type /exit to leave the agent session. Chief then parses prd.md and generates prd.json:

  • prd.md - Human-readable project requirements (written collaboratively with the agent)
  • prd.json - Machine-readable user stories for Chief to execute (generated by Chief)

Iterating on your PRD

Run chief edit to reopen the agent and refine your prd.md. Chief will regenerate prd.json when you /exit.

Step 3: Launch the TUI

Launch Chief's Terminal User Interface:

bash
chief

On first launch, Chief prompts you to configure a few settings:

  1. Post-completion automation — Whether to automatically push branches and create PRs when a PRD completes (recommended: Yes for both)
  2. Worktree setup command — A command to run in new worktrees (e.g., npm install). You can auto-detect, enter it manually, or skip

These settings are saved to .chief/config.yaml and can be changed anytime via the Settings TUI (press ,).

Step 4: Start the Loop

Press s to start the Ralph Loop. Chief will offer to create a worktree for isolated development, then begin working through your stories automatically.

The TUI shows:

  • Tab Bar — All your PRDs with status indicators
  • Stories List — User stories with completion status
  • Story Details — Current story's description and acceptance criteria
  • Live Activity — Real-time status updates from the agent
  • Diff View — Press d to see the commit diff for the selected story

Keyboard Controls

KeyAction
sStart the loop (when Ready, Paused, Stopped, or Error)
pPause the loop (finishes current iteration)
xStop the loop immediately
tToggle between Dashboard and Log views
dDiff view — show the selected story's commit diff
nOpen PRD picker to create or switch PRDs
lOpen PRD picker in selection mode
eEdit current PRD
1-9Quick switch to PRD tabs 1-9
j/↓Navigate down (stories or scroll log/diff)
k/↑Navigate up (stories or scroll log/diff)
PgDn / Ctrl+DPage down (log/diff)
PgUp / Ctrl+UPage up (log/diff)
+/-Adjust max iterations
mMerge completed branch (in picker)
cClean worktree (in picker)
,Open Settings
?Show help overlay
qQuit Chief

Hands-off operation

Once started with s, Chief runs autonomously. You can watch the progress or walk away—it will complete your PRD while you're gone.

What's Next?

Now that you've run your first Chief loop, explore these resources: