mozg
Own what your AI writes.
A coding agent now writes more of the code than a person can read, and
approving a change is not the same as understanding it. mozg finds the changes
with the most at stake and asks you one question about each. You answer in your
own words. An examiner that did not write the code grades the answer. A pass
makes that module yours.
It is a Claude Code plugin. Local only: no keys, no accounts, and nothing sent
anywhere.
How it works
- Watch. mozg reads the session logs Claude Code already writes. For
every edit it notes the file, the module, the size, and who let it through:
you, for that one change, or a rule that did not ask.
- Explain. A turn that leaves changes in modules you have not explained is
mentioned at the end. Say
explain and the agent asks one question about
the change with the most at stake. About a minute.
- Own. The answer goes to a separate examiner agent, in its own context,
with no tools.
explained makes the module yours. A miss costs nothing,
and it teaches: the examiner says what the answer was missing, in a few
plain sentences, and the same question comes once more. Two answers at most
per round; then the module stays on the list for another day.
Then the part that changes how the agent behaves. Where a module is not
yours, its first edit there in a session stops and asks you, the way Claude
Code asks before any edit, with the reason: what module, how much the agent has
changed there, how to make it yours. An explained module costs no prompt from
mozg: there it says nothing, and the permission settings of the session apply
as they are. It asks once per module per session.
The desk counts what that buys. Ran free is this week's agent edits in
modules that are yours, where the log says nobody was asked. An edit you
approved yourself is not counted, even in a module that is yours now: nobody
is said to have gone unasked where the log says otherwise. It goes up with
every module you explain.
A module stops being yours once the agent has changed 100 lines in it since
you explained it, and comes up for a re-check after 1, 3, 7, 14 and 30 days.
Install
Needs Claude Code, and Node 20 or newer.
/plugin marketplace add egorfedorov/mozg-plugin
/plugin install mozg@mozg
From a copy of this repository, after npm run pack (the marketplace has the
same name as the public one, so this is for a machine that has not added it):
/plugin marketplace add /path/to/this/folder
/plugin install mozg@mozg
Then, in any project, say status, explain, map or desk to your agent.
The plugin also adds them as slash commands, /mozg:explain and so on.
The desk is a page on your own machine, at http://127.0.0.1:4317, opened
by desk. It has five parts, each with its own address: Today (the
score, what the brain says about it, and the one thing to do next), Modules
(every module in one list), Activity, History and Settings.
Under Connection and settings it says whether the plugin is attached: when
the agent last called mozg, when a session last started, and what is being
read. Nothing there is probed or guessed. Each line is something a process
wrote down when it happened, or a plain "not yet" with the thing to do about
it.
What is claimed, and what is not
- mozg never says whether you read a change. The log records who approved it,
and that is all it records, so that is all mozg says.
- "Went ahead with nobody asked" means the configuration let the change
through. An "always allow" rule made earlier counts as that, because nobody
was asked at that moment.
- Timing is shown only as timing. Under two seconds is never called "not read".
- A README is not a module to own. A change that is only words (a README, a
licence, a changelog) is noted and counted for nothing: not in the score,
not on the map, not offered for an explain-back, and not put to the person
before it happens.
- A day with nothing to own shows an empty score. It is not hidden, because
hidden reads as "never measured".
- Everything the brain says is computed from the numbers beside it. A desk at
48% says so, and names what it cannot vouch for.
- Claude Code deletes its own transcripts after 30 days, by default. mozg keeps
what it read; after that the text of an old change can no longer be shown for
an explain-back, only its path and size, and the tool says so.
- The sample on the landing is the same view-model on a sample session,
labelled as a sample.
Privacy
| |
|---|
| Read | ~/.claude/projects, the session logs, and nothing else |
| Written | ~/.mozg, and nothing else |
| Network | none. The desk listens on 127.0.0.1 and answers only that address. The site's chat is a page of the site talking to the site's server, and the plugin has no part in it |