jevmemjevmem

Open source · MIT · Claude Code, Cursor and Codex · v0.7.11

Claude remembers you. jevmem makes your project's rules stick, across your agents and your teammates.

Write a rule once: in a chat, in CLAUDE.md, in AGENTS.md or in your Cursor rules. Before Claude Code, Cursor or Codex runs a command or edits a file, jevmem checks it against your rules and stops to ask you if it may break one. The rules live in one file in your repo, so your whole team gets them through git.

$ npm install -g jevmem
$ jevmem setup

No TypeSafe key yet? The guard still checks simple rules on your computer, and sends nothing. How

Last updated: · jevmem 0.7.11 · New in 0.7.11 · Source on GitHub

one rule, every session
# monday, in a chat
> Don't hand-edit db/migrations/. Those files are generated.
  Got it. I'll generate migrations instead of editing them.

  jevmem asks Jev if it's worth keeping, then writes one line:
  + JEVMEM.md
  - [constraint] Don't hand-edit db/migrations/: those files are generated.

$ git add JEVMEM.md && git commit -m "Save project rules"
An example. Click a step to replay it. Real runs below

Real runs

A rule in a Cursor rules file stopped a Claude Code delete before it ran.

The rule is only in a teammate's Cursor rules file: never delete public/uploads/, it holds users' photos. Asked to free up disk space, Claude Code goes to run rm -rf on it. jevmem quotes the rule and its file, Claude Code asks, the answer is no, and nothing is deleted.

Real Claude Code sessions in throwaway folders, 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. The same runs in the README

One rule, every agent

jevmem reads the rules you already wrote, and checks them in all three agents.

Your rules

  • JEVMEM.mdsaved from your chats
  • CLAUDE.mdalready in your repo
  • AGENTS.mdalready in your repo
  • .cursor/rules/already in your repo

jevmem

checks each command, edit and delete before it runs

Your agent

  • Claude Codestops and asks you
  • Cursorasks before a command, stops an edit
  • Codexstops the call until you let it through

Figure 2. When Cursor or Codex stops a call, jevmem guard allow <code> in your own terminal lets that one call through. Live check on 0.7.9: a forbidden edit was stopped in 3 of 3 runs in Cursor and in Codex, and an everyday edit ran in 3 of 3. How each agent does it

Does it work?

With jevmem on, a change the project's rules forbid was left in the final code in 0 of 15 sessions.

No memory9 / 15
Same rules in CLAUDE.md2 / 15
Claude Code auto memory1 / 15
jevmem0 / 15
forbidden change left in the codekept outkept out, with jevmemone square = one session

Figure 1. From the 0.7.7 comparison next to Claude Code's auto memory: 558 real Claude Code sessions on three new projects, checked by hand. My own test set, run once; not an independent benchmark. Method and every row

What it adds to Claude Code

1

The guard: rules checked before the agent acts

jevmem checks the agent's commands and file edits against your saved rules and the rules already in your CLAUDE.md. If one may break a rule, Claude Code stops and asks you first. Cursor and Codex get the same check.

jevmem: this may break
a saved rule:
  "Don't hand-edit
   db/migrations/"
the guard →
2

One JEVMEM.md, shared through git

Your project's memory lives in JEVMEM.md in your repo. Teammates get the same rules when they pull.

[decision]
  We use pnpm, not npm.
[dead-end]
  In-memory cache broke
  the build: keep Redis.
CLAUDE.md or JEVMEM.md →
3

Claude Code, Cursor and Codex

The same file works across your AI coding agents, and in Claude Desktop over MCP. It runs beside Claude Code's auto memory.

Claude Code   plugin
Cursor        plugin
Codex         MCP, hooks
Claude Code memory →

New in 0.7.11

No key? The guard still works.

Without a TypeSafe key, jevmem checks simple rules like "never delete public/uploads/" on your computer, and asks you before a command breaks one. Nothing is sent.

without a key →

See what leaves your computer.

Add --show-sent to a jevmem command, or run jevmem sent, to see each request word for word, with your key hidden.

what is sent →

Check the numbers yourself.

jevmem guard bench runs the guard's test set with your own key, or your own commands against your own rules.

guard bench →

Install

$ npm install -g jevmem
$ jevmem setup   # in your project's folder

First add the plugin in the Claude app: Plugins → Discover → jevmem → Add. Needs Claude Code 2.1.273 or later, and a TypeSafe API key for saving and recall. Upgrading to 0.7.11: npm install -g jevmem@latest, then re-run jevmem init in a project set up with init. Every install path

Works with

Table 1. What runs where. The guard runs in Claude Code, Cursor and Codex (since 0.7.9); in Claude Desktop, the agent reads the same file. Details
ToolSavesBrings backGuard
Claude CodeEvery turnEvery promptYes
CursorEvery finished turnWhen the agent asksYes
CodexWhile jevmem watch runsWhen the agent asksYes
Claude DesktopWhen you askWhen you ask–

The limits, in short

  • Saving and recall need a TypeSafe API key. Requests to Jev, which decides what to save, are billed to it. Without a key, the guard checks only the simple rules. Install steps
  • Message text goes to TypeSafe to be scored, with common secrets scrubbed first. No telemetry. What leaves your machine
  • The guard is a backstop, not a sandbox, in Claude Code, Cursor and Codex. Its limits
  • My own test sets, each run once; not an independent benchmark. The method

Every limit, with the numbers: the FAQ.

Questions people ask

  1. How do I make Claude Code remember project decisions across sessions?
  2. Should I use CLAUDE.md or JEVMEM.md?
  3. How do I keep the same rules across Cursor chats, Claude Code and my teammates?
  4. How do I stop an AI coding agent from breaking my project's rules?
  5. Can Claude Code check commands against my project's rules before they run?
  6. How does jevmem compare with CLAUDE.md, Claude Code's auto memory and other memory tools?
  7. Does jevmem work?
  8. What changed in each version of jevmem?