mex 0.9.0-beta.1: tell your agents once, and mex keeps it true
The first 0.9 beta rebuilds mex around notes: save a fact once and new Claude Code and Codex sessions get it, until the code makes it false. Machine-wide hooks, a free first screen, reviewed sharing and a previewed upgrade from 0.8.
You tell your agent that the tests run from the repo root. Next session, it has forgotten. You put it in CLAUDE.md, and three months later the config moves and the file is still saying the old thing, with full confidence, to every agent on the team.
mex 0.9.0-beta.1 is built around that problem. Tell your agents once; mex keeps it true. A note you save reaches new Claude Code and Codex sessions, and once the code makes it false, mex holds it back or points at the current code instead.
This is a pre-release on npm's next tag. mex 0.8.5 stays on latest, so nobody gets 0.9 without asking for it. The current build is 0.9.0-beta.1.1, a fix release on the same beta.
npm install -g mex-agent@next
Notes that reach every new session
01A note is a fact, rule or decision in your words, with its source, its reason and a check against the code.
cd your-repo && mex
mex note "Run the tests from the repo root because the config is there"
Start a new Claude Code or Codex session and ask about it. Run mex what to see exactly what reached that session.
- Agents keep what you ask them to. Each session tells the agent to save a lasting fact, rule or decision you state, or anything you ask it to remember, with
mex notein your words. A rule stated in passing ("we always use pnpm here") is quoted back to the agent for that turn. Agent-saved notes read[Claude Code noted, …]or[Codex noted, …]until youmex editthem. - One agent learns, the other knows. A note saved in Claude Code reaches Codex's rule files as soon as the session ends, and the reverse.
- Your words stay yours. mex keeps the wording of a note you wrote. When it thinks a note could be clearer, it proposes a new wording in
mex reviewinstead of rewriting it. - Everyday commands.
mex recall,expand,edit,wrong,forgetandcheck --diffcover finding, reading, correcting and retiring notes.
mex also picks up additions on its own. New package scripts, rule-file sections and agent memory reach the agents from the next session without running mex again. A session start asks for a background re-read at most every 30 minutes per repo, with no model call.
When the code changes, the note doesn't lie
02Every note carries a check. When a commit breaks that check, the note is held back instead of being served as fact. When the evidence behind it has moved, the agent gets a pointer to the current code instead of the old claim. mex note is checked the moment it is saved, and a note the code has made false no longer reaches the agent through mex's rule files either.
We tested this on Hono's real history: 46 claims over six checkpoints, deterministic, no model involved. Up to 15 of those claims had been made false by the code at some point, and none of them was delivered in full at any checkpoint. At the last checkpoint, 20 of 31 still-true claims went out in full; the rest went out as a pointer to the current code or were held.
A free first screen, and hooks that undo cleanly
03Bare mex (or mex setup) now turns mex on for the repo. It no longer starts the old setup wizard or opens a Hub, and the first screen itself makes no model calls. In a colour terminal each step ticks as it runs and settles into one list:
- Repo recipes and a file index.
- Rule-file review. Out-of-date lines in your existing rule files show as a small table under their file. A line is reported as out of date only when it is: workspace scripts,
pnpm --filtercommands, scoped paths, installed dependencies, outputs and ignored folders no longer count. - Agent-memory hints and bounded git-history findings.
At the end, the mex mascot sums up the run. Agents, pipes and NO_COLOR keep the plain screen.
Behind it, mex installs machine-wide hooks for Claude Code and Codex, as native binaries with a Node fallback. Installation is recorded, so mex uninstall restores your settings and keeps your notes, and mex off stops mex in one repo and removes its rule files there. mex status shows what is on, and mex doctor reads the same status and adds fixes.
Personal by default, shared on review
04Personal notes stay on your machine until you share them. Sharing previews first and pushes only when you pass --pr, so a team note arrives as a pull request someone can read. Team notes and agent rule files travel through Git; disposable records stay on each machine.
mex also imports your existing rule files, generates native rule files for each agent, and writes a short session-start brief. In a repo with a CLAUDE.md, Claude reads no AGENTS.md, so mex writes Claude its own rule files. A mex handoff can now be committed too.
Anonymous usage counts are new in this release. You can inspect them locally and turn them off. Learning from what you type is off until you turn it on with mex config set learning.statements on.
What we measured
05Run on 17 November 2026, on Windows 11 with Claude Code 2.1.326 and Codex 0.165. These are single runs on the samples named, not general claims. This beta makes no claim about saved tokens or task success.
- Recall. Six notes saved with
mex note, then a new session with no tools allowed: Claude Code answered 6 of 6 from them, and so did Codex. With mex off, the same six questions got "unknown" for five of them. - Staleness. A commit changed the port a note named. On the next session neither agent was given the old value as fact, and mex's rule files were rebuilt without the note.
- Across agents. Claude Code (Sonnet) was told "we always use pnpm in this repo" in passing, inside another question. It saved the rule with
mex note, and a new Codex session then answered "pnpm" with no tools. - Next to CLAUDE.md. In a repo with a
CLAUDE.md, Claude was asked to add a field to a generated type. It changed the schema instead, citing mex's note that the folder is generated. - Upgrade. The upgrade from 0.8 reached a ready preview on four real 0.8 projects.
Fixed in beta.1.1
06Beta.1.1 followed a day later with fixes from early testing:
- Notes reach new sessions reliably. The session-start brief had 100 ms to put notes together, and on a busy machine it could send an almost empty brief. Your own notes are now always considered, and notes no rule file carries get their own room of up to 1,000 bytes.
- Notes reach every session, whatever their scope. A note that named a file, such as "never cache it in .env files", used to be scoped to that file and drop out of new sessions. Scope now only ranks your notes.
- Changes land in seconds.
mex note,edit,forgetandwrongrewrite your local rule files within seconds, in every worktree of the project, instead of after every session has been closed for 10 minutes. - Commands in notes are kept. "Run the tests with npm run test from the repo root" no longer becomes
[unverified command removed]. - Desktop app and editor users are found.
mex installnow recognises Claude Code and Codex by their settings folders, not only by a command on PATH. - Smaller fixes.
mex recallfalls back to notes containing every word you typed,mex forget <id>no longer requires a reason, reinstalling leaves~/.claude/settings.jsonuntouched, andmex upgradekeeps 0.8 entries whose fingerprints were too long instead of dropping them.
What changed from 0.8
070.9 is a rebuild, so some of 0.8 is gone from the default path:
- Removed: the old Inbox, Workstream, Spec, terminal dashboard, watcher, heartbeat, logging, timeline, pattern, init, export and skill-sync commands. Each removed command prints its replacement, or says there is none in 0.9.
- Hidden: legacy graph and team commands are out of top-level help, but retained compatibility commands still run.
mex doctor --legacykeeps the 0.8 diagnostic. - The Hub: in a 0.9 checkout it prints a rebuild notice. The 0.8 Hub still works where
.mex/ROUTER.mdexists, and the rebuilt Hub arrives in 0.9.0.
Coming from 0.8, mex upgrade shows a preview first and recovers from interrupted work. Older layouts and unreadable files no longer block it, and applying the upgrade pushes nothing unless you pass --pr.
Known limits
08- The session-start brief holds about 300 bytes. More notes reach the agent through mex's rule files.
- A note scoped to some paths is corrected at its next delivery, not at session start.
- Agents keep what you state. Something an agent works out on its own, such as an environment variable the tests need, isn't saved yet. On smaller models, Claude may save a rule to its own memory instead.
- Codex skips mex's hooks until you trust them, with
/hooksor the Codex app's Review hooks button. On Windows, Codex starts each hook through PowerShell, which adds about 0.45 s per hook call. - Learning from pull requests, review comments, CI and commit history comes in a later beta. The 0.9 Hub and more agents arrive in 0.9.0.
Try it, and undo it
09Install globally rather than through npx. Run through npx, the hooks would point into npm's temporary cache, so mex asks for a global install instead.
npm install -g mex-agent@next
cd your-repo && mex
mex note "Run the tests from the repo root because the config is there"
mex off stops mex in this repo. mex uninstall restores your user settings and keeps your notes. Each tarball's checksum is in the release's SHA256SUMS, and every npm package was published with provenance from the repository's release workflow. Node.js 22.5 or newer is still required.
To stay on the stable release, keep installing mex-agent@0.8.5 or mex-agent@latest.
Thank you
10Thanks to everyone who built this beta since 0.8.5: @theyashasvipandey (the clean 0.9 base, local records and background jobs, the file index, hook delivery and ranking, the 0.8 upgrade and the release), @theDakshJaitly (notes, reversible hook installation, session-start briefs, the first screen, the knowledge judge and memory filter, usage counts and release gates) and @architdhamija (the Go hook shim and platform packages, mex check, rule files in and out, mex share, capture and handoffs, and the README).
Full details are in the 0.9.0-beta.1 release notes, the beta.1.1 release, the changelog and the full comparison with 0.8.5. Trying the beta? Tell us what broke on Discord.