Getting Started
This guide walks you through installing Maggus and running your first automated task.
Prerequisites
Before you begin, make sure you have:
- Go 1.22+ — Download Go
- Claude Code CLI — installed and available on your
PATH. See Claude Code docs for setup instructions.
Verify both are installed:
go version # should print go1.22 or later
claude --versionInstallation
Pre-built binaries
Download the latest binary for your platform from GitHub Releases.
Available platforms:
- Linux (amd64, arm64)
- macOS (amd64, arm64)
- Windows (amd64)
After downloading, extract the archive and move the maggus binary to a directory on your PATH.
Build from source
git clone https://github.com/leberkas-org/maggus.git
cd maggus/src
go build -o maggus .Move the resulting maggus binary to a directory on your PATH, or run it directly with ./maggus.
First Run
1. Create the .maggus/ directory
In your project root, create the working directory Maggus needs:
mkdir .maggus2. Write a minimal plan file
Create a plan file at .maggus/plan_1.md:
# Plan: My First Plan
## Introduction
A simple plan to test Maggus.
## Goals
- Verify Maggus can process a task end-to-end
## User Stories
### TASK-001: Add a hello-world script
**Description:** Create a simple hello-world script to verify the setup.
**Acceptance Criteria:**
- [ ] File `hello.sh` exists with a hello-world message
- [ ] The script is executable3. Run Maggus
maggus workMaggus will:
- Parse your plan file and find
TASK-001 - Create a feature branch (
feature/maggustask-001) - Build a prompt with your task details and project context
- Invoke Claude Code to complete the task
- Commit the result automatically
- Check for the next task (none left, so it stops)
You'll see a TUI with a progress bar, live status updates, and tool history as Claude works through the task.
TIP
Maggus shows a 3-second countdown before starting. Press Ctrl+C during this window to abort. Once running, press Ctrl+C once to stop gracefully after the current task, or twice to force-quit immediately.
Minimal End-to-End Example
Here's a complete copy-paste example you can try in any Git repository:
# 1. Initialize a git repo (skip if you already have one)
mkdir my-project && cd my-project
git init
# 2. Create the Maggus working directory
mkdir .maggus
# 3. Write a plan file
cat > .maggus/plan_1.md << 'EOF'
# Plan: Hello World
## Introduction
Test plan for Maggus.
## Goals
- Verify Maggus works
## User Stories
### TASK-001: Create a greeting file
**Description:** Create a file that greets the user.
**Acceptance Criteria:**
- [ ] File `greeting.txt` exists containing "Hello from Maggus!"
EOF
# 4. Make an initial commit so Maggus can branch
git add -A && git commit -m "Initial commit"
# 5. Run Maggus
maggus workAfter Maggus finishes, you'll have a new branch with greeting.txt committed.
What's Next
- Learn how to write more complex plans in Writing Plans
- Explore all CLI commands in the CLI Reference
- Understand Maggus concepts like run logs, memory, and the TUI in Concepts