manfred

module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2026 License: MIT

README

MANFRED - Agent Runner

MANFRED is a CLI tool that runs Claude Code against projects in isolated Docker containers.

Overview

MANFRED automates coding tasks by:

  1. Reading a prompt (from file or ticket system)
  2. Starting the project's Docker containers
  3. Running Claude Code inside the container with the prompt
  4. Collecting a commit message summarizing the changes
  5. (Future) Creating a git commit and opening a PR

Installation

Download Binary

Download the latest release from GitHub Releases:

# For Linux x86_64:
curl -LO https://github.com/mpm/manfred/releases/download/v0.2.0/manfred-linux-amd64
chmod +x manfred-linux-amd64
sudo mv manfred-linux-amd64 /usr/local/bin/manfred

# For Linux ARM64:
curl -LO https://github.com/mpm/manfred/releases/download/v0.2.0/manfred-linux-arm64
chmod +x manfred-linux-arm64
sudo mv manfred-linux-arm64 /usr/local/bin/manfred

# For macOS:
curl -LO https://github.com/mpm/manfred/releases/download/v0.2.0/manfred-darwin-arm64
chmod +x manfred-darwin-arm64
sudo mv manfred-darwin-arm64 /usr/local/bin/manfred
Set Up
# Create directories
mkdir -p ~/.manfred/{projects,jobs,config,tickets}

# Copy Claude credentials (required)
cp ~/.claude/.credentials.json ~/.manfred/config/.credentials.json

# Verify installation
manfred version
Build from Source
git clone https://github.com/mpm/manfred.git
cd manfred
make build

# Run directly
./bin/manfred help

Quick Start

1. Initialize a project
manfred project init my-project --repo git@github.com:you/my-project.git
2. Create a ticket
manfred ticket new my-project "Add a logout button to the navbar"
3. Process the ticket
manfred ticket process my-project

Or run a job directly with a prompt file:

manfred job my-project prompts/my-prompt.txt

CLI Commands

# Job execution
manfred job <project> <prompt-file>

# Project management
manfred project init <name> --repo <git-url>
manfred project list
manfred project show <name>

# Ticket management
manfred ticket new <project> [prompt]
manfred ticket list <project> [--status pending]
manfred ticket show <project> <ticket-id>
manfred ticket process <project> [ticket-id]
manfred ticket stats [project]

# Utilities
manfred version
manfred help

Configuration

Config file location: ~/.manfred/config.yaml (or use --config)

data_dir: ~/.manfred

credentials:
  claude_credentials_file: ~/.manfred/config/.credentials.json

# Optional overrides
projects_dir: ~/.manfred/projects
jobs_dir: ~/.manfred/jobs
tickets_dir: ~/.manfred/tickets

Environment variables:

  • ANTHROPIC_API_KEY - Anthropic API key
  • MANFRED_DATA_DIR - Base data directory

Project Configuration

Each project needs a project.yml file:

name: my-project
repo: git@github.com:you/my-project.git
default_branch: main

docker:
  compose_file: docker-compose.yml
  main_service: app
  workdir: /app

Log Output

MANFRED outputs logs with prefixed sources:

[2025-01-04T10:15:30] [MANFRED ] Starting job job_20250104_101530_a1b2
[2025-01-04T10:15:31] [DOCKER  ] Starting docker compose...
[2025-01-04T10:15:46] [CLAUDE  ] Analyzing the codebase...

Architecture

See CLAUDE.md for detailed architecture documentation.

Requirements

  • Docker with Compose v2
  • Go 1.22+ (for building from source)

License

MIT

Directories

Path Synopsis
cmd
manfred command
internal
cli
job

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL