Watch on YouTubePlayPlays from YouTube. Google's privacy policy (opens in a new tab) applies.
Adam explains where a lasting rule for Claude can live (the chat, CLAUDE.md or Claude's memory), then asks Claude to remember never to commit without his approval, in every project on his computer.
What you'll learn
- A request in plain chat only lasts for the current conversation; a new session won't know it.
- CLAUDE.md holds instructions and gotchas for a project; some repos put rules like "don't commit" there (or in AGENTS.md for other AI agents).
- Claude's memory: small markdown files, at the project level or the global/machine level; Claude sometimes saves them on its own and saves them when asked.
- The word "remember" usually points Claude at its memory system, but Claude may choose CLAUDE.md instead.
- A rule "for every project on my computer" can land in the global (user-level) CLAUDE.md.
- Personal preferences can live in your global files; project facts that teammates would benefit from shouldn't.
Chapters
- 00:00Why a chat request doesn't stick
- 00:58CLAUDE.md or Claude's memory
- 02:36Asking Claude to remember a rule
- 03:33Where Claude saved the rule
- 00:01Okay, um there is one more thing I would like us to take care of before we fully focus on the refinements to the my bookings view, and that is
- 00:09I would like Claude to remember to never ever commit anything on its own without our explicit approval or knowledge.
- 00:19Uh I'm saying this because I had, you know, Claude do this uh to me uh every now and then, and I wouldn't really like it.
- 00:26And um there is actually a way or there is a couple of ways for us to tell it to Claude.
- 00:31Now, first of all, if I were just to ask it Claude over here, like using plain language, like something along the lines of, hey, by the way, please don't
- 00:38commit anything until I ask you to do so.
- 00:41Um you know, chances are Claude is going to just simply acknowledge that request and it's going to do nothing about it, like nothing else.
- 00:49It's going to be saved in the context of this conversation, but the moment I start a new session, um Claude will now no longer have access to this specific
- 00:57request. So another thing we could do is um remember how we talked about that CLAUDE.md file, which is a like a global set of instructions uh or gotchas,
- 01:08um or like configuration tips for any particular project.
- 01:12We could definitely consider using this as a space to insert that rule.
- 01:17In fact, I have seen, you know, some code repositories have these sort of rules uh explicitly stated in the CLAUDE.md file or AGENTS.md files uh if they
- 01:28are working with other AI coding agents.
- 01:31Um and here, however, for the purpose of this video, and also because I believe this to be more of my personal preference thing, uh I'm going to um I'm
- 01:41going to use a different system of Claude remembering things for us.
- 01:45And this is a memory system.
- 01:47So Claude can create memories.
- 01:50In fact, uh sometimes it is going to be creating memories on its own, and then we it can also create memories whenever we ask it to do so.
- 01:58Each memory is going to be a simple small markdown file and Claude uh can create these memories on multiple different levels.
- 02:08Uh it can create a memory on the project level, but it can also create a memory on the like global or like machine level.
- 02:16So that memory is actually it sticks with us uh and it follows us along.
- 02:21Um and I'm actually going to ask Claude to remember.
- 02:25Usually when you use that keyword, when you ask Claude to remember something, it's going to know, okay, he probably meant, I mean he as me, he probably meant to
- 02:34use that memory system.
- 02:36So I'm going to try it out like this.
- 02:39Uh by the way, Claude, I would like you to remember going forward not to ever make a commit without my explicit approval.
- 02:48Um and I would like you to remember this for every project on my computer.
- 02:53Okay? And I'm saying this uh I'm explicitly adding this additional line here about uh how I would like it to remember for every project on my computer.
- 03:06And when I hit send, there are again two ways uh Claude can interpret it.
- 03:10So and we'll see which one Claude is going to choose.
- 03:14It can either create a memory for us or it can go back to that CLAUDE.md file which we also set up a little bit earlier in the course
- 03:22on the like a computer level with instructions on how to talk to us as designers.
- 03:28Let's see which route Claude decides to use.
- 03:32Okay. Well, it seems like this time Claude decided to just uh input this information into our CLAUDE.md file, which again, I cannot really open up from this folder
- 03:42because this is a project folder and that CLAUDE.md file that um that Claude refers to is uh that like global user CLAUDE.md.
- 03:51Um and it's basically says, never make a commit without my explicit approval in any project ask me every every time even if I approved a commit earlier in the
- 04:01same conversation. Okay, the last part is a bit too much, but that's like classic cloud experience for you.
- 04:06Um okay, I'm going to let it slide even though I really wanted to make this about the memory system.
- 04:14Uh you now know it is there, uh but it's like really fine to have this role being stored in our global CLAUDE.md file.
- 04:21One thing we need to be really careful about is not using our personal um like home directory, a CLAUDE.md file or our personal memory system to store information
- 04:33about uh which are project specific um that other engineers or other designers working with us on the same codebase would uh benefit from from having access to.
- 04:45Um so that is a general rule of thumb, right?
- 04:47Uh and with that, let's uh let's continue and in the next video, we are going to start iterating on the my bookings view.