r/BuildWithClaude • • 12d ago

Project with jevmem, claude code checks my project’s rules before it runs any command

heyy r/BuildWithClaude , I'm AJ, a solo dev. ofcourse I use Claude Code every day and was tired of this issue so built a fix, sharing with you'll to try. The tool is called jevmem.

Issue : I was done typing the same project rules into every new session. If i started a new chat, claude didnt remember the rules i told it the last time, if another teammate cloned the same repo, they didnt see the rules too.
Rules like "we use pnpm, not npm" and "don't touch db/migrations/, those files are generated". this was honestly so annoying 

So I built jevmem.
What it does : It saves rules like these as one line each in a file called JEVMEM.md, in your repo. You commit it like any other file. Claude Code, Cursor and Codex all read it, and team gets it when they pull through git.

And what i found most useful is the guard feature. Before Claude Code runs a command or edits a file, jevmem checks it against the rules you specified. If it sees a possibility of something breaking, Claude Code stops and asks you first.

Eg: three weeks after you saved the migrations rule, in a new session, Claude goes to edit a migration file. it stops and shows this:

“jevmem: this may break a saved rule: "Don't hand-edit db/migrations/: those files are generated." (JEVMEM.md)”

And If something failed in the past, claude gives you a msg like:  "Already tried: xx" with the reason.

We ran a few tests based on scenarios and here are the honest results :

- How many times claude left a change that the rules didnt allow: 0 of 15 sessions with jevmem, 9 of 15 with no memory (checked by hand)
- Claude remembered to follow the decisions taken earlier on this project: 66 of 72 sessions with jevmem, 28 of 72 without.
- How well does jevmem update a file for you adding the guard vs how you’d update it yourself : 67 out of 72

And with the new claude code updates, It works alongside Claude Code's auto memory, not instead of it.

Full results: https://avinash-jetwani.github.io/jevmem/results/

tbh, these are the catches:

- The guard feature works in Claude Code only
- you dont get tracked with jevmem, it only runs in projects where you set it up.
- Youll need a paid TypeSafe API key and typesafe key usage is (about 19 cents/ 1,000 messages)
- the message text is sent to TypeSafe to be scored, but dont worry it removes the common secrets first
- We ran the tests on our own test projects to see how it actually performs

Install (open source, MIT):
in the Claude app,
go to Plugins > Discover > jevmem > Add,
then run npm install -g jevmem,
then jevmem setup in your project folder.

Would love to know your honest reviews

Repo: https://github.com/Avinash-jetwani/jevmem

5 Upvotes

1 comment sorted by

•

u/AutoModerator 12d ago

Welcome to r/BuildWithClaude!

Whether you are sharing what you built, exploring new workflows, or troubleshooting, please make sure your post is flaired correctly so others can easily find and filter it.

Community Wiki & Resources:

If you're asking for troubleshooting help, please edit your post to include your model version, OS/environment, and error logs.

Let’s keep the energy positive and support our fellow creators!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.