alinaqi/maggy

What started as an opinionated Claude Code setup kit is now an autonomous AI engineering command center

What it solves

Claude Code is powerful but often uses expensive models for trivial tasks, loses state across sessions, and lacks enforcement for code quality, test coverage, and architectural compliance. Maggy and its Bootstrap config pack provide a structured engineering system that adds TDD enforcement, persistent memory, and cost-aware model routing to the AI coding workflow.

How it works

The project consists of two main components:

  1. Claude Bootstrap: A set of skills, hooks, and rules installed directly into the Claude Code configuration. It enforces quality gates (e.g., function length limits) and TDD (tests must pass before a task is marked done).
  2. Maggy Harness: A local FastAPI server and web dashboard that extends Bootstrap with advanced features. It uses a semantic "blast score" to route requests across 13 different LLM tiers (from local Qwen3 to Claude Opus) to optimize for cost and capability. It also includes "Polyphony" for running multiple agents in isolated Docker containers to prevent file conflicts.

Who it’s for

  • Solo engineers who want automated TDD and persistent memory without changing their existing Claude Code workflow.
  • Teams needing a single dashboard to route work across multiple models (Claude, DeepSeek, Gemini, etc.) while managing costs.
  • Platform engineers looking for a reference implementation of intent-tracking and plugin-based AI developer tooling.

Highlights

  • 13-Tier Model Routing: Automatically selects the cheapest capable model based on task complexity.
  • TDD & Quality Gates: Hard enforcement of test passes and architectural rules (e.g., max 20 lines per function).
  • Polyphony: Docker-isolated parallel agent execution to allow multiple agents to work on the same repo without collisions.
  • Cortex MCP: A code intelligence server providing AST extraction and bidirectional traversal via a SQLite graph store.
  • Telos: An intent-fidelity scoring system that measures if code actually fulfills its original intent beyond just passing tests.
  • Mnemos & Engram: Multi-dimensional memory systems that persist architectural knowledge and task state across sessions.

Related

  • Project
  • Dispatch
  • Project
  • Project
  • Dispatch