Skip to content

mauricekleine/chief

Repository files navigation

Chief

Chief Wiggum

CLI tool for running AI coding agents in a loop using the Ralph Wiggum methodology.

Chief uses Claude Code to plan and execute tasks in your current repository, tracking plans and task files under .chief/.

Requirements

Installation

# Clone the repository
git clone git@github.com:mauricekleine/chief.git chief
cd chief

# Install dependencies
bun install

# Create an alias (add to your shell profile)
alias chief="bun run /path/to/chief/src/index.ts"

Usage

Plan a feature

chief plan

This will:

  1. Prompt you to describe what you want to build (multiline)
  2. Start an interactive planning session with Claude
  3. Write the plan to .chief/plans/YYYY-MM-DD-<feature-name>.md

Use Enter for a new line and Cmd+Enter to submit.

Break down a plan

# Pick a plan from .chief/plans
chief breakdown

# Or specify the feature name
chief breakdown <feature-name>

# Alias
chief bd

Creates .chief/tasks/YYYY-MM-DD-<feature-name>.tasks.json from the plan.

Run tasks

# Pick a task set from .chief/tasks
chief run

# Or specify the feature name
chief run <feature-name>

# Run once interactively
chief run --single

Chief will:

  1. Check out a feature/<feature-name> branch
  2. Run Claude to complete tasks (loop mode by default)
  3. Verify the work using your configured verification steps
  4. Mark tasks as done and commit
  5. Push changes and create a pull request

Configuration

Chief uses a local .chief/ directory in your repository:

  • .chief/plans/ - Plans (YYYY-MM-DD-<feature-name>.md)
  • .chief/tasks/ - Tasks (YYYY-MM-DD-<feature-name>.tasks.json)
  • .chief/verification.txt - Verification steps

Git-ignoring .chief/ is optional.

Verification Steps

On first run, Chief will prompt you to pick verification steps based on package.json scripts, with an option to add custom steps.

Example:

- bun run lint
- bun run typecheck
- bun run test

Task Schema

Tasks in *.tasks.json follow this structure:

[
  {
    "category": "Feature",
    "description": "Implement user authentication",
    "passes": false,
    "steps": [
      "Create auth middleware",
      "Add login endpoint",
      "Add session management"
    ]
  }
]

How It Works

Chief implements the Ralph Wiggum methodology:

  1. Plan - Use AI to create a concise implementation plan through conversation
  2. Break Down - Convert the plan into discrete, verifiable tasks
  3. Execute - Run AI in a loop to complete tasks one at a time
  4. Verify - Use automated checks (tests, lint, typecheck) to verify work
  5. Ship - Push changes and create a PR when done

Each task is completed in isolation, committed separately, making it easy to review and revert if needed.

License

MIT

About

Chief - the easiest way to Ralph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors