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 advise;
25pub mod agent;
26pub mod already;
27pub mod ask;
28pub mod blind;
29pub mod blockers;
30pub mod bump;
31pub mod cache;
32pub mod chat_notify;
33pub mod clean;
34pub mod conduct;
35pub mod config;
36pub mod consult;
37pub mod daemon;
38pub mod deputy;
39pub mod direct;
40pub mod disk;
41pub mod dupes;
42pub mod fixer;
43pub mod followup;
44pub mod git;
45pub mod github_text;
46pub mod graft;
47pub mod graph;
48pub mod handover;
49pub mod land;
50pub mod lang;
51pub mod md;
52pub mod notices;
53pub mod persona;
54pub mod persona_icon;
55pub mod proc;
56pub mod prompt;
57pub mod queue;
58pub mod rebase;
59pub mod reconcile;
60pub mod refs;
61pub mod release_local;
62pub mod release_watch;
63pub mod report;
64pub mod report_view;
65pub mod repos;
66pub mod rng;
67pub mod run;
68pub mod scrub;
69pub mod settings;
70pub mod stats;
71pub mod talk;
72pub mod triage;
73pub mod tui;
74pub mod updater;
75pub mod verdict;
76pub mod waiter;
77pub mod web;
78pub mod worktree_setup;