Skip to content

Getting Started

Get Maggus installed and run your first automated task in minutes.

Prerequisites

You need:

  • Git
  • A terminal
  • An AI coding agent on your PATH:
    • Claude Code — Anthropic's coding agent (default)
    • OpenCode — open-source agent supporting multiple providers

Installation

Download the latest release for your platform from GitHub Releases.

PlatformArchive
Linux (amd64, arm64)maggus_*_linux_*.tar.gz
macOS (amd64, arm64)maggus_*_darwin_*.tar.gz
Windows (amd64)maggus_*_windows_amd64.zip

Extract and move the binary to a directory on your PATH:

bash
tar xzf maggus_*_linux_amd64.tar.gz
sudo mv maggus /usr/local/bin/
powershell
# Extract the zip, then move maggus.exe to a directory on your PATH
# For example, to C:\tools (make sure C:\tools is in your PATH):
Expand-Archive maggus_*_windows_amd64.zip -DestinationPath .
Move-Item maggus.exe C:\tools\

First Project Setup

Navigate to any Git repository and run maggus init:

bash
cd your-project
maggus init

This creates:

CreatedPurpose
.maggus/Working directory for plans, run logs, and locks
.maggus/config.ymlProject configuration (agent, model, includes)
.gitignore entriesEnsures run logs and internal files aren't committed

If Claude Code is installed, init also registers the Maggus plan skill so you can generate plans interactively.

No existing repo?

Create one first:

bash
mkdir my-project && cd my-project
git init && git commit --allow-empty -m "Initial commit"
maggus init

Writing Your First Plan

Create a plan file at .maggus/plan_1.md:

markdown
# Plan: Hello World

## Introduction

A simple plan to verify Maggus works.

## Goals

- Test that Maggus can pick up a task and complete it

## User Stories

### TASK-001: Create a greeting file

**Description:** Create a simple greeting file to verify the setup works.

**Acceptance Criteria:**
- [ ] File `greeting.txt` exists containing "Hello from Maggus!"

### TASK-002: Add a goodbye file

**Description:** Add a second file to confirm multi-task flow.

**Acceptance Criteria:**
- [ ] File `goodbye.txt` exists containing "See you next time!"

Key format rules:

  • Tasks use ### TASK-NNN: Title headings
  • Acceptance criteria are markdown checkboxes (- [ ])
  • Maggus marks criteria as [x] when completed

See Writing Plans for the full format reference.

Running Maggus

Start the work loop:

bash
maggus work

Maggus will:

  1. Parse your plan and find the first incomplete task (TASK-001)
  2. Branch — create feature/maggustask-001 if you're on a protected branch (main/master/dev)
  3. Prompt — build a detailed prompt with your task, acceptance criteria, and project context
  4. Invoke the AI agent (Claude Code by default) to complete the task
  5. Commit — the agent's changes are committed automatically
  6. Loop — move on to TASK-002 and repeat until all tasks are done

Sample startup output:

Maggus v1.0.0                            abc123
[████████░░░░░░░░░░░░] 0/2 Tasks

  TASK-001: Create a greeting file

  ◐ Working...

Choosing an agent

By default, Maggus uses Claude Code. To use OpenCode instead, set it in your config:

yaml
# .maggus/config.yml
agent: opencode
model: openai/gpt-4.1

Or pass --agent opencode on the command line. See the Configuration reference for details.

Understanding the Output

While Maggus runs, the TUI (terminal UI) shows:

SectionWhat it shows
HeaderVersion, host fingerprint, progress bar (N/M Tasks)
Task infoCurrent task ID and title
Spinner & statusWhat the agent is doing right now (reading files, writing code, running commands)
Tool historyRecent tools the agent has used
TokensInput/output token usage for the current task (Only updated after task completion)
ElapsedTime spent on the current task

Tabs: Press 14 to switch between Progress, Detail, Task, and Commits views. Use ←/→ arrow keys to navigate tabs.

When a task completes, Maggus commits the changes and immediately moves to the next task. When all tasks are done (or remaining tasks are blocked), you'll see a summary screen with:

  • Total tasks completed
  • Commit range
  • Remaining/blocked tasks (if any)
  • Token usage breakdown

From the summary screen you can choose Exit or Run again (with a custom task count).

Keyboard shortcuts during work:

KeyAction
←/→ or 1-4Switch tabs
↑/↓Scroll (on Detail tab)
Home/EndJump to top/bottom
Alt+SStop after current task (with confirmation)
Ctrl+CInterrupt immediately

Next Steps

  • Writing Plans — learn the full plan format, blocked tasks, and multi-plan workflows
  • Maggus Skills — generate plans, vision, and architecture docs with AI
  • Terminal UI — explore the main menu, work view, status view, and more
  • Concepts — understand the work loop, git behavior, run logs, and project memory
  • CLI Commands — explore all available commands (status, list, clean, and more)
  • Configuration — customize agent, model, includes, and notifications