Repository navigation
Releases
v0.1.10
Added
- A decision is recorded with the paths it governs, in the same act. The
--governs <path>flag ofdecision record(repeatable)
and the optionalgovernslist ofrecord_decisionwrite the decision and onegovernslink per path in a single append,
so they land together or not at all; the format is unchanged, the two kinds of event are the ones agovernslink
already is. The paths are held to the rules of that link, and a refused one refuses the whole act with nothing written. The
description ofrecord_decisionchanged, and with it the weight of the tool definitions the hosts are sent. - A few failures mnema catches and goes on from now leave one line that
mnema doctorreads. The MCP server's count of tool
calls (and the write of that count) and the outer catch of four hooks (session start, session recall, after a write, choice
settled) add a line to<data directory>/log/swallowed.jsonl: the instant, the place's name (from a fixed list), the error's class,
codeandsyscall, and the version. No message, no stack, no argument, no path and no word of yours. The file has a ceiling (128 KiB,
then it is renamed overswallowed.1.jsonlunder a lock, two files at most), is mode0600, is made nowhere a machine has no key of
its own yet, never leaves the machine and is not copied by a backup.mnema doctorreads at most its last 256 KiB, says how many
failures the last 7 days hold and the places that did it most, prints nothing it did not write, and says nothing where there are none.
The other catch blocks do not write to it yet. See The ledger of caught failures. - A backup now keeps a local record. A clone whose
.mnema/a repository excludes (.git/info/exclude) and never commits had
no copy of its public tree: the run copied only the private one and said git kept the rest. A record is local when git excludes
.mnema/and holds no file under it (git ls-files -- .mnemais empty); an exclude over files git tracks, a global
core.excludesFileincluded, leaves the record committed.backup runnow copies the public tree of a local record,
backup statusandbackup verifyread it, andbackup restorebrings it back into a project whose.mnema/folder is gone
(whatgit clean -fdXdoes to an excluded folder): it is found from the top of the repository, where git still excludes the
folder, and the name of the record comes from the copy this machine has (or--from). A restore over a.mnema/that is there
still asks when the copy is of another record. What does not change for a committed record: its public tree is not copied.
What this does not do: a project in a subfolder of a repository (a monorepo) with a local record is not restored from a
folder that is gone, only one at the top is; andmnema doctor, the tail repair and the place where a restore keeps what it
replaces still use the earlier test (a project in a repository), not this one. - A module that keeps a marked block in a repository's
.git/info/exclude, with no verb yet. It reads and changes only the
lines between two marker lines (# >>> mnema (managed by mnema; edit only outside these two lines)and# <<< mnema) in the
exclude file of the common git directory, which every worktree of the repository shares; every byte outside the block is kept,
CRLF files get the block in CRLF, an absent file is created, and the block goes whole when its last line does. A block that is
not one block (an opening with no closing, a closing with no opening, two blocks) and a link in place of the file are refused
with the line named and nothing written. The file's bytes (UTF-8 or not) and its mode are kept, a write waits for a lock file beside it so two mnema processes lose no line,
and an empty block is removed by the next write. Nothing calls it yet: no command writes the exclude file today. mnema prove: the proof of one decision, in one file a stranger checks offline.mnema prove <decision>
(an id or anADR-label) writes one file holding the signed ranges of the record that hold the decision's
writings and moves, the roster facts that make each signing key valid for its identity, the tail proofs, the
public keys and a manifest of the decision's text, moves and state;--out <file>writes it to a file and never
replaces one.mnema prove --check <file>checks it from the file alone, and so does the second reader
(python3 packages/chain/verifier/mnema_verify.py proof <file>), which imports nothing of the product: one word
changed in a line or in the manifest is refused by both. Every tail it touches is carried from its first line to the
last range it needs, and both readers refuse a tail carried from a later line or with a gap, so nothing before or
between carried lines can be left out; the file grows with how far down its tails the decision sits (9 KB to 2.2 MB,
median 0.9 MB, over this repository's record). A proof says what it does
not prove beside every verdict: nothing written after the last range it carries on a tail (a later supersede or a
revoked key), nothing on a tail it does not carry, no time but the writer's clock, and not who held a key. A decision of this machine's private tree is
refused unless--privateasks for it, and none is proven from a recordverifycalls broken. The format is
FORMAT.mdsection 9, withproof-vector.jsonas its published vector. See
A proof of one decision.- An instruction the person gives to keep ("from now on, run the linter first") is followed by one sentence for the agent, and is one record.
A new verb,mnema dictated, is run by aUserPromptSubmithook (Claude Code and Codex) and by aBeforeAgenthook (Gemini CLI's
extension). It reads thepromptthe host hands it, never the transcript, in the first 2,000 characters, a sentence at a time, for
always, never, from now on, going forward, sempre, nunca, a partir de agora, daqui pra frente or de agora em diante
followed by a verb in the imperative, or the words put it as a rule, make it a rule, as a rule:, coloca como regra, isso é
regra or vira regra; accents are optional. A statement ("sempre dá timeout no CI"), a limit in time or place ("today", "here",
"hoje", "aqui"), a step of the task ("then tell me"), a condition ("if it works, make it a rule"), a question, a fenced block, a sentence
that opens with a quote mark or a>, a message that tells the agent to ignore its instructions and a sentence that tells it to accept
decisions are not rules. A match makes one sentence of the product's own, with no word of the message: the message has the shape of a
rule, only a rule the person typed (not text pasted or quoted) is to be accepted,record_decisionrecords it,decision_transition
accepts it with a note quoting the person's own words (a person accepts it, whereagent-acceptsis off), and nothing has been
recorded. The agent judges whether the message is a rule. It records nothing, is on untilmnema switch off dictated-rule, and the
hook starts nothing where Cursor or Qwen Code say they are the host; VS Code also runs the Claude Code hooks file and was not read for
this event. The shapes are one table,DICTATED_RULE_SHAPES, which the verb and the reader of the transcript both read: that reader
takes the rule out of the message (the clause up to the next semicolon, comma or dash) whiledictated-ruleis on, so a dictated rule
is one record, and still reads what is left of the message for a correction (ADR-546, ADR-605, ADR-30, ADR-586). mnema witness sigstore-check --identity <identity> --issuer <url>checks, offline, that the Sigstore countersignatures of a record name exactly the identity you expect, the waycosign verify-blobdoes. It exits 0 only when there is a bundle, every one holds by Sigstore's own checks (certificate chain, certificate-transparency timestamp, Rekor's promise and proof of inclusion, all inside the bundle) and the certificate names that identity and that issuer; a bundle that holds and names someone else, or does not hold, fails by name. With--message-dir <dir>it writes the message each bundle signs (the checkpoint's own signed message, recomputed fromcheckpoints.jsonl, named by its SHA-256) and prints the exactcosign verify-blobline for the same bundle. It checks against the trust root the binary carries and asks nobody whether that root is still current.- A subagent's decisions come back to the session that started it on Codex and Copilot CLI too. The
SubagentStophook that
runsmnema handbackwas wired for Claude Code alone;codex.jsonandcopilot.jsonnow run it, andmnema handbacktakes
--host claude|codex|copilotto read the payload each host documents (Copilot CLI's under either spelling of its event). On
those two hosts the reply is the decision itself on stdout with exit 0, the form their documentation reads. It is held by a
test fed the documented payloads, not by a run of either host. Copilot CLI documents no field that says a stop is the second
one, so there the check is not once per stop; the host's own limit of eight consecutive continuations is the bound. Gemini CLI
has no hook event for a subagent and OpenCode was not read for one, so the presence map and the plugin's page say that for them. - An experimental single executable of
mnemafor Linux x64, built with Node's single executable applications.pnpm build:single-executable(Node 25.7 or later; no new dependency, Node's own--build-seawrites it) folds the CLI into one file that holds its own Node, to run the record verbs,verifyand the merge driver on a machine where the firstnodeon thePATHis missing or too old (the plugins' hooks still start withnode). It is unsigned and Linux only, and ...
v0.1.9
Added
- A git repository as the destination of a backup, and
mnema backup hook.mnema backup setupaccepts a git
remote (or the folder of a bare repository) in place of a folder.runkeeps a clone of it in the data directory,
commits the copy and pushes it: one more commit each run, and the destination keeps the whole history (nothing is
squashed, amended or force-pushed; a remote that went another way is refused with nothing rewritten).verifyand
restoreread the destination as they read a folder, after bringing the clone up to the remote. Every git it starts
runs with no inheritedGIT_*variable andGIT_TERMINAL_PROMPT=0, a remote written with a password (or an
http(s)one written with a user) is refused so no credential is kept, and a remote is printed without its user.
mnema backup hook install | uninstalladds, only when asked, apost-commithook that runs the backup in the
background (refused wherecore.hooksPathis inside the working tree; a shell hook already there gets a marked
block, anduninstalltakes out only whatinstallput). See
What a backup keeps, and what it loses.
statusandverifysay how many commits of a git destination did not go up (verifyfails while any is left), a
divergence is refused with the way out named, and two runs never interleave in the clone. mnema backup verifyandmnema backup restore.verifyreads each copy of a project as a record, with this
mnema's reader (it says that one reader read it, and the command that runs the second, a Python program of the source
repository, by hand), and sets each file of the copy against the tree's: a copy that is behind
is named, and a tree that is cut, has lost a file the copy holds, or went another way from it is a failure, with no side
taken between a fork and a cut.restore [--dry-run]puts a copy back into a tree that lost files and never over a file
the tree holds: a name taken with other bytes stays and is named, a live tail that went further wins, a tail the copy is
not the start of refuses the whole restore, atailproof.jsonthat is there stays,locks/, the installation ids and
the anchors are never restored, a copy that does not verify or that belongs to another record is refused, and nothing is
touched while a writer holds a tail (the refusal names the process). It brings back the text and not the key: a machine
that lost its key still founds a second identity, and the first write after a restore opens a tail of its own. See
What a backup keeps, and what it loses.- A workflow assigns an open
good first issueorhelp wantedissue to the outside contributor who comments a claim on it, and frees it after 14 days without a pull request./take,/claimand phrases such as "I'll take this" or "assign me" claim it; someone who already holds three issues is asked to finish one first, an issue someone holds is answered once as taken, and a daily run frees an assignment that went quiet. The workflow only assigns and comments, and CONTRIBUTING.md says how. mnema backup restoreasks about a copy of another record, and--undoputs back what it replaced. A copy of another
record (--from <record>, the copy of that record in the project's folder) was refused; it is now a question at a terminal
(a pipe is refused, with the command for a person to run). On a yes the tree is moved to
<git directory>/mnema/before-restore-<UTC date>/, with no colon in the name and never in the working tree, the copy is put
in, andmnema backup restore --undomoves it back, keeping what stood there. No restore deletes that folder: it stays until the person deletes it,
--undoputs back the newest, andbackup statuslists them. A project without git whose public tree lost its tails, so nothing names the record, takes
the name from the copy's manifest and asks the same question (ADR-389, ADR-518, ADR-428).mnemawith no arguments, the first time on a machine and at a terminal, opens a tour of four pages in place of the menu, andmnema touropens it again. The pages say what the record is, whatmnema initchooses and why, how an agent reads it, and the commands to start with. The tour only explains: it writes nothing to the record and founds no project. Its one trace is a field inmachine-state.json, beside the file that remembers the star line, set when the tour opens; a file that cannot be read counts as seen and is never written over. Without a terminalmnema tourprints the same pages as text and writes nothing, and the bare name there is the summary it was.mnema repldoes not offertour.- A red guard says what it checks. The guards that read the whole tree are test files marked
// @reads-the-tree, and the log of
one that fails says what differed but not what it is for. The comment on a pull request now shows, for each guard that failed,
the paragraph at the top of its file that says what it checks, under a link to the file at the run's commit, and
pnpm check:contributionprints the same paragraph under the path of each guard that fails in its guards step. A new guard
with no such paragraph is red (.github/what-a-guard-checks/). mnema tail repair <tail>puts back from git a line of a public tail that does not read or whose hash does not
hold. Until now a NUL in a committed line, or a line edited after it was written, stopped every write and left the way out to
the person (restore the line from the history by hand). The verb takes, for each damaged line, the line at the same place in the
same file inHEAD(or the revision--from <rev>names), and puts it back only when it reads, holds its hash, and chains to the line
before it and, where one follows, to the line after it as the file will be left (the last line of a tail has none). It never adds, signs or deletes a line, leaves the last line when a
crash cut it short, and touches neithercheckpoints.jsonl,keys/,tailproof.jsonnor the private and the global trees; a
conflict marker, a line that is the same bytes in the revision and does not read (a newer mnema wrote it), a revision whose line
does not chain, and a link are each refused with nothing written. It takes the tail's lock, writes each file atomically and keeps
the segment as it was in the repository's git directory, beside the lock, until the person deletes it. It is the one write that passes with an altered or an
unreadable record, and it is a command of the shell only: the refusals of a write over a damaged public line (the command's, the
edit gate's and the agent's) now namemnema tail repair <tail>, and keep "update mnema if a newer one wrote the line".mnema backup runcopies a project's trees into a folder.backup setup <folder>says which folder keeps this project's
backup (a machine can hold a folder per project, assigned by the name of the project's record, and no project inherits
another's; the command says the folder keeps the text in clear and asks a person to confirm it at a terminal, and refuses without one: no flag answers for you),
backup runcopies, andbackup status [--json]says where the copy is, when it was made and what is still to copy.
A copy holds the tails up to their last complete line and the public keys, the private tree always and the public tree
only where the project is not in git. A run is refused whole, every tree checked before the first byte of any is written, when a file it would copy holds a private key, wherever in
the file, and at a symbolic link in a tree it copies from or in the folder it copies to; a folder inside the working
tree, the record or the git directory is refused; a copy only grows. The private key is not copied. The command is
on the command line only: it records nothing and is no MCP tool. See
Backing up a project's trees to a folder.- A pull request is told what failed. When CI is over for a pull request, one comment, rewritten after every run, names
the checks that failed, the verdict of why-it-went-red, the failing tests with what each said, and for lint the exact
pnpm exec biome check --write <files>command with the diff it applies; a first pull request is welcomed and pointed
at CONTRIBUTING.md. CI's last job writes the report with its read-only token, and a separateworkflow_runworkflow,
which checks out and runs nothing of the pull request, reads it as data and comments (.github/what-failed/). - A release carries a signature. From the next release, the GitHub release holds the five tarballs, their SHA-256 and
a Sigstore build provenance bundle for them (mnema-npm-packages-<version>.sigstore.json), and the extension's.vsix
has its own bundle (mnema-<version>.vsix.sigstore.json), made byactions/attestafter the publish and after the
extension is packed.gh attestation verify <file> --repo mnema-work/mnemachecks a downloaded file against it. The
publish job also names the npm registry in itssetup-node, which changes nothing in how it authenticates (OIDC, no
token). mnema backup restoreof another record's copy now works in a project outside git. It was refused where there is no git
directory to hold what the restore replaces. The live record is now moved to<mnema home>/before-restore/<UTC date>/(the mnema
home is~/.mnema, or$MNEMA_HOMEwhen set), with no colon in the name, and the same question at a terminal, the same mark,
the same--undoandrestored-<tree>/rule, the same listing inbackup statusand one lock for the place. No restore deletes
a folder kept there: you remove it by hand, andbackup restore --helpand the backup page say where it is. A project in git keeps
its place in ...
v0.1.8
Added
- A reference page for each command and each MCP tool.
docs/reference/cli/has one page per command ofmnema,
made from the help the command prints, anddocs/reference/mcp/one per tool the MCP server serves, made from its
description, parameters and annotations; Commands and
MCP tools index them. The pages are generated, and a test is red when one differs
from the help or from what the server serves. mnema verify --jsonsays each tree in a line. Every tree of the reading has aheadline: the text of the line the
console's panel shows for it (the level clause of a tree that holds a record,no record herefor one that does not), made
by the same function as the panel, so the two cannot say two things; ashort, the same verdict in plain words without the
layer names (verified, signed,verified, hash chain only: no signature was checked,failed: <its first issue>); and a tree that holds lines a newer mnema wrote has
newerMnema, the sentence every surface says about them. All three are fields added beside the reading, and they change neither the prose
nor the exit code. A set (--workspace) carries them on the trees of each project. The VS Code extension shows them
in its status bar tooltip.- The README's hosts table shows each host by its vendor's own logo file. The files are in
assets/hosts/, as
published and unmodified, with aSOURCES.mdbeside them that gives each file's source, date and sha256; the table no
longer links to a third party's redraw of a logo. Codex, whose vendor publishes no file that was found, is shown by its
name. A line under the table names the owners of the logos and says they imply no endorsement, and a test holds that
every image of the table is one of those files with a row and a matching hash.
Changed
- A handoff or an observation about an id nobody holds is refused. The
task handoffcommand,record_handoff,
observeandrecord_observationused to record the fact about any id they were given, so a mistyped task kept a
brief nobody could find from the task. They now refuse (UNKNOWN_TASKfor a handoff,UNKNOWN_RECORDfor an
observation,AMBIGUOUS_RECORDwhere two records hold the id) and write nothing, whichever tree the write was told to
land in. A handoff names a task: the id of a decision or a pattern is refused asUNKNOWN_TASKtoo. The command
line looks in the trees of its own project; the tools look in every project the client
announced. Thelinkcommand is unchanged: it records the edge and says when it names nothing a reader can open. mnema searchand thesearchtool name the other end of a replaced decision. A decision hit that was superseded
carriessuperseded by ADR-n: <title> (<state>) · <id>, and one that replaced another carriessupersedes ...,
worded as the read of a whole record words them and read from the tree the hit is in ((not in the trees read)when that tree does
not hold the other end).--jsonand the tool's result gain the optionalsupersedesandsupersededByon a decision
hit, shaped as inshow.- The command line says what the tool says about an address. After "Recorded decision ADR-n (id)", the
command that records a decision now adds, asrecord_decisiondoes, that the decision is addressed at no path and that nothing was linked, and
names the call that would address it:mnema link <id> <path> --rel governs(with--scope privatein the private
tree). The command has no connection and so no path it looked at: the<path>is left for you to fill in. Both doors
build the lines in one function. - The command reference is split into guides and the page of each command, and the docs are grouped as Get started,
Learn, Reference and Project. The long sections ofdocs/cli-reference.mdmoved: nine guides
(recording decisions, rules and the commits that cite them,
committing the record, a second machine and your key,
a record that inherits another,
importing the decisions you already wrote,
switching off what is handed to a model,
the session journal and compaction and
the MCP server); what belongs to one command is on that command's page under
Commands; and the long form of what the record proves is the end of
What it proves. The command reference stays as the index, with the
tour of the command line and the exit codes, and keeps a heading, with a link to where its text went, for each anchor
a page already cites. The "Docs" block of the front page lists the pages in the four groups. - The hook before a write no longer founds an identity. On a machine with no key, a write the record charges (a
rule that asks a person or refuses) used to make a key to record the charge. The write is now refused, and the reply
says to runmnema init; nothing is recorded and no key is made. So is the write a host hands the rules beside, where
its hook is the gate; a hook that runs after the write records nothing there. A machine that has a key is unchanged. - The VS Code status bar tooltip is a verdict and one line per tree. The block of
mnema verifytext it held, cut at six
lines (the private tree's line was the one that fell out), is replaced by theshortlineverify --jsoncarries for each tree (plain words; theT1/T2/T4terms stay in the console and behind the link),
with the sentence about a newer mnema under its tree and the editor's error or info icon on a tree that is not clean. The long
text is behind a link, the new commandmnema: Show Full Verification, which runsmnema verify --verboseandmnema switch
when it is clicked and shows them in an output channel. A reading no longer runs a secondmnema verify.
Fixed
- A history rewritten without the key is no longer signed by the key holder's next write. A writer signed every event
it found above its tail's last checkpoint, so anyone who could write the checkout, and not use the key, could rewrite a
tail, recompute its keyless hashes, emptycheckpoints.jsonland fix the note of the last entry inlocks/, and the
holder's next write signed the forgery: both readers then passed--require signed. The writer now keeps beside that
note the same note signed with the tail's key (locks/<tail>.head.sig), and signs the events it finds above the last
checkpoint only under an end that note vouches for, after hashing each of them again from its bytes. An end it does not
vouch for, with such events, gets a new tail and a notice that names how many stay unsigned; an end it vouches for whose
checkpoints are fewer than the note says this key signed is refused (TAIL_DAMAGED) and left as it is. The format and
both readers are unchanged. It holds while every mnema that writes with that key is this version or later: an older one
still signs what it finds unsigned. - A torn last line of
checkpoints.jsonlis healed by the next write, not buried. A crash while signing a checkpoint leaves a
piece with no newline. Reading tolerated it, but the next write appended its checkpoint glued to the piece, and the tail
became unreadable tomnema verifyand to the Python reader for good. The writer now cuts a piece that does not parse, or
completes one that lost only its newline, the way it already healed a segment's.verifynames a dropped piece of the
checkpoints file in its census, as the Python reader already did. - A write killed before its end is signed by the next write, in the same tail. The notes of the last entry an
installation wrote (locks/<tail>.headand the signedlocks/<tail>.head.sig) were kept only once the act ended, so a
kill after the event's line reached the disk left an event no note vouched for: the next write opened a new tail, said
a branch switch or a merge did it, andmnema verify --require=signedfailed on that record for good. The signed note
is now kept before each line as well, naming in a new field,next, the last entry the write is about to append, and
the next write signs what a killed one left, whatever point the kill came at. And an end the signed note names that the
tail no longer holds (its newest entries and their checkpoints cut, the clear note set back) is not written over: the
write goes to a new tail and says which entries are not there; an earlier signed note put back with the cut is not told
apart, and the write chains on. The format of the record and both readers are
unchanged; the field is in a note underlocks/, which no reader reads. - Both readers give one verdict on two checkpoint lines swapped and on a tail that is a symbolic link.
mnema verify
sorted a tail's checkpoints byfromSeqbefore it checked their chain, so two lines ofcheckpoints.jsonlswapped, each
as it was signed, passed--require=signedwhile the second reader refused them. The previous checkpoint is now the
line before, in both readers and in the writer (FORMAT.md section 6), and the swap is refused as a checkpoint chain
break. A symbolic link undertails/was skipped bymnema verify(a record whose one tail was linked read as holding
no tail, and one beside another tail verified over the other alone) and followed by the second reader. Both now refuse
it by name,LINKED TAIL: tails/<name>, whatever it points at, and no reading follows it (FORMAT.md section 4). An
earlier version still accepts t...
v0.1.7
Changed
-
The MCP server's instructions open with what to do. Their first 250 characters now say to call
record_decision
when a choice is settled that someone could later question, then what mnema is. A host may show a server by no more
than its opening: Codex 0.167 lists each server it defers by its first 250 characters. The rest of the text says what
it said, a little shorter, and stays under 2,048 characters. -
The
mnemacommand starts in about half the time. Thebinof@mnema/codeis nowdist/bundle/cli.js, one
bundle of the command and of the code it reaches, its dependencies included (all butstring-width), split into
chunks so the Node version check still runs before anything else is loaded. Median of 20 starts on one machine,
before and after:mnema --version179 to 91 ms,verify197 to 110 ms,decision record246 to 153 ms,brief
(what the session hook runs) 208 to 119 ms, and the MCP server's reply toinitialize308 to 164 ms. -
The dependencies the command runs are inside the package. They are covered by the provenance of
@mnema/code,
not each by its own: npm still installs the declared dependencies andnpm audit signaturesstill checks them, but
the command does not load them. The package now carriesTHIRD-PARTY-NOTICES.md, with the version and the license
of each package the bundle carries, and Install says it. -
A stack trace names a chunk of the bundle (a file of
dist/bundle/and a line in it), not a file of the
compiled output. The bundle is not minified, so the line reads as the code it came from. -
From source, the binary is
packages/code/dist/bundle/cli.js. Build from source and
the site page name it; the compileddist/cli.jsis still built and still runs. -
The text a session opens with carries this machine's private rules, marked as such. After the committed
record's rules, the copy the plugin hands a session and a subagent (mnema brief --hook) ends with a section,
Recorded privately on this machine, that lists by name the decisions in force and the adopted patterns of this
machine's private tree and says they are not committed. Each private decision is labelledprivate ADR-<n>with
its id, never the bare label, since the private tree numbers its own and itsADR-1is not the committedADR-1.
It is the first part cut at the hook's ceiling, and says what it left out. A new switch,private-rules, on to
begin with, turns it off:mnema switch off private-rulesgives back the line that only counts them. The file
mnema briefprints is unchanged, and the machine's global tree reaches neither. -
The host contract holds Codex 0.167.0, Claude Code 2.1.311 and Copilot CLI 1.0.108. Codex 0.167 lists a server in a
developer message,<tools> Deferred tool namespaces:, and no longer in the description of its search entry (699
bytes, 151 tokens), so the cases read both. Claude Code 2.1.311 asks again for a summary when a reply carries no
summary block, so the compaction case answers with one.
Fixed
- A private rule's refusals and askings stay private. A rule recorded with
--scope privatethat refused a write
or asked for a person used to leave itschannel.refusedorchannel.askedin the public tree, with the rule's id,
and so in the repository's git. The fact is now written to the tree that holds the rule, by the hook command and by
the MCP tool alike; a public rule at the same path keeps its fact in the public tree. Facts already written stay as
they are. - Rejecting the successor of a supersede says what it leaves. The reject move, from the command line
(decision move) and fromdecision_transition, now names the decisions the rejected one had replaced: they stay
superseded, so nothing is in force on that subject. showandread_recordname every decision a successor replaced. A decision that superseded two or more
printed only the last; it now prints asupersedesline for each, and the JSON carries the others in
alsoSupersedes.- A line the record cannot read is named when a command meets it, a switch included. Switching a channel off with
an unreadable stored line in a tail is still refused, like every write, and now says so in words: the line and its
position in its tail, which record it closes, the ways out (update mnema, restore the line from history or the file
from a copy), and thatmnema verifylists every such line. There is no command that repairs a line. rulesandwhysay when the rules are not pushed. Withedit-rules-pushswitched off, a path that a
rule governs gets a line on the second stream: those rules are not handed to an agent when it edits there.mnema record commitcarries the record's README when mnema itself rewrote it. A project founded with an older
.mnema/README.mdhas it replaced by the current page at the next write, and the commit thatrecord commitcut
left that file out, so the rewrite never reached git through it. The commit now carries theREADME.mdand the
.editorconfigof.mnema/when their bytes are exactly the text this mnema writes; a page you edited stays out
and is still named as left out.
v0.1.6
Changed
- mnema lives in the organization
mnema-worknow. The repository isgithub.com/mnema-work/mnema(the old address
redirects), and the install line for the plugins ismnema-work/mnema(claude plugin marketplace add mnema-work/mnema,
and the same for Codex and Copilot CLI); the plugin is stillmnema@mnema, the extension id and the package names do not
change. The pages, the packages' manifests, the plugins and what the commands print point to the new repository and to
https://mnema.work.SECURITY.mdnames security@mnema.work beside GitHub's private vulnerability reporting. - From the next release the MCP Registry entry is
io.github.mnema-work/mnema.@mnema/codecarries thatmcpName
andserver.jsonthat name; the entry made for 0.1.5 keeps the name it was made under. - The page of what is coming is
docs/what-comes-next.md.docs/what-0-1-6-is-expected-to-bring.mdis renamed and
carries no version in its name or its title, so its address does not change with each release. It keeps the plans a
release does not carry, each linked to the accepted decision that holds it; what a release carries is said here.
The earlier entry for the page, under 0.1.5, is history and keeps the name the page had then. mnema initsays the Biome entries. In a repository whose Biome configuration does not leave.mnema/alone,
biome check .goes red after init ontailproof.jsonand, with Biome 2, on the front matter of the Copilot
instructions file.initstill edits no formatter's configuration: it now ends by naming the file and the entries to
add (!.mnema, and the Copilot instructions file where it was written), andmnema doctorand the session brief say the
same entries.- A session is told about the rules that live only in the private tree. The document a session opens with carries the
committed record alone, so a decision or pattern recorded with--scope privatenever reached an agent and nothing said
so. Where the private tree holds decisions in force or adopted patterns, the session's copy now ends with one line
saying how many and themnema search --scope privatecommands that list them. Their text is not in it, and the file
mnema briefprints is unchanged. - In a project with no git, the reply to a public write and the line
mnema siteends with stop saying the tree is
committed.Landed in the public tree: committed with the repository, so it reaches every cloneis still what a
repository is told, byte for byte. Without git, both the command line and the tools say that the public tree is a
folder of the project, not committed, which travels only as the project's files are copied, andmnema sitesays
only the public tree is in the page. The notice that a link reaches a rule or task its tree does not hold, and the
refusal of an address outside the project, likewise say "every copy of the project" and "the project's files are
copied" where they said "every clone". record commitfinds the forge behind an ssh alias. A remote written asgit@<alias>:owner/repo.git, where the
alias stands for github.com in your ssh configuration, got the generic sentence. For a host that is not a known forge,
reached over ssh, the host is read fromssh -G <alias>(three seconds at most) before the command is chosen; where ssh
is absent or fails, the sentence is the same as before.- A record's README from an earlier release is replaced by the current page.
.mnema/README.mdwas written only
where it was missing, so a record founded before the move tomnema-workkept the old clone address. A README whose
bytes are exactly the page an earlier release wrote is now replaced by the next signed write to the record or
bymnema init, with one line saying so. A README with any other bytes, and the current page, are never touched; the
page is not signed and neither reader reads it. - The site has its own repository. The pages at https://mnema.work are built in
mnema-work/mnema.work, from the
latest release of this one, and no longer from a folder here. A pull request that changesdocs/runs the site's build
over the docs of the pull request, so a page the site could not publish is red before it is merged.
Fixed
- A supersede by a proposal says who may accept it as the switch stands. The line that says nothing is in force on
the subject until the successor is accepted no longer says a person must, whileagent-acceptsis on: it says an agent
may accept it where the person dictated it, and a person otherwise; with the switch off, or unreadable, it says a person. - A decision accepted again says it is already accepted.
decision move acceptanddecision_transitionon a
decision that is accepted keep the refusalILLEGAL_TRANSITIONand now say that it is already accepted, by a person or
by which agent, and when, and that nothing changed. - A key whose tail was cut is told what happened. When the next write of a key that the record names among the keys
lost with a cut founds an identity beside others, the sentence no longer says it is how everyone after the first
arrives and there is nothing to do, nor points tokey request --anchorof another identity: it says the key was lost
with the cut and that this write started a new identity. - A write refused before it appended anything no longer says it went to a new tail. The line
mnema: wrote to a new tailwas printed as soon as the writer moved to a new tail, so a refusal such asSTALE_ANCHORcame after a line that
read as if something was written. It is said once the new tail holds something. - A refused relink no longer names a tail that does not exist. Where the refused
event is the relink itself, in the new tail it would be written in, the message says a new tail of that key. - A relink is checked against the tail the join reads. Where both trees hold a tail of the same id, the check of
what a join would break (tail relink,doctor --fix private-tree) set aside as already broken an event of the tree
it does not read, and could pass a relink that leaves the record failingverify. It now sets aside only what the
tree it reads refuses already. verify --sinceandverifyagree on a tail that holds only its proof. A tail directory with a tail proof and no
segment holds nothing and names no record forverify;verify --sincecounted the record it names as a tail of
another record that arrived. It now leaves it out too.- On Windows the doctor finds
mnema.cmd. The check of the merge driver written by an earlier mnema looked only
for a file namedmnemaon the PATH, so a working driver was called dead. It looks for the extensionsPATHEXTlists.
v0.1.5
mnema 0.1.5
mnema keeps the decisions behind an agent's work as a signed, append-only record in the repository, hands them to the agent at the start of a session and at each edit they govern, and lets anyone check that nothing in the record was changed.
Highlights
- A new
mnema init. It asks on a screen: it finds the agent hosts you already use and checks them, lets you uncheck aCLAUDE.mdorGEMINI.mdof yours, asks whether an agent may accept the decisions you choose, and shows the whole plan before it writes a single file. Every answer is also a flag, so an agent or a CI job can run it too. - The record reaches git through a pull request.
mnema record commitcuts the record at a signed checkpoint onto a branch, verifies it, and prints the push and the pull request command; it touches neither your working tree nor your index, and pushes nothing.status,doctorand the end of a session now say how many events no commit holds yet. - Pulling a record that only grows.
mnema record pullpulls over events not yet committed. Set up withmnema doctor --fix merge-driver(or by the newinit), a plaingit pullcarries them too, and mnema says when a pull left events aside instead of letting them disappear into a stash. - An agent accepts what you chose, and only that. When you dictate a decision or pick an option an agent offered, it records it and accepts it at once, quoting your answer; what it concludes alone waits for you (
mnema decision review).mnema switch off agent-acceptsleaves every acceptance to a person. - The format can grow. Both readers read past a line of a kind they do not know (checking its hash, chain, signature and checkpoint, and applying nothing), and every surface says when a newer mnema wrote lines this one does not read.
- A tail moves between records only by its owner's signed relink (
mnema tail relink), which both readers check, and which is refused when the record that would result would not verify. - The stack index ships in the package, so the VS Code extension's Add from Index works in any repository.
- The server is listed in the official MCP Registry as
io.github.felipesauer/mnema.
Measured
We ran 49 Claude Code sessions (Sonnet 5.5) under a published pre-registration (measurements/paid-block-2026-11):
- A rule written only in
AGENTS.mdwas followed in 10 of 10 sessions, as inCLAUDE.md(10 of 10) and through mnema (10 of 10). - Through the plugin, the agent linked 11 of 11 decisions it recorded to the code they govern; through the command line alone, 0 of 12. With the plugin it also told the whole story of a superseded decision (what replaced what, and why).
These are counts from one model and a handful of tasks, not rates; the page says what they do and do not show.
Upgrade
npm install -g @mnema/code@0.1.5
The full list of changes is in the CHANGELOG, and what 0.1.6 is expected to bring is here.
Added
-
A plain
git pullcarries the record's uncommitted events, in a clone set up for it (ADR-181, which amends
ADR-163).mnema doctor --fix merge-drivernow writes four settings into the clone's.git/config, the driver
first and the autoStash ones after it: the driver's name, the tails' merge driver,merge.autoStashand
rebase.autoStash(an autoStash is never written without a driver that can run here, since alone it leaves conflict
markers inside signed tails; this is ordered, not a rollback). A driver of mnema's that cannot run (its paths gone, or
the earlier form with nomnemaon the PATH) is said bymnema doctorandmnema statuswhile an autoStash is on, and
the fix replaces it. With themgit pull,
git pull --no-rebase,git pull --rebaseand a merge or a rebase beside an unrelated local commit succeed over
local events that are the start of the branch's or longer than it, and the record verifies afterwards. The
autostash applies to every file of the clone, and the fix, the doctor and the question say so; a setting of the same
name you set otherwise (merge.autoStash=false) is left as it is and nothing is written. The driver is now named by
the absolute paths of the installation that wrote it (it ranmnemabyPATHbefore).mnema initasks the
question in a repository with a remote (default yes, shown in the plan as foursetrows;--git-pull yes|no
answers it,--yestakes the default,--all-hostsand a founding with nobody to ask write nothing without
--git-pull yes). One case git does not stop on is a fork: the pull exits 0 and the local side stays only in the
stash.mnema status("Kept aside by a pull") andmnema doctornow say so, in one sentence, whenever an autostash
holds files of a tail or a tail file is in conflict in the index. -
A page says what 0.1.6 is expected to bring (ADR-152).
docs/what-0-1-6-is-expected-to-bring.md, on the site and in the README's
Docs list, groups the plans by theme (using mnema alone in a repository whose team has not adopted it, the guided backup, the grades of
the relations and the guided first recording, the record page, what moved from 0.1.5, and the next measurement block), each line
worded as expected and linked to the accepted decision that holds it (ADR-120, ADR-131, ADR-140, ADR-141, ADR-144, ADR-160, ADR-178,
ADR-179). They are plans and not promises, and no date is given. A guard holds that every decision it cites is in the committed
record, public and accepted, that a line carries a link, and that the page says neither "will" nor a date. -
Every surface says where a newer mnema wrote (ADR-140). A line of a kind this mnema does not know is read past and
left out of every reading, which until now no surface said: a line that moved a decision was invisible.mnema status
prints one line when any exists (andstatus --jsoncarriesnewerLines, the count and the kinds),mnema brief
prints it on the error stream and the copy a hook hands a session counts it among what has to fit,mnema show <id>
andread_recordsay it for the record a line names as its subject,bootstrapcarries it beside its payload, and
mnema doctorlists it. It counts the lines, names at most three kinds, says this binary applies none of them, and
says to update mnema and not to guess what they say; it does not name the mnema that wrote them, because nothing in the
record says which. Nothing is said, and no output changes, over a record no newer mnema wrote into. The projection
cache keeps the lines it read past beside its frontier, so saying it costs no second reading. -
mnema initasks on a screen, and shows everything it will write before it writes any of it (ADR-174, ADR-173).
At a terminal it prints what it found around the folder (the repository and its branch, the files and folders of the
agent hosts in use, the decision files the record has never read, a declared formatter), then asks which agent hosts
should read the mnema instructions on the screen the bare name draws (arrows, Space,a, Enter, Esc; the hosts found
are checked, every host where none was; each host shows the files it gets and whether each is new or yours), whether an
agent may accept what you choose, and shows the plan once: what it creates, adds to and records, in the repository and
on this machine only, with one confirmation. Nothing is written before it, and Esc, Ctrl-C, Ctrl-D andLeavefound
nothing and exit 0. The summary keeps the whole identity on a line of its own, puts the backup key first among the next
steps, and gives the install commands of the hosts chosen. ACLAUDE.md,.claude/CLAUDE.mdorGEMINI.mdthat
exists is a mark of its own, as it is inmnema instructionsat a terminal: left unchecked, it is not touched (with
nobody to ask, it is written, as it was). The new flags:--hosts <list>(claude,cursor,vscode,codex, or
all,detected,none),--yes(no question, no confirmation),--dry-run(prints the plan and writes nothing),
--accepts yes|noand--which;--all-hostsstays and asks nothing at all. The answer to the question about agents
accepting is recorded in the public tree as a decision of the person's, accepted by them (anoalso records the switch
that refuses an agent'saccept); an agent that gives it with--whichrecords its own proposal, which waits for the
person;--yesnever answers it. With no terminal, and with none of these flags, the lines are the onesinithas
always printed. A person's file left unchecked stays left out (ADR-177):mnema instructions --check,mnema doctorandmnema instructionswithout a terminal say so in one line and no longer ask for the block in it. A file the write would refuse (read-only, a directory in its place, no permission on its folder) is shown by the plan asleavewith the reason, and whatinitsays of it namesmnema instructions --hosts <host>, the form that adds the block to that file once the permission is fixed and writes no other file;mnema instructionstakes--hostsasinitdoes. The question by number (HOST_FILES_NOT_UNDERSTOOD) is gone: an answer cannot be off the list now. -
mnema status,mnema doctorand the end of a session say the events of the record that no git commit holds yet
(ADR-104). Measured in this repository, an event waited 10.8 h on average for the commit that carries it and 78
were waiting at once, and nothing said so. Per tail of the committed tree it counts the lines above whatHEADholds
(a tail git does not track co...
v0.1.4
Added
-
mnema initasks, at a terminal, which files an agent host reads the mnema instructions are written into. The question
comes before the founding and listsAGENTS.mdand the three rule files of mnema's own (Claude Code, the.github/instructions
file for VS Code and Copilot CLI, and Cursor) with the hosts that read each, asdocs/cli-reference.mdnames them: Enter
writes all four, numbers write those, an answer not on the list is asked once more and then refused (HOST_FILES_NOT_UNDERSTOOD)
with nothing written, and Ctrl-C or Ctrl-D founds nothing, writes nothing and exits 0 (the project and the home are byte for
byte as they were). With no terminal (a script, a pipe, an agent's shell), with--all-hosts, and in a project already
founded, nothing is asked: the output of a founding without a terminal is the one it always was. ACLAUDE.md,
.claude/CLAUDE.mdorGEMINI.mdthat already exists still gets the block whichever files were chosen.
The files on disk are the choice.mnema doctor,mnema instructions --checkand--removelook at the offered files
that hold the instructions, and say the others are missing only when none of the four does;mnema instructionsupdates
those, and where none holds them it asks the same question at a terminal and writes all four without one.
mnema instructions --all-hostswrites all four whichever are there. What this costs: a file of yours with no block does not
count as chosen, so with two or more chosen, taking the block out of one of them is not reported bydoctor(the others
still hold it); with only one chosen, taking it out is reported, anddoctornames all four. A pseudo-terminal counts as
a terminal.initasks when standard input and standard error are one, and no host leaves a variable in the shell of its
agent that this project has measured (the environment read is the MCP server's, and Codex and OpenCode leave none of the
marks looked for), so an agent whose shell is a real pty (an editor's integrated terminal, a node-pty) would wait at the
question: an agent that runsmnema initthere passes--all-hosts. The instructions block, versioned, says nothing
of it. Measured on the built binary under a pseudo-terminal: Ctrl-C and Ctrl-D at a question reject the read with
ABORT_ERRat once, and the sharedaskgained one line,process.stdin.ref(): the menu the bare name draws leaves
standard input unreferenced, and the question asked after it (mnema, then "establish a project here") ended the process
with exit 0 in the middle of the question. The verbs that already ask (decision review) still end with "Aborted with
Ctrl+C" and exit 1. -
The record says when no client announced the agent's name. A client that never sends
initialize, as the MCP
2026-07-28 revision allows, or whose handshake names nobody (no name, a blank one) is written under the server's default,
unknown-agent, and until now that read exactly like a name a client announced, and like a client announcing that very
word. The run such a connection opens now carries a new kind,run.unannounced(payload.handshake: whether a handshake ran
at all), appended in the same append as itsrun.started, with the run as its subject; it marks the run for
the key that signed it and no other, and only where that key'srun.startedopened the run; the run's facts are its own
facts, itsrun.endedincluded, and two marks of one run mark it once whatever theirhandshakesays
(FORMAT.md§6.9). A name a client announced, the word
unknown-agentincluded, writes no mark and no new bytes, and neither does a write an agent key signs.mnema show, the
opening document,mnema audit accountability(and theaudit_accountabilitytool, asunannouncedbeside each agent's
count) and the record page say no name announced in an MCP handshake beside such a name;mnema verifycounts those facts
apart from the declared names, asunannounced-which, with a clause in its verdict line, and the second reader says the same
counts under §6.9. The published vectors are 39. The cost, for a binary from before this kind: mnema 0.1.3 refuses a
record that holds a mark by naming the kind, and that refusal is not a note: itsmnema verifysayslocal integrity FAILEDand exits 1, the whole tail that holds the mark UNREADABLE to it, in the public tree or the private one, wherever
the run was written; itsmnema brieffails in a clone that holds one, and a GitHub Action pinned to 0.1.3 goes red on
every pull request of that repository. Upgrading the binary is the way out. The mark is born only of a client that sends no
handshake or announces a blank name in it, and none of the hosts whose handshake is measured (Claude Code, Codex, the
Copilot CLI, Gemini CLI, OpenCode) does that today: each sendsinitializewith a name, so a repository whose agents run
in them writes no mark, and 0.1.3 keeps reading it. VS Code's agent and Cursor are not measured. -
A recording of
verifycatching a changed word.recordings/a-tamper-caught.shrecords a decision, accepts it, runs
mnema verify(green), changes one word of the decision in the record's own file withsed, and runsverifyagain: the
verdict islocal integrity FAILED, the issue isentry hash mismatchat the event, and the exit code is 1. The README's
"Watch it" shows it beside the first record, the proof on the site's landing now shows it instead of the write refused, and
docs/what-it-proves.mdshows it under what holds, with the caption that a cut taking the newest events together with their
checkpoint is not caught. The site carries every GIF ofrecordings/, so a page ofdocs/can show one. The suite runs the
script again against the built binary and holds its screen to the cast, and holds that this one shows the failure. -
A recorded decision offers its address and its replacement, and does neither. In the comparison of 27 October the 40
decisions an agent recorded carried nogovernsaddress, and one session left a draft and its refinement in force together.
After "Recorded decision ADR-n (id)", the reply ofrecord_decisionnow lists the paths of the project this connection was
asked about (governing_rules, and the editsrules_before_an_editwas handed; at most ten, the latest first, kept in memory
only) with thelink_knowledgecall that would address the decision at the latest, andmnema decision record <title> <rationale>and the tool
both name each decision the new one cites (a full id or anADR-<n>label) that a supersede could replace, with the call that
would replace it:decision_transitionin the tool,mnema decision supersede <old> <new> --reason "..."on the command
line. One function reads the citations for both doors; a decision is offered only the decisions of the tree it landed in (the
gate finds a successor in the tree of the decision replaced, so a call across trees would be refused, and a public decision
is offered no title out of a private one); at most five are named and the rest counted. Every value the tool's call quotes is
written as JSON, so a path with a quote or a line break is linked as exactly that path when the call is made as offered.
Nothing is linked and nothing is moved by recording, and the command line, which has no connection, offers no address.
What it costs: after one consultation of one path, the reply ofrecord_decisiongrows from 240 to 436 bytes (the offer is
196), and each further path adds its own length and a comma. No kind, field or event changes, and no tool description. -
read_record,showand the opening name the decision a decision replaced. They handed backsupersedesas a bare id,
and in the comparison of 27 October the sessions that read the record through the MCP tools did not tell the story of a
replacement in 2 of 2, while those that opened both ids by hand told it in 2 of 2. The link is now named, by one reading shared
by every door, with the label, the title and the state the other decision is in now:read_recordandshow --jsonadd
supersedesandsupersededByas{ found, id, adr, title, state }beside the raw ids inrecord(found: falsewith theid
alone when no tree read holds it, said and not left out),showprintssupersedes ADR-<n>: <title> (<state>) · <id>and
its twin, and a decision in force that replaced another carriessupersedesin the opening's JSON and ends its line in the
committed brief document withsupersedes ADR-<n>: <title> (<state>): one more field of the same line, so a rule is still one line.
Only the immediate decision is named, never the chain behind it and never its rationale. Nothing about the record changes: no
kind, field or event, and no tool description. -
governing_rules, the rules pushed at an edit and the record page name the decision a rule replaced. The previous entry
named it inread_record,showand the opening, and left three doors that tell the same rule without it. A rule that
replaced another now carriessupersedesas{ found, id, adr, title, state }in each rulegoverning_ruleslists, and ends
the line the rules pushed beside an edit (and the rules file written for another host) withsupersedes ADR-<n>: <title> (<state>), in the same words and the same reading as the opening, still one line per rule. In the record pagemnema site
writes, the two links of a decision that replaced or was replaced by another now carry the other decision's title and state
after the label, and say(not in the trees read)where the page does not hold it. What it costs where bytes are counted: a
rule that replaced nothing adds nothing; a rule that replaced one adds about 36 bytes plus the replaced title, 89 to 252 bytes for
the six replacements this projec...
v0.1.3
Added
-
The VS Code extension is published to the Visual Studio Marketplace and to Open VSX as
mnema.mnema. The release workflow
packs the.vsixonce in a job that holds no secret, checks that the manifest inside is one a store takes (publisher
mnema, notprivate, an icon, a category, keywords, a banner, marked preview, a changelog and a one-line description that
promises nothing the command line does not print), installs that very file into a real VS Code to see the extension start,
attaches it to the GitHub release and publishes the same file to both stores from one job that asks for the
extension-storesenvironment, so a person approves it. The two store command lines are installed from a committed
lockfile withnpm ci --ignore-scriptsin a step that holds no token, and each store is published to with--skip-duplicate
so a run that stopped halfway runs again. The icon is drawn by the build from the
banner's cube, not kept as a binary. The publisher id moves fromfelipesauertomnema, so the id ismnema.mnema:
uninstall the 0.1.2 file installed by hand (felipesauer.mnema). The extension still needs themnemacommand of
@mnema/code. The guard that refused every publish now allows exactly that job and refuses a publish command or a store
token anywhere else, in another job, or in that job without its environment (ADR-76, ADR-77). -
The VS Code extension tells a missing
mnemacommand from nothing pending, and its status bar has an icon, a label and the command's own words. The extension asksmnema --versionfirst; a command that cannot be started, does not answer asmnemadoes, or is older than 0.1.2 sets the context keymnema.cliMissing: the views say the command is missing and how to fix it (install@mnema/code, or setmnema.command) instead of "nothing is listed", nothing else is asked of it, and the status bar says "command not found" and opens the setting when clicked. The bar carries a codicon that follows the verdict (never a check mark or a seal), an accessibility label and the role of a button, and its tooltip is the textmnema verifyprinted, then the channels off. The bar reads the record's own verdict (record.okofmnema verify --json, not the topok), so an altered record or an empty.mnemashows the error icon and "verify failed";mnema.commandis read again at every refresh and when it changes, so a corrected setting needs no reload; a command that did not answer in 60 s is said so, not called "not found". A walkthrough of three steps (make the command available,mnema init,mnema verify) is added. The check that installs the packaged file in a real editor now opens three folders: with no.mnema(measured: opening the folder does not start the extension, so it runs nomnema; opening one of its views or running one of its commands starts it, and then it does), with a.mnemaand a command that does not exist, and with a real record.plugin/captures/vscode-extension-script.mdis the script for what no CI sees (hover, menus, themes, a screen reader). -
A rule the project inherits reaches the path it addresses. The record named in
.mnema/inherit.jsonwas read only for
the brief, and only as titles. Its decisions in force are now read whole (rationale, alternatives, state, who accepted, and
their addresses undergoverns,asks-for-a-personandrefuses-a-write), andmnema rules,mnema why, the
governing_rulestool and the gate before a write (the MCP tool andmnema before-a-write) list an inherited rule beside the
project's own, each sayinginherited from <origin> at <commit>; neither is chosen over the other. What a line calls
inherited is the ADDRESS: the record that wrote the link, not the one that holds the rule, so a link the origin holds to a
rule of the project is the origin's address for the project's rule and says it was inherited. One that refuses or asks
applies as the project's would, only where it addresses the path (a write that creates a file under it included), and its
sentence says the rule is addressed here by the record this project inherits; a refusal by a rule only the origin holds
names the clone it opens in, sincemnema show <id>finds nothing here. An inherited address that names nothing in this
project is not a stale address here.mnema rulescounts "in this project" the project's own record alone and the inherited
addresses on a line of their own, by relation;mnema briefcounts the rules the inherited record places at an address
(govern, ask for a person, refuse a write) after the project's own counts, and says those are the project's alone. A
record that does not verify at the pinned commit governs nothing, andrules,whyandgoverning_rulessay so. The
switches stay the project's own. The verdict is kept for the life of a process; a project that inherits nothing pays one
file test. Known limits: thechannel.refusedorchannel.askedthis project records cites only the rule's id, not that
the address was inherited nor the origin and commit (and the id of a rule only the origin holds does not resolve here);
mnema rules-file, the commit hook andmnema agingdo not read the inherited record, andmnema showof a rule of the
project does not list the addresses the origin holds for it. -
The VS Code extension's commands have icons and short titles, and an empty view says what it means. Every command carries a codicon, so the
accept and reject buttons beside a decision and the add buttons of the stacks view are icons instead of the title's text, and the
titles are short (mnema: Accept Decision,mnema: Add Stack); the command ids are unchanged, so a keybinding still works. The
Command Palette lists them only where a workspace folder is open, andmnema: Show File Rulesonly over a file. Each of the two
views has a text for a folder with no.mnema(it points tomnema init) and for a folder with one and nothing to list (the
decisions view also links to themnema.commandsetting; the stacks view says no stack is adopted only whenmnema stack listwas read, offers the two ways to add one, and says it has not listed the
stacks when the command failed); which of the two applies is read from the disk. The two settings are described in markdown. A test now reads the manifest and holds all of this,
and the check that starts the packaged file in a real editor reads the command list from the manifest it installed instead of
from a second list. The buttons are grouped by meaning (accept beside reject; show, compare and check beside a stack, export in
the context menu and remove alone in its last group; refresh in both title bars), and every input box and choice has a title, a
placeholder that says what to type and stays open when focus moves. -
Qwen Code opens its sessions with the record and refuses a write a rule refuses. Installed as an extension
(qwen extensions install /path/to/mnema/plugin, which converts the Claude Code plugin), Qwen Code runs the plugin's
hooks file: the opening arrives in the system instruction of its first request, the server's tools are listed to the
model, and awrite_fileor aneditwhere a rule refuses is not made and the model reads the rule. The command that
refuses is new inhooks/hooks.jsonand starts only whereQWEN_PROJECT_DIRis set, which Qwen Code sets for every
hook (it also sets the variables of Claude Code and Gemini CLI, so neither can tell it apart). It refuses and nothing
else, so a rule that only asks for a person is let through, andmnema before-a-write --hosttakesqwen. Held by a
contract that starts the real Qwen Code 0.26.1 against a stand-in for its model, with no account, in a new job of the
host contract. Qwen Code defers the server's tools, so, unlike the other four, no file pins the weight of the 27
definitions it sends. Not run: an interactive session,notebook_edit, and what the plugin's other hooks (the count at
the end of a response, the subagent hooks) do under it. -
A compacted conversation is handed back what entered the record while its session ran. A new
SessionStarthook under thecompact
matcher runsmnema recall --after-a-compaction --session <id>, which prints one sentence (about sixty to a hundred and
twenty tokens) read from the session's journal: the decisions that entered the record (read from the record since the session opened, by label and in the state they have now, so one recorded in the middle of a turn is there), the notes copied, the questions
answered with no decision after, the files its calls wrote. A count and the record's labels, none of the session's words. It counts the decisions that entered the record since the session
opened (a pull or another session's included, and the sentence says so), names five at most withand N more, and a label that
two trees both number says its tree, asADR-1 (private); the notes' section on where the last session stopped says the same of its decisions.
ThePreCompacthook is gone: Claude Code discards what a hook says before a compaction, somnema tallyno longer
answers that event. A new switch,after-a-compaction, on by default, stops the sentence. -
mnema recallsays where the last session stopped. When another session that has stopped (its connection ended, or its
journal has been quiet for 15 minutes) left a session journal on this machine in the last 24 hours, the notes open with a
few lines (about a hundred tokens): how long ago it stopped, whether it wrote to the record (only a decision, a note or a
task moved counts; a session that only edited files is said to have written nothing), its goal, the decisions it recorded by label and state, and what it left (files edited, files of decisions cited
nowhere, questions answered with no decision after, tasks in progress). The...
v0.1.2
Added
- After a write in Claude Code,
mnema after-a-writecopies a note of the host's own memory into the private tree,
and names the door of a file that holds decisions. APostToolUsehook onWrite|Editruns it behind a shell that
reads the path out of the payload and starts nothing for any other path (about 6 ms per common write on a loaded
machine). A note under this project's own memory directory in Claude Code (projects/<project>/memory/*.md, with<project>the
main working tree's path as the host names it, so every worktree of a repository shares it, under$CLAUDE_CONFIG_DIRor
~/.claude, or whereautoMemoryDirectorypoints in your own settings or the project's.claude/settings.local.json)
is recorded as a memory in this machine's private tree, with a marker naming the file and a hash of its content, once
per content, under a new channel,host-memory-mirror, which starts ON (mnema switch off host-memory-mirrorstops it):
the one channel that writes without a verb and begins on, by a recorded decision. A note in
another project's directory, the indexMEMORY.mdand a note oftype: userare never copied, and nothing goes to the public tree. A file under
docs/adr/,docs/decisions/or anadr/directory, or aCLAUDE.md,AGENTS.md,GEMINI.md, host rules file,
plan, handoff or ledger whose new lines open asRuling:,Decision:or a correction does, gets one line naming
mnema decision import <the directory or file>orrecord_decisionwhen the record cites it nowhere, once per session and file; it records
nothing, andmnema switch off decision-file-writtenstops it. The line atStopnow also counts the notes copied
since the session opened.readHostMemoryin@mnema/coreis the one reading of a memory file, for this and for
decision import --format claude-memory. Two limits are known and left as they are: a project path longer than 200
characters is compared by its first 200 (the host cuts the name there and adds a hash this does not compute), so two
such projects that share those 200 are not told apart; and the name pattern*plan*.mdalso matches a name such as
explanation.md, whose new lines still have to open as a decision does before any line is given. - The record carries an
.editorconfig, andmnema doctorand the brief warn of the other tools that would rewrite it..mnema/.editorconfig
setsinsert_final_newline,trim_trailing_whitespace,end_of_line,charset,indent_styleandindent_sizetounset
(noroot = true, so nothing else of the folders above is cut); it is written where the README is (the founding, theinit
that completes a founded project, and the first signed write that grows a record with none), never over an existing file and
never by a read or a refused write, and it is not part of the proof (FORMAT.mdsection 4).mnema doctorand the hook's brief
also name a.pre-commit-config.yamlwith a rewriting hook, a Biome, dprint or lint-staged configuration that does not leave
.mnema/out, each with the line to add, and say when a file could not be read well enough to confirm; none of those files is
edited. The.prettierignoreis now written where prettier is declared: the project's own directory or the nearest one above it up to
the git root, instead of the git root alone. - After a question the agent asked the person is answered, the agent is told which tool records the choice. A new verb,
mnema settled, answers a hook after the host's question tool ran with one sentence of fact beside the answer: that a
question was answered, thatrecord_decisionrecords a choice it settled with the options not taken asalternatives,
and that nothing was recorded from it. It records nothing and reads which tool ran, never the answer. The plugin declares it
as aPostToolUsehook onAskUserQuestion, behind a shell that starts no process for any other tool (VS Code runs the
plugin's hooks whatever their matcher says); the hooks files of Codex (request_user_input), Copilot CLI
(AskUserQuestion), Gemini CLI (ask_user,AfterTool) and OpenCode (question,tool.execute.after) carry the same
hook, documented and not measured. A new channel,choice-settled, is on untilmnema switch off choice-settled. Held in
Claude Code against the real binary, where the sentence arrives inside the question's result. - With
user-correctionsswitched on, the answers the person gave to the agent's questions are proposals too. At
Stop, besides the openings that correct,mnema correctionsrecords the option the person chose in the host's question
tool (read from the result the host writes in the transcript, which the reader passed over before) and the prompt typed
right after a response that ended in a question mark, each quoted with its question, as aproposeddecision in this
machine's private tree, titledAnswer: …, with an email address in the title replaced by<email>as in the body. An
answer that only assents or refuses ("yes", "ok", "go ahead", "pode") is not recorded. The channel is still off until
somebody switches it on. - A subagent that begins is handed the brief of the session. The plugin gains a
SubagentStarthook that runs
mnema brief --hookand hands the document to the subagent as it starts, byte for byte what the opening hands the session,
under the event the host routes the reply by. It is the opening's channel and the opening's switch (mnema switch off brief-documentstops both), and it is silent where there is no project. It is held against the real Claude Code binary; VS
Code documents the event and reads the same hooks file, and was not measured on it. docs/evidence.mdcarries a presence map. For each host and each moment of the work (a choice settled with the person, the
host's own memory, a plan or decision file, the opening, an edit, the end of a response, a subagent's start and stop) it says
whether the host offers something the plugin could ride, and how that is known: held by a test, documented and not measured,
no channel, or not read. It is generated from the host table, and a copy edited by hand is red.- A project founded before the README completes it on its first signed write. The first write to a public record that has no
.mnema/README.md(any verb, or any MCP tool) leaves the same pagemnema initleaves and says so in one line, on stderr for a
verb and in the tool's reply for the server. It is made only after the record grew: a read, a refused write and a write to a
tree that does not travel leave the folder as it was, and a README that is already there is never replaced. Only the README is
written this way, and only inside.mnema/: the.prettierignoreis still edited bymnema initalone. The session brief
(mnema brief --hook, never the file a person redirects it into) gains one line wheremnema doctorwould add the line.mnema/to the
.prettierignore(the same function), saying the formatter can rewrite the signed record and thatmnema initprotects it. mnema decision reviewgoes through the decisions awaiting a judgement, one by one, at a terminal, with no id to copy. It
lists what isproposedin the ordermnema statuslists it, shows each one's ADR, title, reason and what it turned down,
and asks: accept, reject, skip or quit. It asks for one note at the start (the default says the date and that it was reviewed
with the verb), used for every verdict unless a note is written after the letter, and ends with how many were accepted,
rejected and skipped. Each verdict is the movedecision movemakes, through the same gate, key and refusal codes; a refusal
on one decision is said and the review goes on. It is a person's: it signs with your own key, refuses--which, and says
whenMNEMA_AGENT_KEYis set that it does not use it. Without a terminal it writes nothing, refuses with
DECISION_REVIEW_NEEDS_A_PERSONand prints thedecision move accept <ids> --notecommand that rules the same
decisions; with nothing awaiting, it says so and exits 0.- A plugin and a
mnemaof different versions now say so. Amnemaolder than the plugin is the pair that breaks: the
plugin may ask it for something it never learned, and a refused hook was silence. The hook that opens a session now compares
the versionmnema --identifyanswers with the plugin's own and, when the binary is the older, adds one line after the
document (or alone, where the binary printed nothing) saying the two do not match and giving the command that fixes it,
npm i -g @mnema/code@<the plugin's version>. The hook still exits 0 and blocks nothing.mnema doctorsays the same for
the plugin Claude Code lists as installed, in the direction that applies: a binary older than the plugin gets thenpm
command, and a binary newer than the plugin (which works) getsclaude plugin update. A binary newer than the plugin adds
nothing to the session. mnema initleaves aREADME.mdin.mnema/and keeps prettier away from the record. The page says what the folder is,
that the record changes with the work and each change goes in the same commit as the work it describes, that nothing in it
is edited or reformatted, that the private keys are not there, and how to verify it. It is not part of the proof: both readers
ignore it, andFORMAT.mdsection 4 lists it beside.gitignore. Where the repository has a.prettierignoreor declares
prettier (a dependency, aprettierkey inpackage.json, or a.prettierrc*at the root),initadds the line.mnema/
to the.prettierignoreat the root of the repository, creating it only when prettier is declared, and says so; a repository
with no prettier is left as it is. The session brief gains one line saying that recording changes.mnema/and tha...
v0.1.1
Changed
- The install is
npm i -g @mnema/code. The README, the install page, the package pages,mnema doctorand the
plugin's hand-over hook no longer say that nothing is on npm or that the install is from the source; the source build
moved todocs/build-from-source.md, for whoever wants themainbranch. The five published packages' pages carry a
badge with the version npm serves, and one test holds the install line to the page.