Skip to main content

magi/
lib.rs

1//! magi — a blind multi-agent implementation competition.
2//!
3//! One task, several agents, and a graph that decides which implementation
4//! survives without a human reading the diff:
5//!
6//! 1. **implement** — N agents solve the same task in isolated git worktrees,
7//!    unaware of each other.
8//! 2. **judge** — M judges rank the candidates blind: labels `A`/`B`/`C`, a
9//!    per-judge presentation order, attribution trailers stripped at write time
10//!    by a `commit-msg` hook and again at presentation time.
11//! 3. **deliberate** — if the first choices disagree, the judges argue, with
12//!    magi as the facilitator. A facilitator made of code cannot leak an author.
13//! 4. **vote** — final votes are collected one-to-one and privately, so nobody
14//!    can drift toward a visible majority.
15//! 5. **review** — the winner enters a bounded review + real-machine
16//!    verification loop with a fixer that may reject a finding with an argument.
17//! 6. **gate** — configured commands must pass before anything merges.
18//!
19//! Everything is recorded, so the by-products are real numbers: per-agent win
20//! rates, per-reviewer precision, and how often execution caught what static
21//! review missed. See [`stats`].
22#![deny(missing_docs)]
23
24pub mod agent;
25pub mod ask;
26pub mod blind;
27pub mod chat;
28pub mod clean;
29pub mod config;
30pub mod daemon;
31pub mod disk;
32pub mod git;
33pub mod graph;
34pub mod land;
35pub mod md;
36pub mod plan;
37pub mod proc;
38pub mod prompt;
39pub mod queue;
40pub mod report;
41pub mod repos;
42pub mod rng;
43pub mod run;
44pub mod stats;
45pub mod talk;
46pub mod tui;
47pub mod updater;
48pub mod verdict;
49pub mod web;