Skip to content

Releases

v0.1.10

Choose a tag to compare

@github-actions github-actions released this 23 Nov 17:41
4410f1b

Added

  • A decision is recorded with the paths it governs, in the same act. The --governs <path> flag of decision record (repeatable)
    and the optional governs list of record_decision write the decision and one governs link 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 a governs link
    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 of record_decision changed, 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 doctor reads. 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,
    code and syscall, 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 over swallowed.1.jsonl under a lock, two files at most), is mode 0600, is made nowhere a machine has no key of
    its own yet, never leaves the machine and is not copied by a backup. mnema doctor reads 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 -- .mnema is empty); an exclude over files git tracks, a global
    core.excludesFile included, leaves the record committed. backup run now copies the public tree of a local record,
    backup status and backup verify read it, and backup restore brings it back into a project whose .mnema/ folder is gone
    (what git clean -fdX does 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; and mnema 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 an ADR- 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 --private asks for it, and none is proven from a record verify calls broken. The format is
    FORMAT.md section 9, with proof-vector.json as 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 a UserPromptSubmit hook (Claude Code and Codex) and by a BeforeAgent hook (Gemini CLI's
    extension). It reads the prompt the 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_decision records it, decision_transition
    accepts it with a note quoting the person's own words (a person accepts it, where agent-accepts is off), and nothing has been
    recorded. The agent judges whether the message is a rule. It records nothing, is on until mnema 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) while dictated-rule is 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 way cosign verify-blob does. 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 from checkpoints.jsonl, named by its SHA-256) and prints the exact cosign verify-blob line 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 SubagentStop hook that
    runs mnema handback was wired for Claude Code alone; codex.json and copilot.json now run it, and mnema handback takes
    --host claude|codex|copilot to 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 mnema for 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-sea writes it) folds the CLI into one file that holds its own Node, to run the record verbs, verify and the merge driver on a machine where the first node on the PATH is missing or too old (the plugins' hooks still start with node). It is unsigned and Linux only, and ...
Read more

v0.1.9

Choose a tag to compare

@github-actions github-actions released this 21 Nov 18:25
4a5b241

Added

  • A git repository as the destination of a backup, and mnema backup hook. mnema backup setup accepts a git
    remote (or the folder of a bare repository) in place of a folder. run keeps 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). verify and
    restore read the destination as they read a folder, after bringing the clone up to the remote. Every git it starts
    runs with no inherited GIT_* variable and GIT_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 | uninstall adds, only when asked, a post-commit hook that runs the backup in the
    background (refused where core.hooksPath is inside the working tree; a shell hook already there gets a marked
    block, and uninstall takes out only what install put). See
    What a backup keeps, and what it loses.
    status and verify say how many commits of a git destination did not go up (verify fails while any is left), a
    divergence is refused with the way out named, and two runs never interleave in the clone.
  • mnema backup verify and mnema backup restore. verify reads 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, a tailproof.json that 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 issue or help wanted issue to the outside contributor who comments a claim on it, and frees it after 14 days without a pull request. /take, /claim and 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 restore asks about a copy of another record, and --undo puts 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, and mnema backup restore --undo moves it back, keeping what stood there. No restore deletes that folder: it stays until the person deletes it,
    --undo puts back the newest, and backup status lists 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).
  • mnema with no arguments, the first time on a machine and at a terminal, opens a tour of four pages in place of the menu, and mnema tour opens it again. The pages say what the record is, what mnema init chooses 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 in machine-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 terminal mnema tour prints the same pages as text and writes nothing, and the bare name there is the summary it was. mnema repl does not offer tour.
  • 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:contribution prints 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 in HEAD (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 neither checkpoints.jsonl, keys/, tailproof.json nor 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 name mnema tail repair <tail>, and keep "update mnema if a newer one wrote the line".
  • mnema backup run copies 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 run copies, and backup 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 separate workflow_run workflow,
    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 by actions/attest after the publish and after the
    extension is packed. gh attestation verify <file> --repo mnema-work/mnema checks a downloaded file against it. The
    publish job also names the npm registry in its setup-node, which changes nothing in how it authenticates (OIDC, no
    token).
  • mnema backup restore of 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_HOME when set), with no colon in the name, and the same question at a terminal, the same mark,
    the same --undo and restored-<tree>/ rule, the same listing in backup status and one lock for the place. No restore deletes
    a folder kept there: you remove it by hand, and backup restore --help and the backup page say where it is. A project in git keeps
    its place in ...
Read more

v0.1.8

Choose a tag to compare

@github-actions github-actions released this 11 Nov 18:37
001f790

Added

  • A reference page for each command and each MCP tool. docs/reference/cli/ has one page per command of mnema,
    made from the help the command prints, and docs/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 --json says each tree in a line. Every tree of the reading has a headline: the text of the line the
    console's panel shows for it (the level clause of a tree that holds a record, no record here for one that does not), made
    by the same function as the panel, so the two cannot say two things; a short, 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 a SOURCES.md beside 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 handoff command, record_handoff,
    observe and record_observation used 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_TASK for a handoff, UNKNOWN_RECORD for an
    observation, AMBIGUOUS_RECORD where 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 as UNKNOWN_TASK too. The command
    line looks in the trees of its own project; the tools look in every project the client
    announced. The link command is unchanged: it records the edge and says when it names nothing a reader can open.
  • mnema search and the search tool name the other end of a replaced decision. A decision hit that was superseded
    carries superseded by ADR-n: <title> (<state>) · <id>, and one that replaced another carries supersedes ...,
    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). --json and the tool's result gain the optional supersedes and supersededBy on a decision
    hit, shaped as in show.
  • 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, as record_decision does, 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 private in 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 of docs/cli-reference.md moved: 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 run mnema 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 verify text it held, cut at six
    lines (the private tree's line was the one that fell out), is replaced by the short line verify --json carries for each tree (plain words; the T1/T2/T4 terms 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 command mnema: Show Full Verification, which runs mnema verify --verbose and mnema switch
    when it is clicked and shows them in an output channel. A reading no longer runs a second mnema 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, empty checkpoints.jsonl and fix the note of the last entry in locks/, 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.jsonl is 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 to mnema verify and 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. verify names 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>.head and the signed locks/<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, and mnema verify --require=signed failed 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 under locks/, 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 by fromSeq before it checked their chain, so two lines of checkpoints.jsonl swapped, each
    as it was signed, passed --require=signed while 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 under tails/ was skipped by mnema 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...
Read more

v0.1.7

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:03
365ec8c

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 mnema command starts in about half the time. The bin of @mnema/code is now dist/bundle/cli.js, one
    bundle of the command and of the code it reaches, its dependencies included (all but string-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 --version 179 to 91 ms, verify 197 to 110 ms, decision record 246 to 153 ms, brief
    (what the session hook runs) 208 to 119 ms, and the MCP server's reply to initialize 308 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 and npm audit signatures still checks them, but
    the command does not load them. The package now carries THIRD-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 compiled dist/cli.js is 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 labelled private ADR-<n> with
    its id, never the bare label, since the private tree numbers its own and its ADR-1 is not the committed ADR-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-rules gives back the line that only counts them. The file
    mnema brief prints 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 private that refused a write
    or asked for a person used to leave its channel.refused or channel.asked in 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 from decision_transition, now names the decisions the rejected one had replaced: they stay
    superseded, so nothing is in force on that subject.
  • show and read_record name every decision a successor replaced. A decision that superseded two or more
    printed only the last; it now prints a supersedes line 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 that mnema verify lists every such line. There is no command that repairs a line.
  • rules and why say when the rules are not pushed. With edit-rules-push switched 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 commit carries the record's README when mnema itself rewrote it. A project founded with an older
    .mnema/README.md has it replaced by the current page at the next write, and the commit that record commit cut
    left that file out, so the rewrite never reached git through it. The commit now carries the README.md and the
    .editorconfig of .mnema/ when their bytes are exactly the text this mnema writes; a page you edited stays out
    and is still named as left out.

npm: https://www.npmjs.com/package/@mnema/code/v/0.1.7

v0.1.6

Choose a tag to compare

@github-actions github-actions released this 07 Nov 22:50
e42fcc4

Changed

  • mnema lives in the organization mnema-work now. The repository is github.com/mnema-work/mnema (the old address
    redirects), and the install line for the plugins is mnema-work/mnema (claude plugin marketplace add mnema-work/mnema,
    and the same for Codex and Copilot CLI); the plugin is still mnema@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.md names security@mnema.work beside GitHub's private vulnerability reporting.
  • From the next release the MCP Registry entry is io.github.mnema-work/mnema. @mnema/code carries that mcpName
    and server.json that 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.md is 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 init says the Biome entries. In a repository whose Biome configuration does not leave .mnema/ alone,
    biome check . goes red after init on tailproof.json and, with Biome 2, on the front matter of the Copilot
    instructions file. init still 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), and mnema doctor and 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 private never 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 the mnema search --scope private commands that list them. Their text is not in it, and the file
    mnema brief prints is unchanged.
  • In a project with no git, the reply to a public write and the line mnema site ends with stop saying the tree is
    committed.
    Landed in the public tree: committed with the repository, so it reaches every clone is 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, and mnema site says
    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 commit finds the forge behind an ssh alias. A remote written as git@<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 from ssh -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.md was written only
    where it was missing, so a record founded before the move to mnema-work kept 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
    by mnema 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 changes docs/ 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, while agent-accepts is 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 accept and decision_transition on a
    decision that is accepted keep the refusal ILLEGAL_TRANSITION and 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 to key request --anchor of 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 tail was printed as soon as the writer moved to a new tail, so a refusal such as STALE_ANCHOR came 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 failing verify. It now sets aside only what the
    tree it reads refuses already.
  • verify --since and verify agree on a tail that holds only its proof. A tail directory with a tail proof and no
    segment holds nothing and names no record for verify; verify --since counted 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 named mnema on the PATH, so a working driver was called dead. It looks for the extensions PATHEXT lists.

npm: https://www.npmjs.com/package/@mnema/code/v/0.1.6

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 04 Nov 21:38
a6ceea2

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 a CLAUDE.md or GEMINI.md of 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 commit cuts 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, doctor and the end of a session now say how many events no commit holds yet.
  • Pulling a record that only grows. mnema record pull pulls over events not yet committed. Set up with mnema doctor --fix merge-driver (or by the new init), a plain git pull carries 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-accepts leaves 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.md was followed in 10 of 10 sessions, as in CLAUDE.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 pull carries the record's uncommitted events, in a clone set up for it (ADR-181, which amends
    ADR-163).
    mnema doctor --fix merge-driver now 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.autoStash and
    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 no mnema on the PATH) is said by mnema doctor and mnema status while an autoStash is on, and
    the fix replaces it. With them git pull,
    git pull --no-rebase, git pull --rebase and 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 ran mnema by PATH before). mnema init asks the
    question in a repository with a remote (default yes, shown in the plan as four set rows; --git-pull yes|no
    answers it, --yes takes the default, --all-hosts and 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") and mnema doctor now 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 (and status --json carries newerLines, 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>
    and read_record say it for the record a line names as its subject, bootstrap carries it beside its payload, and
    mnema doctor lists 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 init asks 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 and Leave found
    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. A CLAUDE.md, .claude/CLAUDE.md or GEMINI.md that
    exists is a mark of its own, as it is in mnema instructions at 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|no and --which; --all-hosts stays 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 (a no also records the switch
    that refuses an agent's accept); an agent that gives it with --which records its own proposal, which waits for the
    person; --yes never answers it. With no terminal, and with none of these flags, the lines are the ones init has
    always printed. A person's file left unchecked stays left out (ADR-177): mnema instructions --check, mnema doctor and mnema instructions without 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 as leave with the reason, and what init says of it names mnema instructions --hosts <host>, the form that adds the block to that file once the permission is fixed and writes no other file; mnema instructions takes --hosts as init does. The question by number (HOST_FILES_NOT_UNDERSTOOD) is gone: an answer cannot be off the list now.

  • mnema status, mnema doctor and 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 what HEAD holds
    (a tail git does not track co...

Read more

v0.1.4

Choose a tag to compare

@github-actions github-actions released this 29 Oct 14:45
cebc4e8

Added

  • mnema init asks, at a terminal, which files an agent host reads the mnema instructions are written into. The question
    comes before the founding and lists AGENTS.md and 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, as docs/cli-reference.md names 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. A CLAUDE.md,
    .claude/CLAUDE.md or GEMINI.md that already exists still gets the block whichever files were chosen.
    The files on disk are the choice. mnema doctor, mnema instructions --check and --remove look at the offered files
    that hold the instructions, and say the others are missing only when none of the four does; mnema instructions updates
    those, and where none holds them it asks the same question at a terminal and writes all four without one.
    mnema instructions --all-hosts writes 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 by doctor (the others
    still hold it); with only one chosen, taking it out is reported, and doctor names all four. A pseudo-terminal counts as
    a terminal.
    init asks 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 runs mnema init there 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_ERR at once, and the shared ask gained 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 its run.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's run.started opened the run; the run's facts are its own
    facts, its run.ended included, and two marks of one run mark it once whatever their handshake says
    (FORMAT.md §6.9). A name a client announced, the word
    unknown-agent included, 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 the audit_accountability tool, as unannounced beside each agent's
    count) and the record page say no name announced in an MCP handshake beside such a name; mnema verify counts those facts
    apart from the declared names, as unannounced-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: its mnema verify says local integrity FAILED and 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; its mnema brief fails 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 sends initialize with 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 verify catching a changed word. recordings/a-tamper-caught.sh records a decision, accepts it, runs
    mnema verify (green), changes one word of the decision in the record's own file with sed, and runs verify again: the
    verdict is local integrity FAILED, the issue is entry hash mismatch at 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.md shows 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 of recordings/, so a page of docs/ 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 no governs address, and one session left a draft and its refinement in force together.
    After "Recorded decision ADR-n (id)", the reply of record_decision now lists the paths of the project this connection was
    asked about (governing_rules, and the edits rules_before_an_edit was handed; at most ten, the latest first, kept in memory
    only) with the link_knowledge call that would address the decision at the latest, and mnema decision record <title> <rationale> and the tool
    both name each decision the new one cites (a full id or an ADR-<n> label) that a supersede could replace, with the call that
    would replace it: decision_transition in 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 of record_decision grows 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, show and the opening name the decision a decision replaced. They handed back supersedes as 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_record and show --json add
    supersedes and supersededBy as { found, id, adr, title, state } beside the raw ids in record (found: false with the id
    alone when no tree read holds it, said and not left out), show prints supersedes ADR-<n>: <title> (<state>) · <id> and
    its twin, and a decision in force that replaced another carries supersedes in the opening's JSON and ends its line in the
    committed brief document with supersedes 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 in read_record, show and the opening, and left three doors that tell the same rule without it. A rule that
    replaced another now carries supersedes as { found, id, adr, title, state } in each rule governing_rules lists, and ends
    the line the rules pushed beside an edit (and the rules file written for another host) with supersedes ADR-<n>: <title> (<state>), in the same words and the same reading as the opening, still one line per rule. In the record page mnema 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...

Read more

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 27 Oct 00:46
915906f

Added

  • The VS Code extension is published to the Visual Studio Marketplace and to Open VSX as mnema.mnema. The release workflow
    packs the .vsix once in a job that holds no secret, checks that the manifest inside is one a store takes (publisher
    mnema, not private, 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-stores environment, so a person approves it. The two store command lines are installed from a committed
    lockfile with npm ci --ignore-scripts in 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 from felipesauer to mnema, so the id is mnema.mnema:
    uninstall the 0.1.2 file installed by hand (felipesauer.mnema). The extension still needs the mnema command 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 mnema command from nothing pending, and its status bar has an icon, a label and the command's own words. The extension asks mnema --version first; a command that cannot be started, does not answer as mnema does, or is older than 0.1.2 sets the context key mnema.cliMissing: the views say the command is missing and how to fix it (install @mnema/code, or set mnema.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 text mnema verify printed, then the channels off. The bar reads the record's own verdict (record.ok of mnema verify --json, not the top ok), so an altered record or an empty .mnema shows the error icon and "verify failed"; mnema.command is 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 no mnema; opening one of its views or running one of its commands starts it, and then it does), with a .mnema and a command that does not exist, and with a real record. plugin/captures/vscode-extension-script.md is 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.json was 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 under governs, asks-for-a-person and refuses-a-write), and mnema rules, mnema why, the
    governing_rules tool and the gate before a write (the MCP tool and mnema before-a-write) list an inherited rule beside the
    project's own, each saying inherited 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, since mnema show <id> finds nothing here. An inherited address that names nothing in this
    project is not a stale address here. mnema rules counts "in this project" the project's own record alone and the inherited
    addresses on a line of their own, by relation; mnema brief counts 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, and rules, why and governing_rules say 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: the channel.refused or channel.asked this 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 and mnema aging do not read the inherited record, and mnema show of 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, and mnema: Show File Rules only over a file. Each of the two
    views has a text for a folder with no .mnema (it points to mnema init) and for a folder with one and nothing to list (the
    decisions view also links to the mnema.command setting; the stacks view says no stack is adopted only when mnema stack list was 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 a write_file or an edit where a rule refuses is not made and the model reads the rule. The command that
    refuses is new in hooks/hooks.json and starts only where QWEN_PROJECT_DIR is 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, and mnema before-a-write --host takes qwen. 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 SessionStart hook under the compact
    matcher runs mnema 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 with and N more, and a label that
    two trees both number says its tree, as ADR-1 (private); the notes' section on where the last session stopped says the same of its decisions.
    The PreCompact hook is gone: Claude Code discards what a hook says before a compaction, so mnema tally no longer
    answers that event. A new switch, after-a-compaction, on by default, stops the sentence.

  • mnema recall says 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...

Read more

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 21 Oct 15:11
3807579

Added

  • After a write in Claude Code, mnema after-a-write copies a note of the host's own memory into the private tree,
    and names the door of a file that holds decisions.
    A PostToolUse hook on Write|Edit runs 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_DIR or
    ~/.claude, or where autoMemoryDirectory points 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-mirror stops it):
    the one channel that writes without a verb and begins on, by a recorded decision. A note in
    another project's directory, the index MEMORY.md and a note of type: user are never copied, and nothing goes to the public tree. A file under
    docs/adr/, docs/decisions/ or an adr/ directory, or a CLAUDE.md, AGENTS.md, GEMINI.md, host rules file,
    plan, handoff or ledger whose new lines open as Ruling:, Decision: or a correction does, gets one line naming
    mnema decision import <the directory or file> or record_decision when the record cites it nowhere, once per session and file; it records
    nothing, and mnema switch off decision-file-written stops it. The line at Stop now also counts the notes copied
    since the session opened. readHostMemory in @mnema/core is 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*.md also 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, and mnema doctor and the brief warn of the other tools that would rewrite it. .mnema/.editorconfig
    sets insert_final_newline, trim_trailing_whitespace, end_of_line, charset, indent_style and indent_size to unset
    (no root = true, so nothing else of the folders above is cut); it is written where the README is (the founding, the init
    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.md section 4). mnema doctor and the hook's brief
    also name a .pre-commit-config.yaml with 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 .prettierignore is 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, that record_decision records a choice it settled with the options not taken as alternatives,
    and that nothing was recorded from it. It records nothing and reads which tool ran, never the answer. The plugin declares it
    as a PostToolUse hook on AskUserQuestion, 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 until mnema switch off choice-settled. Held in
    Claude Code against the real binary, where the sentence arrives inside the question's result.
  • With user-corrections switched on, the answers the person gave to the agent's questions are proposals too. At
    Stop, besides the openings that correct, mnema corrections records 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 a proposed decision in this
    machine's private tree, titled Answer: …, 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 SubagentStart hook that runs
    mnema brief --hook and 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-document stops 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.md carries 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 page mnema init leaves 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 .prettierignore is still edited by mnema init alone. The session brief
    (mnema brief --hook, never the file a person redirects it into) gains one line where mnema doctor would add the line .mnema/ to the
    .prettierignore (the same function), saying the formatter can rewrite the signed record and that mnema init protects it.
  • mnema decision review goes through the decisions awaiting a judgement, one by one, at a terminal, with no id to copy. It
    lists what is proposed in the order mnema status lists 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 move decision move makes, 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
    when MNEMA_AGENT_KEY is set that it does not use it. Without a terminal it writes nothing, refuses with
    DECISION_REVIEW_NEEDS_A_PERSON and prints the decision move accept <ids> --note command that rules the same
    decisions; with nothing awaiting, it says so and exits 0.
  • A plugin and a mnema of different versions now say so. A mnema older 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 version mnema --identify answers 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 doctor says the same for
    the plugin Claude Code lists as installed, in the direction that applies: a binary older than the plugin gets the npm
    command, and a binary newer than the plugin (which works) gets claude plugin update. A binary newer than the plugin adds
    nothing to the session.
  • mnema init leaves a README.md in .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, and FORMAT.md section 4 lists it beside .gitignore. Where the repository has a .prettierignore or declares
    prettier (a dependency, a prettier key in package.json, or a .prettierrc* at the root), init adds the line .mnema/
    to the .prettierignore at 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...
Read more

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 20 Oct 21:48
6afa2c5

Changed

  • The install is npm i -g @mnema/code. The README, the install page, the package pages, mnema doctor and 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 to docs/build-from-source.md, for whoever wants the main branch. The five published packages' pages carry a
    badge with the version npm serves, and one test holds the install line to the page.

npm: https://www.npmjs.com/package/@mnema/code/v/0.1.1