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 chat_watch;
34pub mod clean;
35pub mod conduct;
36pub mod config;
37pub mod consult;
38pub mod daemon;
39pub mod deputy;
40pub mod direct;
41pub mod disk;
42pub mod dupes;
43pub mod fixer;
44pub mod followup;
45pub mod git;
46pub mod github_text;
47pub mod graft;
48pub mod graft_report;
49pub mod graph;
50pub mod handover;
51pub mod land;
52pub mod lang;
53pub mod md;
54pub mod merge_decision;
55pub mod notices;
56pub mod persona;
57pub mod persona_icon;
58mod pr_head;
59pub mod pr_outcome;
60pub mod pr_recovery;
61pub mod proc;
62pub mod prompt;
63pub mod question_delivery;
64pub mod queue;
65pub mod rebase;
66pub mod reconcile;
67pub mod recovery;
68pub mod refs;
69pub mod release_local;
70pub mod release_watch;
71mod repo_lock;
72pub mod report;
73pub mod report_view;
74pub mod repos;
75pub mod review_repair;
76pub mod rng;
77pub mod run;
78pub mod scrub;
79mod seat_process;
80pub mod settings;
81pub mod stats;
82mod stop_reason;
83pub mod talk;
84pub mod triage;
85pub mod tui;
86pub mod updater;
87pub mod verdict;
88pub mod waiter;
89pub mod web;
90pub mod worktree_setup;