00:00:00Claude Code is great, but we also know it's only great in the session.
00:00:03Any time we pick back up, we've lost everything out of the last session.
00:00:07This is Claude Mem.
00:00:09It gives Claude Code persistent and compressed memory across sessions
00:00:13while auto-capturing stuff like bug fixes and decisions.
00:00:16Then brings that context back right when we need it.
00:00:19All open source, no API keys.
00:00:21We have videos coming out all the time.
00:00:23Be sure to subscribe.
00:00:30The setup here is really quick and you can get all this from the Claude Mem repo.
00:00:34I'll assume you already have Claude Code installed as I do,
00:00:37so adding Claude Mem is basically two commands inside Claude.
00:00:41First, fire up Claude, then just run this command right here.
00:00:45After that, we can install it with the command right here.
00:00:48Both of these I got off the repo.
00:00:50I'm going to restart Claude and you're done.
00:00:52That is Claude Mem right on your system.
00:00:55I didn't have to play around with any config files or API keys, which is a huge bonus.
00:00:59And here's the part I really like.
00:01:01It runs locally, so all this data it's capturing is staying on your machine.
00:01:06All right, let me actually show you all the good stuff here.
00:01:09It'll be quick so you can get the gist of it because that's what matters.
00:01:12We're inside a fresh project folder, just some fast API I was messing around with.
00:01:17But for this, we're going to make a super basic Python script just to cover the point.
00:01:22In the first session, I'm going to ask Claude to create a recursive Fibonacci py file,
00:01:26but skip handling negative inputs.
00:01:29As expected, Claude generates the file and opening it, it all looks good.
00:01:34So now I'm going to run with this and I'm going to say I'll run it with a negative number.
00:01:38For obvious reasons, we get an error.
00:01:41So I'll just tell Claude add a value error when n is negative.
00:01:45Claude updates the code.
00:01:47I rerun it, clean error message, the bugs fixed.
00:01:50Okay, now here's the thing.
00:01:52Claude can do that.
00:01:52That was super easy.
00:01:54While we're doing that, though, Claude Mem is quietly watching in the background.
00:01:58It's logging what just happened.
00:02:00This runs completely locally on your local host, so it's always refreshing.
00:02:05We can do things here like the bug, right?
00:02:08I can view this.
00:02:09I can view the fix, the reasoning, and the code diff.
00:02:13This is really the whole Claude Mem web UI.
00:02:16And you can see real-time entries that are categorized and there's our bug fixed.
00:02:20So now comes the real test because the first part is already nice.
00:02:24It was cool, right, to see this, but basically it's just nice looking logs.
00:02:28I'm going to go in here and I'm going to end the current session.
00:02:31I'm going to clear out my terminal, and I'm going to fire back up Claude.
00:02:35Now that I'm in a new session, so I'm going to ask Claude to pick back up where we left off.
00:02:41Let me just ask it to recall the Fibonacci bug we fixed last time.
00:02:45And there it is.
00:02:48It's pulling in that context.
00:02:49Claude pulls the exact fix back without me explaining the whole story again.
00:02:54And I can go one step further, I can ask it to search for Fibonacci bug fix.
00:02:58Now I get the compressed summary, and if I expand it, I get the full context.
00:03:05I don't have to waste time here copying and pasting or trying to
00:03:08re-explain what we were doing before.
00:03:10It just remembers.
00:03:12This is huge because now we can enter new sessions, leave these sessions,
00:03:15and Claude Mem is running in the background to help us out.
00:03:18There are a lot of things here that I love that are going to help you out.
00:03:21First, it saves a huge amount of time, so you can stop reloading context every session.
00:03:26Then it's actually pretty token efficient.
00:03:29Claude Mem compresses memories by up to 10x,
00:03:32so we aren't hitting our limits as fast as we once were.
00:03:35Finally, you can actually find stuff.
00:03:37You can search memories by integrated tags that we have in Claude Mem.
00:03:42Type things like bug fix or decision, file path or keywords.
00:03:46That pops up in our UI.
00:03:48That's what makes this really useful to us in these larger projects,
00:03:51and unlike Claude's basic memory file, this is automatic.
00:03:55Plus, it's open source, so if you want to tweak it, you can.
00:03:58Long story short, that's Claude Mem, right?
00:04:00Claude Mem saves us time.
00:04:02This is ideally a tool to speed up your workflow and save you a bunch of tokens.
00:04:06Try it out on your project.
00:04:07I think you'll immediately feel the difference.
00:04:09If this helped, be sure to hit that subscribe button, and we'll see you in another video.