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;
55pub mod md;
56pub mod merge_decision;
57pub mod notices;
58pub mod persona;
59pub mod persona_icon;
60mod pr_head;
61pub mod pr_outcome;
62pub mod pr_recovery;
63pub mod proc;
64pub mod prompt;
65pub mod question_delivery;
66pub mod queue;
67pub mod rebase;
68pub mod reconcile;
69pub mod recovery;
70pub mod refs;
71pub mod release_local;
72pub mod release_watch;
73mod repo_lock;
74pub mod report;
75pub mod report_view;
76pub mod repos;
77mod retention;
78pub mod review_repair;
79pub mod rng;
80pub mod run;
81pub mod scrub;
82mod seat_process;
83pub mod settings;
84pub mod stats;
85mod stop_reason;
86pub mod talk;
87pub mod triage;
88pub mod tui;
89pub mod updater;
90pub mod verdict;
91pub mod waiter;
92pub mod web;
93pub mod worktree_setup;
94
95pub mod choice_effect;
96mod resume;