nervネルフ

Four programs, no shared code

magi is a coding agent for Linux. It is one of four programs that talk over argv, a pipe and a socket — and share not one line of code. This is how they fit together.

magi

the harness

The one you run. Holds the conversation, the screen, the journal and the permission ledger, and reaches the other three for everything else.

what it owns →

casper

tools · surfaces

Thirteen tools and the screen they draw on. One process per call. It knows nothing about models, turns or transcripts.

what it owns →

melchior

the model · other agents

Which providers exist, what credential each takes, and how one session reaches another. It does not know what a harness is.

what it owns →

balthasar

memory

What is in the window now, what happened this session, what is true, and how things are done here. Its own store, its own process.

what it owns →

How they connect

Nothing in the ring talks to anything but magi, and every arrow is a process boundary somebody crosses on purpose.

plate 01magi is the only program you run

Start here

installget the binaries, and check what a session here would be made of
the mapevery edge, what travels on it, and what happens when one end is missing
write a toolfour fields of Lua, read at start-up — nothing is compiled in
the wirethe shapes, the encodings, and the framing, in enough detail to write a peer

What holds it together

magi is the only command. It starts a balthasar and a melchior for each session and ends both, and runs casper once per tool call. There is no daemon to launch and no unit file to install.