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