Why Mo
Mo is built for living software—software written largely by AI agents, read and verified by humans, and inspected, diagnosed, and evolved while it runs.
The Four Forces Behind Mo
Section titled “The Four Forces Behind Mo”- Written by agents, verified by humans. Even when an agent writes 100% of the code, a human reads the diff and owns the blast radius. Inspired by Yukihiro Matsumoto’s philosophy of developer happiness,
.mofiles use calmkeyword ... endblocks, zero semicolons, non-significant indentation, and one canonical 100-column formatter (mo format). - Rust’s guarantees without Rust’s friction. Algebraic
struct/enumtypes, exhaustivecasematching, explicitOption(T)andResult(T, E)(dropping aResultis compile errorE0412), checked integer overflow, exact 128-bitDecimalarithmetic (±(2^127 - 1) × 10^-18), and Perceus in-place reuse—with no borrow checker and no GC pauses. - Security by construction, not convention. Zero ambient authority.
maindeclares every capability it receives (Args,Env,Console,Files,Network,Sqlite,Command), capabilities narrow monotonically, and production code is forbidden from constructing test fakes. - Separate constructs for separate physics. Instead of forcing everything through one abstraction, Mo gives each runtime shape first-class syntax:
api ... end(multi-worker isolated HTTP),actor Name ... end(in-process BEAM-style state machines), andservice ... end(durable single-writer MCP/HTTP services with live ops).
Self-Documenting Binary
Section titled “Self-Documenting Binary”The mo binary embeds its own Language Reference (mo guide --reference), build guide (mo guide), standard library (lib/), and runtime (runtime/) so any human or agent has the exact compiler specification offline.