Skip to main content

Claude Code automation agents for the MAID (Manifest-driven AI Development) methodology

Project description

MAID Agents

Automated AI coding orchestration with built-in validation.

MAID Agents automates the complete development workflow: from idea to validated implementation using Claude Code.

What Is This?

MAID Agents is an orchestration system that:

  • Plans tasks using manifest-driven contracts
  • Generates behavioral tests that exercise the code
  • Implements code using Claude Code agents
  • Validates using MAID Runner before committing

Think of it as the "execution engine" that uses MAID Runner as its validation layer.

How It Works

  1. You describe what you want to build
  2. ManifestArchitect agent generates a manifest (contract) with expected artifacts
  3. TestDesigner agent generates behavioral tests
  4. Developer agent implements the code via Claude Code
  5. MAID Runner validates the implementation matches the contract
  6. Iterate until validation passes

All automated. You just describe โ†’ review โ†’ approve.

Status

๐Ÿšง Alpha Release - Functional but evolving based on feedback.

Built with the MAID methodology - this package dogfoods MAID itself! See IMPLEMENTATION_SUMMARY.md for details on the 16 tasks, 60 tests, and clean architecture.

The Four Phases

MAID Agents automates the four phases of the MAID workflow:

  1. Phase 1: Goal Definition - ManifestArchitect agent creates precise manifests
  2. Phase 2: Planning Loop - TestDesigner agent generates behavioral tests
  3. Phase 3: Implementation - Developer agent implements code to pass tests
  4. Phase 3.5: Refactoring - Refactorer agent improves code quality

How It Relates to MAID Runner

MAID Agents and MAID Runner work together as a complete system:

Component Role What It Does
MAID Runner Validation framework Validates code matches contracts (manifests)
MAID Agents Orchestration system Automates planning, implementing, validating

Use MAID Runner standalone for manual workflow with full control.

Use MAID Agents for automated workflow with Claude Code orchestration.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   You (Developer)                    โ”‚
โ”‚   "Add user authentication"          โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   MAID Agents (Orchestration)        โ”‚
โ”‚   - ManifestArchitect                โ”‚
โ”‚   - TestDesigner                     โ”‚
โ”‚   - Developer                        โ”‚
โ”‚   - Refactorer                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
              โ”œโ”€โ–บ Creates manifests
              โ”œโ”€โ–บ Generates tests
              โ”œโ”€โ–บ Implements code
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   MAID Runner (Validation)           โ”‚
โ”‚   โœ“ Validates manifest schema        โ”‚
โ”‚   โœ“ Validates behavioral tests       โ”‚
โ”‚   โœ“ Validates implementation         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ”‚
              โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Your Codebase                      โ”‚
โ”‚   Fully validated implementation     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Installation

# Install from PyPI (when published)
pip install maid-agents

# Or install from source
git clone https://github.com/mamertofabian/maid-agents.git
cd maid-agents
uv pip install -e .

# Verify installation
ccmaid --version

Prerequisites

  • maid-runner package installed (pip install maid-runner)
  • Claude Code CLI installed and authenticated
  • Python 3.12+

Usage

Quick Start Example

The simplest way to use MAID Agents:

# Full automated workflow: manifest โ†’ tests โ†’ implementation โ†’ validation
ccmaid run "Add email validation to user registration"

# The agent will:
# 1. Create a manifest with expected artifacts
# 2. Generate behavioral tests
# 3. Implement the code
# 4. Validate everything with MAID Runner
# 5. Show you results for approval

Standard MAID Workflow (Step-by-Step)

For more control, run phases individually:

# Phase 1-2: Create manifest and generate tests
ccmaid plan "Add user authentication to the API"
# Creates: manifests/task-042-user-auth.manifest.json
# Creates: tests/test_task_042_user_auth.py

# Phase 3: Implement the code
ccmaid implement manifests/task-042-user-auth.manifest.json
# Implements code to pass the tests
# Validates with MAID Runner

# Phase 3.5: Refactor for quality
ccmaid refactor manifests/task-042-user-auth.manifest.json
# Improves code quality while maintaining tests

# Optional: Refine tests/manifest
ccmaid refine manifests/task-042-user-auth.manifest.json --goal "Add edge cases"

Reverse Workflow (Tests from Existing Code)

When working with existing code or after using maid snapshot:

# Step 1: Generate manifest from existing code
maid snapshot path/to/existing/code.py

# Step 2: Generate behavioral tests from implementation
ccmaid generate-test manifests/task-NNN-code.manifest.json -i path/to/existing/code.py

# Step 3: Validate the complete manifest
maid validate manifests/task-NNN-code.manifest.json

The generate-test command supports three modes:

  • Create new: Generate tests from scratch when none exist
  • Enhance stub: Fill in placeholder tests created by maid snapshot
  • Improve existing: Enhance and complete existing tests

Architecture

MAID Agents follows a clean, modular architecture built entirely using the MAID methodology:

maid_agents/
โ”œโ”€โ”€ core/           # Orchestration engine
โ”‚   โ”œโ”€โ”€ orchestrator.py       # Main workflow coordinator
โ”‚   โ”œโ”€โ”€ validation_runner.py  # MAID Runner integration
โ”‚   โ””โ”€โ”€ context_builder.py    # Context preparation
โ”œโ”€โ”€ agents/         # Specialized agents
โ”‚   โ”œโ”€โ”€ manifest_architect.py # Creates manifests
โ”‚   โ”œโ”€โ”€ test_designer.py      # Generates tests
โ”‚   โ”œโ”€โ”€ developer.py          # Implements code
โ”‚   โ”œโ”€โ”€ refactorer.py         # Improves quality
โ”‚   โ””โ”€โ”€ test_generator.py     # Reverse workflow
โ”œโ”€โ”€ claude/         # Claude Code integration
โ”‚   โ””โ”€โ”€ cli_wrapper.py        # Claude CLI wrapper
โ”œโ”€โ”€ config/         # Configuration
โ”‚   โ”œโ”€โ”€ config_loader.py      # Load .ccmaid.toml
โ”‚   โ””โ”€โ”€ templates/            # Prompt templates
โ””โ”€โ”€ cli/            # Command-line interface
    โ””โ”€โ”€ main.py               # ccmaid entrypoint

Key Stats:

  • 16 manifests (one per task)
  • 60 behavioral tests (100% passing)
  • Built with MAID, validated by MAID

See IMPLEMENTATION_SUMMARY.md for complete architecture details.

Configuration

Create .ccmaid.toml in your project root or ~/.ccmaid.toml for global settings:

[cli]
log_level = "INFO"
mock_mode = false

[claude]
model = "claude-sonnet-4-5-20250929"
timeout = 1200
temperature = 0.0

[iterations]
max_planning_iterations = 10
max_implementation_iterations = 20

[maid]
use_manifest_chain = true

Development

This package dogfoods the MAID methodology - it was built using MAID itself!

  • All manifests are in manifests/ (16 tasks)
  • All behavioral tests in tests/ (16 test files, 60 tests)
  • Every feature was built following the MAID workflow
# Run tests
uv run pytest tests/ -v

# Format code
make format

# Lint code
make lint

Roadmap

  • Core orchestration engine
  • Four specialized agents
  • Claude Code integration
  • CLI interface
  • Proper documentation site
  • Video tutorials
  • IDE integrations (VS Code, etc.)
  • Community templates library
  • MCP server support

Questions & Support

Contributing

See CONTRIBUTING.md for development guidelines. All changes must follow the MAID methodology.

License

MIT License - See LICENSE file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maid_agents-0.2.0.tar.gz (107.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maid_agents-0.2.0-py3-none-any.whl (102.0 kB view details)

Uploaded Python 3

File details

Details for the file maid_agents-0.2.0.tar.gz.

File metadata

  • Download URL: maid_agents-0.2.0.tar.gz
  • Upload date:
  • Size: 107.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for maid_agents-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c81359961b36503ac1829749914e7e4e85f6ea93fb29283c53cea17fc7e841ff
MD5 8e57836af304bef99eff68e674c45694
BLAKE2b-256 dbe61a060401f0c5e09532ac683366d2cd45b6204a41344982d2c69058683505

See more details on using hashes here.

Provenance

The following attestation bundles were made for maid_agents-0.2.0.tar.gz:

Publisher: publish.yml on mamertofabian/maid-agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file maid_agents-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: maid_agents-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 102.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for maid_agents-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 403bf24e7e61228b5a3c395e156bf2dd7c3041254127696bfdcbbb0d5320e239
MD5 7b8ce05b81bed8d01fa262fe93e9d722
BLAKE2b-256 6711db64e5587c48f326d22bbe3d660c7bb1a71e49db2c7855ad802e3ea5999c

See more details on using hashes here.

Provenance

The following attestation bundles were made for maid_agents-0.2.0-py3-none-any.whl:

Publisher: publish.yml on mamertofabian/maid-agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page