magus v0.4.3 is out. See what's new
¶ View markdown source · ✎ Suggest an edit
2 min read

What we do not build is the product

Anything can be built now. An agent writes a remote session server, a text editor in the console or a plugin loader in an afternoon, so being able to build a feature says nothing about whether it should exist. What will tell magus apart from every other tool is what it leaves out. Sometimes the anti-feature is the feature.

Security makes the case sharper. Every line is attack surface you maintain forever, and the most secure code is the code that is not there. Some capabilities are dangerous enough that the right design is for them to be impossible, not guarded: nothing in magus lets anyone other than the person at the keyboard run code on their machine. There is no remote session, no hosted service a capability depends on, and the console answers on loopback only. magus runs a repository's magusfiles because running magus in a repository is the consent to run its code (ADR 0014), and that is the whole of it.

The console is where this is under the most pressure, because it is the place a feature is easiest to add and hardest to say no to. It is not an editor, a terminal or a diff tool that competes with the good ones that exist; anything it shows has to give something the CLI cannot.

Enforced by

Good

A refusal kept in the record, with the reason a person can check:

| a workspace trust store | not built: running magus in a repository is the consent to run its
  code, and magus never runs that code passively |

Bad

Add `magus serve --remote` so a teammate's agent can run targets on my machine.

It is an afternoon to build and a remote code execution path to defend forever, for a convenience git push and CI already give.

See also

designprinciplescopesecurity
Last updated (2df714e8)
Glossary

Workspace

The magus root directory that owns a set of projects and shared config; the unit magus operates over. Workspace in full.

Magusfile

The magusfile.buzz that declares a project's targets (as export funs) and binds its spells. Magusfile in full.

Target

A named operation (build, test, ...) you invoke with magus run <target>; it may compose a spell's tool-native operations and depend on other targets. Target in full.

Op

A single tool-native command a target composes (long form: operation); the middle of the work hierarchy (Spell to Op to Target). Op in full.

Buzz

The language magusfiles are written in (the .buzz engine). Buzz in full.

Service

A long-running or shared process magus manages across runs, distinct from a one-shot target. Service in full.

Daemon

The background process a person starts with magus server start. It serves MCP, the console, background jobs and the warm knowledge graph, and adopts nested magus calls into one pool. Daemon in full.

CI

An ordinary target you compose yourself with ctx.needs; magus does not hardcode its stages. It is the anchor magus affected ci keys off, and ci strips the rw charm. CI in full.

Agent

A model working through an agent host such as Claude Code, Codex, Cursor or OpenCode. magus treats an agent as one more caller of its CLI, MCP tools and console, held to the same checks as a person. Agent in full.

Tool

An action a model can call through its host: a name, a description, a typed input and a result. magus serves its tools over MCP, each a read of the workspace model or a run of the CLI it already has. Tool in full.

Session

An agent host's conversation, by the id the host delivers to its hooks. magus never mints one: a record with no session is unattributed, and the OS user it carries says whose account ran it. Session in full.

Run

One target executing under one magus invocation, such as magus run test web or magus affected ci. A run keeps its captured output behind an output reference. Every magus run is a run whether or not any job asked for it; see Job for how the two relate. Run in full.

Conventions

This page uses none of the site's convention markers. The full set is on the conventions page.