# What is jevmem?

**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.

Last updated: 2026-12-04 · jevmem 0.7.11 · [Install](https://jevmem.dev/install/) · [Source on GitHub](https://github.com/Avinash-jetwani/jevmem)

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 teammates get the same file through git, and it works beside Claude Code's own auto memory. To decide what is worth keeping, jevmem asks TypeSafe AI's Jev, a model that answers yes/no questions with probabilities. It is open source (MIT).

New in 0.7.11: without a TypeSafe key, the guard still checks simple rules on your computer and sends nothing ([how](https://jevmem.dev/guard/#without-a-key)); `--show-sent` or `jevmem sent` shows each request word for word, with your key hidden ([what leaves your machine](https://jevmem.dev/privacy/)); and `jevmem guard bench` runs the guard's test set with your own key ([how](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/bench.md)).

[Watch the film](https://github.com/user-attachments/assets/c8a7eced-c427-4ef6-85f2-124eb34ad291)

## Three ways teams use it

### 1. The guard: your rules, checked before the agent acts

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:

![Claude wants to edit a generated migration, jevmem finds the team's rule in JEVMEM.md, and Claude Code asks you before the edit runs.](https://jevmem.dev/img/guard-edit-light.svg)

```text
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](https://github.com/Avinash-jetwani/jevmem/blob/main/README.md#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 rules already in your CLAUDE.md, AGENTS.md and Cursor rules: jevmem setup picks out the rules once (48 of 48 found, 7 of 93 others taken for rules), then the guard checks each call against them and names the file and line (29 of 35 rule breaks caught, 3 of 95 clean calls asked about), on a held-out set of 5 new projects, 0.7.9.](https://jevmem.dev/img/guard-files-light.svg)

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)).

#### See it in real runs

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.

**<b>A teammate's Cursor rule stops <code>npm install</code></b>: Claude Code picks npm on its own, the rule says pnpm.**

<img alt="A real Claude Code session. The Cursor rules file says don't run npm install. Asked to add lodash, Claude Code goes to run npm install lodash; jevmem makes Claude Code ask first, quoting the rule and the file and line it came from. The answer is no and npm never runs." src="https://github.com/Avinash-jetwani/jevmem/blob/main/docs/img/guard-runs/npm-install.gif" width="100%">

**<b>An edit to <code>.env</code></b>: Claude Code asks before the edit, and <code>jevmem guard log</code> shows which rule it matched.**

<img alt="A real Claude Code session. The Cursor rules file says never edit .env because it points at the live database. Asked to point the app at a local API, Claude Code goes to edit .env and asks first. After saying no, jevmem guard log shows the ask and the rule it matched." src="https://github.com/Avinash-jetwani/jevmem/blob/main/docs/img/guard-runs/env-file.gif" width="100%">

**<b>A rule you said in chat, kept for later</b>: 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.**

<img alt="Two real Claude Code sessions. In the first, the user says never hand-edit files in db/migrations; jevmem list then shows it saved as a constraint in JEVMEM.md. In a new session the user asks for a quick schema change, Claude Code goes to edit db/migrations/001_init.sql and asks first; jevmem guard log shows the saved rule it matched." src="https://github.com/Avinash-jetwani/jevmem/blob/main/docs/img/guard-runs/learned-rule.gif" width="100%">

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`.

### 2. The team: one file, shared through git

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.

![On Monday you tell Claude Code we use pnpm, not npm; jevmem saves it to JEVMEM.md, committed with your code; on Tuesday your teammate's Cursor agent looks up the rules and finds it.](https://jevmem.dev/img/team-light.svg)

### 3. No repeated mistakes

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.

![An in-memory cache broke the build; jevmem saves it as a failed approach with the reason; next month Claude gets it back as Already tried.](https://jevmem.dev/img/dead-end-light.svg)

## Beside Claude Code's memory

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](https://github.com/Avinash-jetwani/jevmem/blob/main/README.md#benchmarks-next-to-claudemd-and-claude-codes-auto-memory).

## In numbers

![A/B results: followed the project's decision 28 of 72 with no project memory, 66 of 72 with jevmem, 67 of 72 with a hand-written CLAUDE.md.](https://jevmem.dev/img/results-light.svg)

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://jevmem.dev/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://jevmem.dev/results/) and [docs/benchmark.md](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/benchmark.md).

You can check the guard row yourself: `jevmem guard bench` runs the same 274 calls with your own key, and `jevmem guard bench --cases <file>` runs calls you write against your own project's rules ([how](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/bench.md)). Results other people share go on [one page](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/community-results.md), as they are.

## What was measured

- **The sessions above:** 24 tasks in three small projects, 3 runs each, in real Claude Code 2.1.281 sessions with `claude-sonnet-5`, on 2026-09-28 and 2026-09-29 ([no memory and CLAUDE.md](https://github.com/Avinash-jetwani/jevmem/blob/main/results/ab-2026-09-28.json), [jevmem](https://github.com/Avinash-jetwani/jevmem/blob/main/results/ab-jevmem-2026-09-29-3b.json)).
- **The guard** caught 66 of 68 rule breaks, with 3–4 false asks in 206 fine calls, on a held-out set of 274 tool calls, run once on 0.6.0 and once on 0.6.1 on 2026-09-30 ([0.6.0](https://github.com/Avinash-jetwani/jevmem/blob/main/results/guard-heldout-v2-2026-09-30.json), [0.6.1](https://github.com/Avinash-jetwani/jevmem/blob/main/results/guard-heldout-v2-2026-09-30-v061.json)), and 66 of 68 with 4 false asks when run again on 0.7.9 ([results](https://github.com/Avinash-jetwani/jevmem/blob/main/results/guard-heldout-v2-2026-11-27-v079.json)). On rules it read from `CLAUDE.md`, `AGENTS.md` and Cursor rules in 5 new projects, it caught 29 of 35 rule breaks, with 3 false asks in 95 fine calls (0.7.9, run once, [results](https://github.com/Avinash-jetwani/jevmem/blob/main/results/guard-files-heldout-2026-11-27.json)).
- **Deciding what to save** takes 0.16 s and costs $0.00019 per message, and was right on save or skip for 98.5% of 66 held-out turns (jevmem 0.7.7, one run, 2026-11-08, [results](https://github.com/Avinash-jetwani/jevmem/blob/main/results/eval-heldout-2026-11-08-v077.json)).
- **A local model in Jev's place** was tried once, on 2026-10-02, with Ollaya 0.9.0 on an Apple M4 with 16 GB: on the same 66 turns Jev was right on save or skip for 65/66 at a median of 0.23 s a turn, `winnow:e4b` for 60/66 at 28.5 s, and `laya:typed-decisions` for 19/66. One run each, on one Mac ([Jev](https://github.com/Avinash-jetwani/jevmem/blob/main/results/local-model-2026-10-02-jev.json), [winnow:e4b](https://github.com/Avinash-jetwani/jevmem/blob/main/results/local-model-2026-10-02-winnow-e4b.json), [laya:typed-decisions](https://github.com/Avinash-jetwani/jevmem/blob/main/results/local-model-2026-10-02-laya-typed-decisions.json); [more in the FAQ](https://jevmem.dev/faq/#can-jevmem-run-on-a-local-model)).

The method and the limits of each number: [Does jevmem work?](https://jevmem.dev/results/)

## How it works

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.

![You say it, Jev decides, jevmem writes one line to JEVMEM.md, and next session Claude gets the lines that matter.](https://jevmem.dev/img/how-it-works-light.svg)

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).

```text
- [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:

```text
- [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.

## Install

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:
   ```bash
   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):
   ```bash
   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:

```bash
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):

```bash
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://jevmem.dev/install/#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://jevmem.dev/install/).

## Works with

Saving 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).

| | Saving | Bringing it back | The guard |
|---|---|---|---|
| **Claude Code** | Automatic, every turn | Automatic, every prompt | Asks before a call that may break a rule |
| **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) |
| **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 |
| **Claude Desktop** | When you ask it to, over MCP | When you ask it to, over MCP | – |

The 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://jevmem.dev/install/#the-cursor-plugin-076)). Client setup: [docs/mcp.md](https://github.com/Avinash-jetwani/jevmem/blob/main/docs/mcp.md) · [docs/install.md](https://jevmem.dev/install/#works-with).

## The questions this site answers

- [How do I make Claude Code remember project decisions across sessions?](https://jevmem.dev/claude-code-memory/)
- [How does jevmem compare with CLAUDE.md, Claude Code's auto memory and other memory tools?](https://jevmem.dev/compare/)
- [What is Jev used for in coding agents, and how does jevmem use it?](https://jevmem.dev/jev/)
- [Can Claude Code check commands against my project's rules before they run?](https://jevmem.dev/guard/)
- How do I use jevmem in [Cursor](https://jevmem.dev/cursor/), [Codex](https://jevmem.dev/codex/) or [Claude Desktop](https://jevmem.dev/claude-desktop/)?
- [How do I install jevmem?](https://jevmem.dev/install/)
- [Does jevmem work?](https://jevmem.dev/results/)
- [What leaves my machine?](https://jevmem.dev/privacy/)
- [Do I need a key, what does it cost, can it run on a local model, and what are the limits?](https://jevmem.dev/faq/)
- [What changed in each version?](https://jevmem.dev/whats-new/)

## The limits, in short

- jevmem needs a TypeSafe API key ([where to get one, and the install steps](https://jevmem.dev/install/)).
- Message text is sent to TypeSafe to be scored, with common secrets scrubbed first ([what leaves your machine](https://jevmem.dev/privacy/)).
- It is automatic in Claude Code and, since 0.7.4, in Cursor (as a Cursor plugin since 0.7.6, whose rule sits in every chat), automatic in Codex while `jevmem watch` runs, and in Claude Desktop only when the agent calls it; in Cursor, bringing lines back is still the agent's call ([what each tool does](https://jevmem.dev/install/#works-with)).
- Rules every task must follow reach every session only when they are marked always-on (0.7.1), by Jev's reading or yours ([jevmem next to CLAUDE.md](https://jevmem.dev/compare/)).
- The guard is a backstop, not a sandbox ([what it misses](https://jevmem.dev/guard/#limits)). In Cursor and Codex it is a hook, and a hook that times out or fails lets the call run.
- 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 ([the pane](https://jevmem.dev/pane/)).

Every limit, with the numbers: [the FAQ](https://jevmem.dev/faq/#what-are-jevmems-limits).
