{"slug": "for-claude-cursor-codex-whenever-we-need-to-share-a-rule-this-is-how-we-do", "title": "For Claude/ Cursor/ Codex, whenever we need to share a rule, this is how we do", "summary": "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.", "body_md": "**Claude remembers you. jevmem makes your project's rules stick, across your agents and your teammates.**\n\njevmem 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.\n\nYou 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.\n\nIn 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\n\n[Install in three steps](#install) · The docs site, one page per question: [avinash-jetwani.github.io/jevmem](https://avinash-jetwani.github.io/jevmem/)\n\nA 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).\n\n## jevmem-say-it-once-v2.mp4\n\nEach 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.\nA `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.\n\nYour 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:\n\n```\njevmem: this may break a saved rule: \"Don't hand-edit db/migrations/: those files are generated.\" (JEVMEM.md)\n```\n\nThe 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)).\n\n**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.\n\nThe 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)).\n\nEach 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.\n\n## **An edit to `.env`**: Claude Code asks before the edit, and `jevmem guard log` shows which rule it matched.\n\n`.env`\n\n## **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.\n\nIn 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`.\n\nOn 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.\n\nYou 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.\n\nYou 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.\n\n1. In the Claude app: **Plugins → Discover → jevmem → Add** .\n2. Install the CLI the plugin runs:\n\n```\nnpm install -g jevmem\n```\n\n3. 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):\n\n```\njevmem setup\n```\n\nStart 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.\n\n## Other ways to install: the jevmem marketplace, npm, Cursor, Codex\n\nFrom the jevmem marketplace:\n\n```\nnpm install -g jevmem\nclaude plugin marketplace add Avinash-jetwani/jevmem\nclaude plugin install jevmem@jevmem\nclaude plugin install jevmem-pane@jevmem   # the side pane, optional\ncd your-project && jevmem setup\n```\n\nWith npm only (also sets up Cursor and Codex):\n\n```\nnpm install -g jevmem\ncd your-project\njevmem init --tool claude    # or cursor, codex, claude-desktop, all\n```\n\nIn 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.\n\nAlready 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.\n\nEvery 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).\n\nClaude Code keeps notes of its own, auto memory, on your machine. jevmem runs beside it and adds the parts a team needs:\n\n|  | Claude Code's auto memory | jevmem | \n|---|---|---|\n| Saves from your chats | Yes | Yes: decisions, rules, failed approaches, bugs, to-dos | \n| Where it keeps them | Notes on one machine, under `~/.claude/projects/` | `JEVMEM.md` in your repo, shared through git | \n| Checks commands and edits against your rules before they run | No | Yes, the guard | \n| Works in | Claude Code | Claude Code, Cursor, Codex, Claude Desktop | \n\nRun 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).\n\nIn real Claude Code sessions on three small test projects:\n\n|  | No project memory | jevmem | Same lines in `CLAUDE.md` | \n|---|---|---|---|\n| Followed the project's earlier decisions | 28 of 72 | **66 of 72** | 67 of 72 | \n| Tried a change the project forbids | 10 of 18 | **0 of 18** | 0 of 18 | \n| Repeated an approach that had already failed | 3 of 15 | **0 of 15** | 0 of 15 | \n\nSo 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.\n\n**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).\n\n**The guard**, on tool calls it was not tuned on:\n\n|  | Rule breaks caught | Clean calls asked about | \n|---|---|---|\n| Rules saved in `JEVMEM.md` (274 calls) | 66 of 68 | 4 of 206 | \n| Rules in `CLAUDE.md` ,`AGENTS.md` and Cursor rules (5 new projects) | 29 of 35 | 3 of 95 | \n\nThese 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).\n\nDeciding 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.\n\nMeasured 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).\n\nYou 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.\n\n1. You decide something in a chat: \"We use Postgres.\"\n2. jevmem asks [Jev by TypeSafe AI](https://typesafe.ai) , a model that answers yes/no questions with probabilities, whether it's worth keeping.\n3. If it is, jevmem writes one line to `JEVMEM.md` in your repo.\n4. Next session, the lines that matter for your prompt go back to Claude.\n\nChange your mind, and the old line is crossed out: kept for history, not sent to Claude. Your team gets the same file through git.\n\njevmem keeps **decisions, rules, bugs, to-dos and dead ends** (an approach that was tried and failed, with the reason).\n\n```\n- [superseded] We'll use SQLite as the primary store for now. → id:cuasaq\n- [decision] Switch the primary store to Postgres 16.\n- [constraint] Node 20 is the minimum supported version, and CI runs Node 20 and 22.\n```\n\n## About these lines\n\nEach line also carries a comment with its id, time and confidence, left out above. The full lines:\n\n```\n- [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 -->\n- [decision] Switch the primary store to Postgres 16.  <!-- id:cuasaq ts:2026-09-26T13:46:35.240Z conf:1.00 -->\n- [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 -->\n```\n\nReal 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.\n\nBefore 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:\n\n```\njevmem: this may break a saved rule: \"Never commit .env files\" (JEVMEM.md)\n```\n\nIt'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.\n\nThe 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 <code>` in your own terminal lets that one call through. In Codex you trust jevmem's hook once in `/hooks`. [How the guard works](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/guardrails.md).\n\nThe live check is in [results](https://github.com/Avinash-jetwani/jevmem/blob/main/results/e2e-2026-11-29-v079-live-final.txt); in the Cursor app, a shell command was asked about with Cursor's own approval card ([the check](https://github.com/Avinash-jetwani/jevmem/blob/main/results/cursor-app-guard-probe-2026-11-27.txt)).\n\nSaving is automatic in Claude Code; in Cursor, where Cursor's hooks save each finished agent turn (from the jevmem plugin for Cursor, or from the files `jevmem init --tool cursor` writes); and in Codex while `jevmem watch` runs. Cursor, Codex and Claude Desktop reach jevmem over MCP, a standard way for an AI tool to call another program, when the agent asks for it; the Cursor plugin's server runs in every window, while a project's own `.cursor/mcp.json` server starts off until you turn it on once ([the step](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/mcp.md#cursor)). How Cursor saving was measured: [docs/hooks.md](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/hooks.md#cursor-hooks-074).\n\n|  | Saving | Bringing it back | The guard | \n|---|---|---|---|\n| **Claude Code** | Automatic, every turn | Automatic, every prompt | Asks before a call that may break a rule | \n| **Codex** | Automatic while `jevmem watch` runs | When the agent asks, over MCP | Stops the call and names the rule ( `jevmem init --tool codex` , then trust the hook in`/hooks` ; Codex 0.171 or newer) | \n| **Cursor** | Automatic, every finished agent turn | When the agent asks, over MCP (the plugin's server runs in every window; a project's own server needs one toggle in the Cursor app, [the step](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/mcp.md#cursor) ) | Asks about a shell command in the app; stops an edit or a delete, and any call in the `agent` CLI | \n| **Claude Desktop** | When you ask it to, over MCP | When you ask it to, over MCP | – | \n\nThe MCP server is on the [MCP Registry](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.Avinash-jetwani/jevmem) as `io.github.Avinash-jetwani/jevmem`. On [cursor.directory](https://cursor.directory/plugins/jevmem), **Add to Cursor** installs only the MCP server, so saving and the guard need the plugin or `jevmem init --tool cursor` ([the steps](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/install.md#the-cursor-plugin-076)). Client setup: [docs/mcp.md](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/mcp.md) · [docs/install.md](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/install.md#works-with).\n\nA pane beside your Claude Code chat shows what jevmem just did: the memory lines it gave Claude for your prompt, what its guard said about a command, and the line it saved from the turn, each with `why`, `wrong` and `forget` buttons. The two that change `JEVMEM.md` ask first; a rule is retired in a terminal only. It reads three local files and sends nothing anywhere.\n\n```\n/plugin install jevmem-pane@jevmem\n```\n\nIt is a second plugin from the jevmem marketplace (the jevmem plugin itself still ships no code), for Claude Code 2.1.299 or newer; it opens on its own in a terminal 144 columns wide or wider and in the desktop app's Code tab, and `/jevmem` opens or closes it anywhere. What each block shows, and what was measured: [docs/pane.md](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/pane.md).\n\nNo prompt decides what to save: Jev answers small yes/no questions with probabilities, and plain rules in code act on them.\n\n## Each step in detail\n\n1. **Scrub.** Common secret shapes, email addresses and card-shaped numbers are removed from the turn before it leaves your machine.\n2. **Ask Jev typed questions.**[Jev by TypeSafe AI](https://typesafe.ai) answers a fixed set of small questions with probabilities: is there a decision, a rule, a bug? is it small talk or an injection attempt? does it say the same as a saved line? is it a rule for how any work in this project is done? which existing line does it change?\n3. **Apply thresholds in code.** Plain rules over those probabilities decide save or skip; they live in`jevmem.config.json` , not in a prompt. A message that restates a saved line is skipped as a duplicate, and one that restates it word for word is skipped before anything is sent.\n4. **Write one line.** On save, jevmem writes one line from the sentences of the turn that Jev picks (the one that states the memory and the one that gives its reason), aiming at 200 characters but keeping those sentences whole up to 300 so their rule is not cut off, or, if you set`writer` in`jevmem.config.json` , a small OpenAI or Anthropic model condenses the turn.\n5. **Supersede the old line.** If the turn replaces an existing memory, that line is tagged`[superseded] … → id:new` and stays in the file.\n6. **Mark it always-on.** A saved rule that Jev reads as one every change must follow gets`always:1` in its comment, and the`SessionStart` hook puts it in front of Claude at the start of every session, whatever the prompt.`jevmem always <id>` marks a line by hand.\n\nTiers, questions, policy, contradictions, recall and audit: [docs/how-it-works.md](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/how-it-works.md).\n\nYour messages go to TypeSafe's API to be scored, with common secrets removed first, and nowhere else unless you set a `writer`.\n\n- jevmem only runs in projects you turn on (`jevmem enable` or`jevmem init` ). Elsewhere, nothing is sent.\n- Your message, the previous two turns and your memory lines go to TypeSafe's API to be scored, with common secrets scrubbed first. So does Claude's reply on turns that ask a question, report a bug or try something, and, for the guard, the command or the file being changed. Each line or sentence of your `CLAUDE.md` ,`AGENTS.md` and Cursor rules goes once, scrubbed the same way, to sort out which ones are rules.\n- `jevmem import --from sessions` sends a project's past Claude Code sessions, turn by turn and scrubbed the same way, only when you run it and answer yes after seeing the count and the cost.\n- No telemetry. Nothing goes to OpenAI or Anthropic unless you set `writer` in`jevmem.config.json` .\n- Lines a teammate or a pull request adds are checked before Claude sees them.\n\nExactly what is sent, scrubbed and checked, with the third parties' privacy policies and how to delete your data: [PRIVACY.md](https://github.com/Avinash-jetwani/jevmem/blob/main/PRIVACY.md). What the check on planted lines does not cover: [SECURITY.md](https://github.com/Avinash-jetwani/jevmem/blob/main/SECURITY.md).\n\njevmem is young, and these are the limits to know before you rely on it:\n\n- **Early:** first released on 2026-09-22, and every test set was written by the author or captured from Claude Code sessions on scratch projects built for it. None is an independent benchmark.\n- **Not the most accurate:** three LLMs scored higher at picking the kind of line. jevmem's edge is speed and cost.\n- **Answer quality isn't measured:** the tests check that the right lines reach Claude, not that its answers get better.\n- **Use it beside Claude Code's auto memory, not instead of it:** on a line taught in an earlier session, auto memory alone was followed more often than jevmem alone ([Benchmarks](#benchmarks-next-to-claudemd-and-claude-codes-auto-memory) ). Beside it, jevmem's guard kept every forbidden change out of the code.\n- **Automatic saving is Claude Code and Cursor** (and Codex while`jevmem watch` runs); Claude Desktop saves only when the agent calls`add_memory` , and in Cursor recall is still the agent's call. The Cursor plugin's rule sits in every chat of every project it is installed for, 588 characters of it ([limits](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/limits.md) ).\n- **The guard looks at shared words:** a rule worded far from the command it should catch can be missed.\n- **In Cursor and Codex the guard is a hook, and a hook can miss:** if it times out or fails, the tool runs the call (we saw this in both). And`jevmem guard allow` stops an agent that goes ahead by mistake, not one that is set on getting around it.\n- **The side pane is Claude Code only** (2.1.299 or newer): Cursor has no pane, and Claude Code for VS Code draws none yet.\n\nEvery limit, with the numbers: [docs/limits.md](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/limits.md).\n\n- **0.7.10:** the Claude Code plugin's launcher, rewritten to the Claude plugin directory's checks, and this shorter README. Nothing changes in what jevmem saves, recalls or guards.\n- **0.7.9:** the guard checks the rules already in your`CLAUDE.md` ,`AGENTS.md` and Cursor rules, and runs in Cursor and Codex too ([the guard in Cursor and Codex](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/guardrails.md#cursor-and-codex-079) ).\n- **0.7.8:** no turn is lost at the end of a`claude -p` session. If you set a project up with`jevmem init` , run it again there.\n\nEvery version, with what was measured: [docs/whats-new.md](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/whats-new.md) · Upgrading: [docs/upgrading.md](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/upgrading.md) · [CHANGELOG](https://github.com/Avinash-jetwani/jevmem/blob/main/CHANGELOG.md)\n\n## Commands\n\n```\njevmem init [--tool claude|cursor|codex|claude-desktop|all] [--no-hooks] [--files] [--command \"<cmd>\"]\njevmem init --remove-hooks                     Remove jevmem's Claude Code hooks and Cursor hooks from this project (plugin users; with the Cursor plugin, its rule and MCP entry too)\njevmem enable                                  Opt this project in (plugin users): jevmem.config.json, JEVMEM.md, .jevmem/\njevmem setup                                   Finish the setup here: the CLI and the plugin, your TypeSafe key (asked for, not shown), jevmem turned on in this folder, doctor; terminal only\njevmem disable                                 Opt this project out: jevmem does nothing here (JEVMEM.md is kept)\njevmem hook                                    Hook entrypoint; reads the Claude Code hook JSON on stdin\njevmem daemon [status|start|stop]              Warm Jev client used by the hook (auto-started, exits when idle)\njevmem watch [--replay] [--once]               Capture turns from Codex's session log for this project (Cursor saves through its hooks)\njevmem mcp [--root <dir>]                      Stdio MCP server\njevmem audit [--dry-run]                       Re-score every memory against the repo, flag [stale?]\njevmem audit --security [--ci]                 List lines that read as instructions to an AI (--ci: exit 1 if any)\njevmem search <query> [--limit N]              Rank memories by relevance\njevmem list [--all]                            Print memories (--all: with superseded and retired lines, and provenance)\njevmem add [--trust] [--always] <kind> <text>  Add a line by hand (secrets scrubbed, a leading tag dropped; no Jev check); --trust marks it verified (asks on a terminal); --always sends it to Claude in every session\njevmem always [--off] <id> [<id>…]             Mark a line always-on (in Claude's context at the start of every session), or take the mark off\njevmem always --suggest [--apply]              Ask Jev which live lines are rules for every change and propose the marks; --apply sets them\njevmem forget <id> [<id>…]                     Retire a line in place: it stays in JEVMEM.md as [retired]; a rule asks for a yes on a terminal\njevmem trust <id> [<id>…]                      Mark a line you wrote as verified, after the poisoning gate (asks on a terminal); the guard can then block on it\njevmem import [--from <sources>] [--apply]     Import CLAUDE.md, AGENTS.md, .cursor/rules/* (claude-auto-memory on request); dry run by default\njevmem import --from sessions [--since 30d] [--apply]   Read this project's past Claude Code sessions; counts and asks before anything is sent\njevmem why <id|hash>                           Every Jev answer behind a line or a skipped turn\njevmem right <id|hash>                         Label a decision as correct\njevmem wrong <id|hash> [--should-be <kind|none>]   Label a decision as wrong (--should-be none retires the line)\njevmem missed \"<text>\" [--kind <kind>]         Label a turn that should have been saved\njevmem fit [--dry-run] [--force]               Refit weights and thresholds from labels (needs 40+)\njevmem stats                                   Writer, latency p50/p95, cost per day, cache hit rate, escalation rate, retry queue, labels, last fit\njevmem doctor                                  Is this project enabled, where the TypeSafe key comes from, which writer is active and why\njevmem key                                     Save your TypeSafe API key to ~/.jevmem/env (asks for it without showing it)\njevmem log                                     Per-label latency, token and cost summary of .jevmem/log.jsonl\njevmem guard test \"<command>\" | --edit <path>  Dry run of the PreToolUse guard on one call: rules, prefilter, Jev's answer, hook output\njevmem guard log [-n 20]                       The guard's recent asks and denials in this project, with the rule and score\njevmem guard allow <code>                      Let one call the guard stopped in Cursor or Codex through, once (asks in your terminal)\njevmem guard files [on|off]                    Check the rules in CLAUDE.md, AGENTS.md and Cursor rules too (off asks in your terminal)\n```\n\nEvery command accepts `--help`. Set `JEVMEM_VERBOSE=1` for a one-line latency/cost summary after every hook run.\n\n- Docs: [how it works](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/how-it-works.md) ·[install](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/install.md) ·[the guard](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/guardrails.md) ·[dead ends](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/dead-ends.md) ·[benchmark](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/benchmark.md) ·[cost](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/cost.md) ·[hooks](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/hooks.md) ·[MCP and client configs](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/mcp.md) ·[configuration](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/configuration.md) ·[limits](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/limits.md) ·[demo](https://github.com/Avinash-jetwani/jevmem/blob/main/DEMO.md)\n- [CHANGELOG](https://github.com/Avinash-jetwani/jevmem/blob/main/CHANGELOG.md) ·[Releases](https://github.com/Avinash-jetwani/jevmem/releases) ·[DECISIONS](https://github.com/Avinash-jetwani/jevmem/blob/main/DECISIONS.md) ·[CONTRIBUTING](https://github.com/Avinash-jetwani/jevmem/blob/main/CONTRIBUTING.md) ·[SECURITY](https://github.com/Avinash-jetwani/jevmem/blob/main/SECURITY.md) ·[PRIVACY](https://github.com/Avinash-jetwani/jevmem/blob/main/PRIVACY.md)\n- Built on [Jev by TypeSafe AI](https://typesafe.ai) . License:[MIT](https://github.com/Avinash-jetwani/jevmem/blob/main/LICENSE)", "url": "https://wpnews.pro/news/for-claude-cursor-codex-whenever-we-need-to-share-a-rule-this-is-how-we-do", "canonical_source": "https://github.com/Avinash-jetwani/jevmem", "published_at": "2026-11-30 20:22:17+00:00", "updated_at": "2026-11-30 20:47:43.653887+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "agent-protocols", "ai-products"], "entities": ["jevmem", "Claude Code", "Cursor", "Codex", "TypeSafe AI", "Jev", "Claude Desktop", "Anthropic"], "also_reported_by": [], "takeaway": "jevmem 0.7.10 stores project rules in a git-shared JEVMEM.md that Claude Code, Cursor and Codex check before each command, edit or write, and importing 103 existing rules from CLAUDE.md, AGENTS.md and .cursor/rules/ files cost $0.0015 total.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/for-claude-cursor-codex-whenever-we-need-to-share-a-rule-this-is-how-we-do", "markdown": "https://wpnews.pro/news/for-claude-cursor-codex-whenever-we-need-to-share-a-rule-this-is-how-we-do.md", "text": "https://wpnews.pro/news/for-claude-cursor-codex-whenever-we-need-to-share-a-rule-this-is-how-we-do.txt", "jsonld": "https://wpnews.pro/news/for-claude-cursor-codex-whenever-we-need-to-share-a-rule-this-is-how-we-do.jsonld"}}