For Claude/ Cursor/ Codex, whenever we need to share a rule, this is how we do Jevmem 0.7.10, an open-source MIT-licensed tool, saves a project's rules, decisions and failed approaches from AI coding chats into a single JEVMEM.md file in the repository that Claude Code, Cursor and Codex read, and checks each agent command, file edit and file write against those rules before it runs. The tool uses TypeSafe AI's Jev model to score whether a message is worth keeping at about 19 cents per 1,000 messages, sends message text to TypeSafe's API with common secrets removed first, and ships in Anthropic's Claude plugin directory, on cursor.directory and on the MCP Registry, with Claude Desktop supported over MCP. In a recorded 30 Nov 2026 run on jevmem 0.7.10 and Claude Code 2.1.330, Claude Code stopped before deleting a file because the rule existed only in a Cursor rules file, and jevmem's setup step imported existing CLAUDE.md, AGENTS.md and .cursor/rules/ files, with 103 rules across four dev projects costing $0.0015 together. Claude remembers you. jevmem makes your project's rules stick, across your agents and your teammates. jevmem saves your project's decisions, rules and failed approaches from your chats to JEVMEM.md, one file in your repo that Claude Code, Cursor and Codex read. It checks the agent's commands and edits against those rules before they run, in all three. Claude Desktop can use it too, over MCP. You need a paid TypeSafe API key https://console.typesafe.ai/keys . To decide what is worth keeping, jevmem asks TypeSafe AI's Jev, a model that answers yes/no questions with probabilities, and that costs about 19 cents per 1,000 messages; bringing lines back costs more as the file grows cost https://github.com/Avinash-jetwani/jevmem/blob/main/docs/cost.md . Your message text is sent to TypeSafe's API to be scored, with common secrets removed first. No telemetry. Opt-in per project. In Anthropic's Claude plugin directory · On cursor.directory https://cursor.directory/plugins/jevmem · On the MCP Registry https://registry.modelcontextprotocol.io/v0/servers?search=io.github.Avinash-jetwani/jevmem · Open source, MIT Install in three steps install · The docs site, one page per question: avinash-jetwani.github.io/jevmem https://avinash-jetwani.github.io/jevmem/ A real run on 30 Nov 2026 jevmem 0.7.10, Claude Code 2.1.330 . The rule is only in a Cursor rules file, and Claude Code still stops before the delete. The steps above the window are ours; the terminal is as recorded, with the start-up wait cut and long pauses shortened. Three more real runs see-it-in-real-runs . jevmem-say-it-once-v2.mp4 Each AI coding session starts with a fresh context, so a rule your team agreed lives in one person's chat, on one machine, in one tool. A CLAUDE.md file helps if someone keeps it up to date. jevmem keeps a file like it up to date as you work, shares it with your team through git, gives it to Claude Code, Cursor and Codex, and checks the agent's commands and edits against it before they run. Already have a CLAUDE.md , AGENTS.md or Cursor rules? The guard uses the rules in them from the day you set it up. Your team decided "don't hand-edit db/migrations/: those files are generated". Three weeks later, in a fresh session, Claude is about to edit one. Before the edit runs, jevmem checks it against the rules in JEVMEM.md, and Claude Code stops and asks you first, with the rule: jevmem: this may break a saved rule: "Don't hand-edit db/migrations/: those files are generated." JEVMEM.md The guard checks the agent's commands, file edits and file writes in Claude Code, Cursor and Codex, and jevmem trust lets a rule you wrote block the call instead of asking the guard the-guard-checks-each-command-and-edit-before-it-runs . On day one. You don't have to wait for jevmem to learn your rules from your chats. If you already wrote some down in CLAUDE.md , AGENTS.md or .cursor/rules/ , jevmem setup goes through those files once, a line or sentence at a time, and keeps the ones that forbid or require something. From the next call the guard checks against them too, and when it asks, it says which file and line the rule came from. The numbers in the picture come from 5 new projects written for this test before any model saw them, run once results https://github.com/Avinash-jetwani/jevmem/blob/main/results/guard-files-heldout-2026-11-27.json . Each line or sentence is asked about once and the answer is cached, so an unchanged file costs nothing more; the 103 in our four dev projects cost $0.0015 together cost https://github.com/Avinash-jetwani/jevmem/blob/main/docs/cost.md . Each one is a real Claude Code session in a throwaway folder, recorded on 30 Nov 2026 with jevmem 0.7.10 and Claude Code 2.1.330. The steps above each window are ours. The terminal is as recorded; the start-up wait is cut, long pauses are shortened, and spans marked "sped up" play faster. An edit to .env : Claude Code asks before the edit, and jevmem guard log shows which rule it matched. .env A rule you said in chat, kept for later : you state a rule, jevmem saves it to JEVMEM.md, and in a new session the guard asks before a hand-edit that breaks it. In Claude Code, the question for a command shows jevmem's reason. For a file edit, Claude Code's edit box shows only the change, so the reason is in jevmem guard log . On Monday you tell Claude "we use pnpm, not npm". jevmem saves it as a line in JEVMEM.md, and you commit it with your code. On Tuesday your teammate pulls and opens the repo in Cursor: with the jevmem plugin, the agent looks up the project's rules before a task, and the pnpm line is there, because it travelled with the code through git. Codex reads the same file over MCP when the agent asks, and in Claude Code, Cursor and Codex the guard checks an npm install against the rule before it runs. You tried caching the API responses in memory, it broke the build, and you kept Redis. jevmem saves that as a failed approach, with the reason. Next month, when a prompt comes near it, Claude gets it back as "Already tried: …" with the reason, and in Cursor and Codex the agent finds it when it looks up the project's memory, so an idea you already ruled out stays ruled out. You need a TypeSafe API key https://console.typesafe.ai/keys , which jevmem's requests are billed to, and Claude Code 2.1.273 or later. 1. In the Claude app: Plugins → Discover → jevmem → Add . 2. Install the CLI the plugin runs: npm install -g jevmem 3. In your project's folder, finish the setup in one go it asks for your key without showing it, turns jevmem on in that folder, and checks the setup : jevmem setup Start Claude Code in that project. If you start it before the setup is done, the plugin says once what is left; jevmem doctor checks the setup any time. Other ways to install: the jevmem marketplace, npm, Cursor, Codex From the jevmem marketplace: npm install -g jevmem claude plugin marketplace add Avinash-jetwani/jevmem claude plugin install jevmem@jevmem claude plugin install jevmem-pane@jevmem the side pane, optional cd your-project && jevmem setup With npm only also sets up Cursor and Codex : npm install -g jevmem cd your-project jevmem init --tool claude or cursor, codex, claude-desktop, all In Cursor, the jevmem plugin carries the hooks, the MCP server and the rule for every window. Until it is on the Cursor Marketplace, copy this repository's cursor-plugin/ folder to ~/.cursor/plugins/local/jevmem and reload the window, then run jevmem setup in each project the steps https://github.com/Avinash-jetwani/jevmem/blob/main/docs/install.md the-cursor-plugin-076 . The Add to Cursor button on cursor.directory https://cursor.directory/plugins/jevmem installs the MCP server only the entry https://github.com/Avinash-jetwani/jevmem/blob/main/docs/mcp.md cursor , so the agent can read the memory but nothing is saved or checked. Already have a CLAUDE.md ? The guard reads its rules without an import. If you also want its lines in JEVMEM.md , so they come back like saved ones, jevmem import shows what it would add and --apply writes it. Every step, and what to do if the plugin can't find the CLI: docs/install.md https://github.com/Avinash-jetwani/jevmem/blob/main/docs/install.md . Claude Code keeps notes of its own, auto memory, on your machine. jevmem runs beside it and adds the parts a team needs: | | Claude Code's auto memory | jevmem | |---|---|---| | Saves from your chats | Yes | Yes: decisions, rules, failed approaches, bugs, to-dos | | Where it keeps them | Notes on one machine, under ~/.claude/projects/ | JEVMEM.md in your repo, shared through git | | Checks commands and edits against your rules before they run | No | Yes, the guard | | Works in | Claude Code | Claude Code, Cursor, Codex, Claude Desktop | Run both: the guard leaves auto memory's own notes alone. How the two did side by side is in Benchmarks benchmarks-next-to-claudemd-and-claude-codes-auto-memory . In real Claude Code sessions on three small test projects: | | No project memory | jevmem | Same lines in CLAUDE.md | |---|---|---|---| | Followed the project's earlier decisions | 28 of 72 | 66 of 72 | 67 of 72 | | Tried a change the project forbids | 10 of 18 | 0 of 18 | 0 of 18 | | Repeated an approach that had already failed | 3 of 15 | 0 of 15 | 0 of 15 | So jevmem did about as well as a CLAUDE.md you keep up to date by hand, without you writing it. CLAUDE.md did better on a convention nothing in the prompt points at, so jevmem now sends such rules to every session: 18 of 18 on six tasks written for that gap. Next to Claude Code's own auto memory 558 sessions on three new projects , a line taught in an earlier session was followed in 47 of 54 sessions with auto memory alone, 40 with jevmem alone and 45 with both. With jevmem on, no change a rule forbade was left in the code 0 of 15, against 1 of 15 with auto memory alone . Every row https://avinash-jetwani.github.io/jevmem/results/ next-to-claude-codes-auto-memory-077 . The guard , on tool calls it was not tuned on: | | Rule breaks caught | Clean calls asked about | |---|---|---| | Rules saved in JEVMEM.md 274 calls | 66 of 68 | 4 of 206 | | Rules in CLAUDE.md , AGENTS.md and Cursor rules 5 new projects | 29 of 35 | 3 of 95 | These are my own test sets, each number from one run; none is an independent benchmark. Every row, how it was run and what each test does not show: the results page https://avinash-jetwani.github.io/jevmem/results/ and docs/benchmark.md https://github.com/Avinash-jetwani/jevmem/blob/main/docs/benchmark.md . Deciding what to save takes 0.16 s and costs $0.00019 per message, in the background: Claude doesn't wait for it. Bringing lines back takes about a third to half a second on each prompt, which Claude waits for; the time and the cost grow with the file. On whether to save a message at all, jevmem was right as often as the best of six LLMs 98.5% ; three of them were better at naming the kind of line. Measured on 66 turns written before the code and not tuned on, one run of the 0.7.7 build on 2026-11-08 results https://github.com/Avinash-jetwani/jevmem/blob/main/results/eval-heldout-2026-11-08-v077.json ; the six LLMs ran on 2026-09-23. All seven in one table, with the cost of each and how it was run: benchmark https://github.com/Avinash-jetwani/jevmem/blob/main/docs/benchmark.md 077-beside-the-six-llms . You chat as usual. When you decide something, jevmem writes it as one line in a file in your repo, and brings the right lines back next session. 1. You decide something in a chat: "We use Postgres." 2. jevmem asks Jev by TypeSafe AI https://typesafe.ai , a model that answers yes/no questions with probabilities, whether it's worth keeping. 3. If it is, jevmem writes one line to JEVMEM.md in your repo. 4. Next session, the lines that matter for your prompt go back to Claude. Change your mind, and the old line is crossed out: kept for history, not sent to Claude. Your team gets the same file through git. jevmem keeps decisions, rules, bugs, to-dos and dead ends an approach that was tried and failed, with the reason . - superseded We'll use SQLite as the primary store for now. → id:cuasaq - decision Switch the primary store to Postgres 16. - constraint Node 20 is the minimum supported version, and CI runs Node 20 and 22. About these lines Each line also carries a comment with its id, time and confidence, left out above. The full lines: - superseded We'll use SQLite as the primary store for now. → id:cuasaq < -- id:21ycba ts:2026-09-26T13:46:34.703Z conf:1.00 by:cuasaq -- - decision Switch the primary store to Postgres 16. < -- id:cuasaq ts:2026-09-26T13:46:35.240Z conf:1.00 -- - constraint Node 20 is the minimum supported version, and CI runs Node 20 and 22. < -- id:tollba ts:2026-09-26T13:46:35.763Z conf:0.90 -- Real lines from a run on 2026-09-26 the run https://github.com/Avinash-jetwani/jevmem/blob/main/results/readme-example-2026-09-26.txt . The writer then kept one sentence of each turn, so the Postgres line lost its reason, "SQLite locks up under concurrent writes". Today the line is made from the sentences Jev picks: the one that states the memory and the one that gives its reason. With writer set, an OpenAI or Anthropic model condenses the whole turn instead. Before the agent runs a command or edits a file, jevmem checks it against your saved rules and, in a new project, the rules already in your CLAUDE.md , AGENTS.md and Cursor rules. If one might break, Claude Code asks you first: jevmem: this may break a saved rule: "Never commit .env files" JEVMEM.md It's a backstop, not a sandbox: it looks at the words a rule and a call share. How often it catches a rule break, and how often it asks when nothing is wrong, is in Benchmarks benchmarks-next-to-claudemd-and-claude-codes-auto-memory results https://github.com/Avinash-jetwani/jevmem/blob/main/results/guard-heldout-v2-2026-11-27-v079.json . jevmem trust lets a rule you added by hand block a call in the guard's block mode, not only ask about it. The guard runs in Cursor and Codex too. The Cursor app asks you about a shell command, as Claude Code does. Where the tool can't ask an edit in Cursor, the Cursor CLI, Codex , the guard stops the call: the agent is told the rule and asked to check with you, and jevmem guard allow