Modern Creator Network
Greg · YouTube · 35:48

Master Claude Code - Full Beginners Guide to Every Command

A 35-minute command-by-command walkthrough of every built-in slash command in Claude Code, with live terminal demos and Anthropic docs side-by-side.

Posted
10 months ago
Duration
Format
Tutorial
educational
Channel
G
Greg
§ 01 · The Hook

The bait, then the rug-pull.

Every beginner who opens Claude Code for the first time stares at a terminal prompt and thinks: what do I even type? This 35-minute encyclopedic walkthrough covers every slash command in docs order, live demo included. The promise is on the thumbnail before you click.

§ · Stated Promise

What the video promised.

stated at 00:12I will walk you through all the commands that Claude Code has and show you what they do and how to use them effectively.delivered at 34:57
§ · Chapters

Where the time goes.

00:0001:07

01 · Intro + /bug

Promise stated. /bug: report directly to Anthropic; GitHub issues page shown with 1.5k open issues.

01:0704:01

02 · /clear

Token cost compounding explained: message 2 costs 1500 tokens not 500. Live /clear demo shows context wiped.

04:0106:50

03 · /compact

Auto-compact at 95% capacity. Custom summarization instructions demo. Ctrl+R to inspect summary.

06:5011:56

04 · /config

All 6 settings: auto-compact, use-todo, verbose, theme, notifications, editor mode, model selector.

11:5612:25

05 · /cost

API-only usage tracker. No output on Max/Pro plans.

12:2512:49

06 · /doctor

npm permissions health check.

12:4913:13

07 · /help

Full inline command list.

13:1315:50

08 · /init

Scans codebase, generates CLAUDE.md. Acts as persistent project memory.

15:5016:11

09 · /login

Two methods: subscription (Pro/Max) vs API (Console).

16:1116:36

10 · /logout

Prints session summary: total cost, duration, model breakdown.

16:3619:03

11 · /mcp

MCP as translator/interface layer. Postgres example. Anthropic docs walkthrough. No install demo.

19:0327:00

12 · /memory

Three memory types (project, user, project-local deprecated). @-import syntax. # shortcut. Best practices: specific, structured, lean.

27:0028:22

13 · /model

Default routing: Opus 4 until 20% session limit, then Sonnet 4. How to pin a specific model ID.

28:2234:17

14 · /permissions

Four rule types: bash (exact + wildcard), read/edit, web fetch, MCP. Allow/deny/workspace tabs. Safety warning.

34:1735:48

15 · /pr_comments /review /status /terminal-setup /vim + Outro

Rapid-fire final commands. /status shows account/memory/model. Comment CTA.

§ · Storyboard

Visual structure at a glance.

thumbnail/title card
hookthumbnail/title card00:00
Anthropic docs slash commands list
promiseAnthropic docs slash commands list00:09
Claude terminal /clear empty state
valueClaude terminal /clear empty state03:01
/config settings panel
value/config settings panel08:22
Live todo list in terminal
valueLive todo list in terminal14:00
MCP docs page
valueMCP docs page19:03
Memory types table on docs
valueMemory types table on docs23:36
CLAUDE.md with coding standards in VS Code
valueCLAUDE.md with coding standards in VS Code25:00
/status output in terminal
cta/status output in terminal34:17
Outro docs page
ctaOutro docs page34:57
§ · Frameworks

Named ideas worth stealing.

01:24concept

Token Cost Compounding

Every message re-sends all prior messages. Use /clear after each discrete task.

Steal forOnboarding explainer on why context management matters
20:04list

Three Memory Types

  1. Project memory (./CLAUDE.md)
  2. User memory (~/.claude/CLAUDE.md)
  3. Project-local (deprecated)

Project = codebase rules. User = personal preferences across all projects. @-import keeps CLAUDE.md lean.

Steal forJoeFlow CLAUDE.md setup
29:22list

Four Permission Rule Types

  1. Bash (exact match or wildcard)
  2. Read/Edit (gitignore-aware)
  3. WebFetch (domain)
  4. MCP (server or tool)

Granular control over what Claude auto-runs. Wildcards supported.

Steal forAny Claude Code workflow where approval prompts slow you down
§ · Quotables

Lines you could clip.

01:24
Message two actually costs a thousand five hundred tokens.
Clearest beginner explanation of context cost compoundingTikTok hook on Claude token usage
03:27
A good rule of thumb is to run it whenever you finish a task.
Actionable, zero jargonNewsletter pull-quote
27:46
I have seen users with thousands of memory entries, and that usually ends up confusing both the user and the model.
Counter-intuitive warning, high credibilityIG reel on Claude Code memory
33:46
Be very careful with permissions. Do not just copy someone elses permission rules unless you understand exactly what each command does.
Safety warning that builds trustCommunity post or YouTube shorts
§ · Pacing

How they spent the runtime.

Hook length67s
Info densityhigh
Filler5%
§ · Resources Mentioned

Things they pointed at.

§ · CTA Breakdown

How they asked for the click.

35:22subscribe
If you have any questions or want me to cover something specific in a future video, feel free to drop a comment below.

Low-pressure soft CTA, comment solicitation only. Leaves viewer wanting the MCP and memory deep-dives promised.

§ · The Script

Word for word.

HOOKopening / re-engagementCTAthe pitch
00:00HOOKHey, everyone. If you're new to Cloud Code, you might feel overwhelmed by all the commands available and wonder what they all do. So in this video, I'll walk you through all the commands that Cloud Code has and show you what they do and how to use them effectively. I'm going to assume you already have ClawdCode installed. Let's get started. The first command is the bug command. Since ClawdCode is still a relatively new tool, the team at Anthropic is actively building and improving it. And like any evolving product, that means bugs can pop up. If you come across a bug while coding, you can use the slash bug command to report it directly to the team. It's a simple way to contribute and just improve the platform. What's really cool is that Anthropic also maintains a public GitHub page for Claude code, and this is a page where you can see all the current issues that are being tracked as well as feature request and any bugs. It's very active, and you'll often see the actual Cloud Code developers engaging with users here, talking through issues, bugs, and features.
01:01HOOKSo if you're interested in the development of Cloud Code, this is a great place to get involved in. Next up is the clear command, and it's probably the most important command in Claude code. So if there's one command to know, it's this one. What clear does is that it clears out your entire current chat conversation, all the context, and starts a brand new conversation.
01:24So why is this such a big deal? It's because large language models are stateless. That means they don't actually remember past messages between chats. Instead, every time you send a message in the same conversation window, Claude reprocesses the entire conversation history to understand the context. So let's just break this down with a simplified example. Let's say you send message one, which costs a thousand tokens, then you send message two, which on its own costs 500 tokens. You would think message two would only cost 500 tokens, but that's not how it works. Because LLMs are stateless,
02:00the model doesn't remember anything you sent in message one. And because you are still in the same chat window, the model assumes that every message you sent before is still relevant. So what the model will do is that it will send all of message one again plus message two. So in reality, message two actually costs a thousand 500 tokens. So if you send message three, the actual token cost is going to be message one plus message two plus message three. So you can see that with every follow-up message you send within the same chat window, each message is going to cost more and more tokens,
02:38which means if you have the super long chat windows with Claude, you will quickly use up all your tokens, and that's where this clear command comes in. So in this example, I have a long conversation going on. It's just pages and pages and pages. So every new message you send in here is also gonna send all of this as part of the input, and you don't want that. So when you run slash clear,
03:04what this is going to do is that it's gonna clear up all this context and start a brand new chat. So now you can see that once I ran it, there's no more context. Right? So if I scroll up, there's nothing left. All that context has been cleared up, and now we have a brand new chat. So now your next message you send will be sent without the entire previous context, and this helps reduce unnecessary
03:25token usage. So when should you use this clear command? You want to use this command as often as possible. A good rule of thumb is to run it whenever you finish a task. You don't want multiple unrelated tasks piling up in the same chat because that's just gonna blow it up your token count and make responses less focused. And just a quick note, this is a simplified example, and I do have a video that goes into more depth on how to optimize your token usage and how Cloudco calculates all of it. So if you're interested, go check it out. I'll link it in the description below.
04:02Next up is the compact command. The compact command is one of ClaudeCode's tools for managing token usage, similar to clear but with a different approach. While clear wipes out your chat history completely and starts from scratch, compact helps you reduce token usage by summarizing your conversation and starting a new chat with that summary. It's a way to keep important context without carrying every message forward. And this is how it works. When you run slash compact,
04:31Claude takes your entire current conversation and creates a summary of it and starts a new chat window with that summary preloaded. Now by default, if you were just to run slash compact, what this is gonna do is it's going to create a summary of your entire
04:48conversation. So everything you have in your current conversation, it's gonna take that entire thing and summarize it. And just another thing to note here, when Claude code reaches 95% capacity, so when this thing right here says there's only 5% left, it's going to auto compact your conversation. So this is Claude code's way to help you out. Now this default way of compacting is fine in many cases, but sometimes it's not what you want. You can actually customize what Claude summarizes by adding specific instructions. So for example, if I was just to do slash compact,
05:23you can see that I have this optional custom summarization instruction. So I can say things like summarize just the to do items, and this will summarize all the to do items I have within my current conversation. And I can maybe say summarize
05:38only the last conversation because maybe that's the only thing that's relevant. So Claude code is just gonna go through here, find my last conversation, and just summarize it. Or I can say something like, keep the summary to a max of 500 words or something, and this is gonna further limit what Claude code summarizes. So there's a lot of different ways to provide what summary you want to Claude. So let's just say for this example, I just wanna say summarize
06:04the last conversation. So what this is gonna do is Claude's gonna read my last conversation, provide a summary of it, open it up, and then preload it. So just give it a few seconds, and let's see what happens. Okay. So it looks like Claude code has finished summarizing my conversation. And you can see right here, this is that summary. So this is my previous conversation compacted. Right? It read through a bunch stuff, and it provide a summary.
06:28So if I was just to hit control r, this will show me what it summarized. So this is the summary. So now when I continue this conversation, this is the only thing that's going to be part of my context. It's no longer going to be the entire previous conversation. And what's even better is I have a summary of my previous conversation so I can just quickly pick up where I left off.
06:50Next up is the config command. So this command lets you customize Claude code's behavior to fit how you like to work. Let's walk through each option and show you what it does. So let's go to Claude code and write slash config. And in here, this is where you will find all your settings. So the first item is this auto compact. This setting controls whether ClaudeCode will automatically
07:13compact your conversation once it reaches 95% capacity. So remember in the compact command that we saw previously,
07:21we had that little status indicator at the bottom. So when that status indicator reaches 5%, ClawdCode will auto compact, and this is the setting that determines if you want it on or off. Now I recommend you leaving this on so you don't have to worry about hitting your limit and having everything just break. Next up is the use to do setting. This is one of the key reasons ClaudeCode feels more focused and effective compared to other AI coding tools. When you ask ClaudeCode to build a new feature, ClaudeCode
07:51automatically creates a internal to do list and follows that list step by step. This helps it stay on track even as the task gets complex. This is important because LLMs tend to lose focus in long conversations.
08:06But with a to do list, Claude code keeps its objectives clear and avoids getting lost in the details. So I 100% recommend you keep this setting as true. So let me show you what I mean with this to do list. I'm just gonna exit out of here. I am in this anal fax directory,
08:24and I am just going to ask ClaudeCode to create a new feature to allow users to add multiple animals via a endpoint.
08:37So I'm just gonna let this run and show you that to do list. Okay. So now that it finished running, let me show you Claude Code's thinking process. So if I scroll to the top, this is the request that I ask Cloud Code to do just to create a new API endpoint. So this right here is a to do list that Cloud Code is creating internally. Now remember, I did not ask Cloud Code to create any to do list. This is simply something that Cloud Code has created internally.
09:04And this is just saying, hey. The first thing that we should do is explore the code base, then the second thing to do is design the new endpoints and so on and so on. So the first step is to explore the code base. So you can see here, it does that right here. Let's explore the code structure. Structure. So it goes through here. It reads a bunch of files. Right? So now that it finished reading, it finished that first item. So now it's gonna update that to do list. You can see in this update to do list, that first item is now complete. So what's the next step? Well, the next step is to design that new endpoint. Okay? So what is it gonna do? Well, I am going to create a new schema for it because that's designing it. Right? So now it is here, and this is gonna ask it to make some edits to the animal dot p y file that I have. So you can see that Claude code is following this to do list, and it's a really cool way for Claude code to keep focus on what it needs to do. So going back to the config,
09:56I 100% recommend you keep this as true. Next is the verbose output. If you enable this, it's going to show you all of Claude's thinking process, like what files it's searching through, what functions it's reading, and so on. This is great if you are someone who wants full visibility into the model's decision making. But a heads up, if you enable this, it will literally output you the entire file's content in your chat window. So if your file content is a thousand lines of code, it is literally gonna print out a thousand lines of code for you. So what I recommend you do is to keep the setting as false, which is the default setting. And if you need to dig into its thinking process, you can actually click control r, and that will toggle the verbose view on and off whenever you need it. So the next one is theme. This one is simple. Just choose between light mode or dark mode. So just click on it, and you can choose all the different types of modes you want. I'm just gonna keep mine on light mode. Next is notification.
10:57Just keep this as auto. Next is this editor mode so you have normal and Vim. If you know what Vim is and want to use Vim style key binding inside ClaudeCode, you can switch to Vim here. Otherwise, don't worry about it. And the last setting is model. This setting lets you choose which model ClaudeCode is going to use. So by default, ClaudeCode is going to use this setting, and that means that ClaudeCode is gonna use Opus four and automatically switch to Sonnet four when needed. But if you want, you can specify a model you want here manually. For example, if you want to only use Opus four, then just click on this. If you only wanna use Sonnet four, just click on this. So this is just a way to switch models. And just a note here, OPUS four is only available for max plan users. So if you are a pro plan user, you won't have this option, and the default option actually defaults to SONNET four. So let's just say I wanna use SONNET four. Hit this, and it's going back to SONNET. And that's it for the config command.
11:57The next command is the cost command. So this command shows you how much you have spent using Claude code, but this is only if you are using the API version. If you're on the Macs or the Pro plan, this command won't return any data since those plans don't track cost the same way. But if you're using the API version, if you just do slash cost, this is just gonna tell you how much you have used so far in your session. So it's a pretty good way just to keep track of all your cost.
12:25The next command is the doctor command, and it's a simple diagnostic tool. It checks whether your ClaudeCode installation is working properly. So if we type slash doctor, this is mostly just gonna tell us whether ClaudeCode has the necessary NPM permissions to function properly. This is just a quick way to confirm everything's configured correctly, especially if you are troubleshooting.
12:48The help command is exactly what it sounds like. So if we just do slash help, it gives you a full list of all the available commands in Claude code along with a short description of what each one does. So if you scroll up, we could kinda see that these are all the commands that are available to us along with description of what they do. And if you're just getting started, definitely make use of it.
13:13The init command is your project starting point in Claude code. When you run it, Claude scans your entire code base reading every single file and generates a file called Claude dot m d. So let's do that right now for the code base I'm in. So right now, I'm in Claude code, and I am in this animal fax directory. So let's just run slash init and see what happens. And this command is going to take a while because it's gonna read through every single file.
13:41Okay. So now that it finished, you can see that this is that file that it's going to generate for you. So let's just hit yes, and it's gonna create that clawed m p file. So just hit yes, and it's gonna write that file to your code base. Okay. So now that it finished, let me open up Versus Code, and this right here is that new file that just got created. And within this file, you will find a high level summary of your project. So what it does, how it's structured, key components,
14:08important functions, and so on. So if we look at this cloth. M d file that was created in my case, I can see that we have some stuff in terms of our development commands. We have stuff on our architecture overview, how the project is structured, what key components there are. So there's a lot of high level summary within this file, and it's very helpful for the user as well as clawed code. So this file
14:33essentially acts as a memory for your codebase. Now, by default, large language models like Claude are stateless, which means they don't remember anything from one chat to the next. Every new conversation starts with a blank slate unless you give it context. And that's where this Claw. Md file comes in. When you run slash init, ClawdCode builds this file as a persistent summary of your project.
14:59Then when you start a new conversation, Claude automatically reads this file first. That way, it already understands the context of your project before you ask it to do anything. So even though the model itself can't retain memory, this claw dot m d file gives it a way to simulate memory. And, yes, this is the same file used by the memory command, which we will cover in more details later. You should always run slash init when using clawed code on a project for the first time, and this is something Anthropic actually recommends you do. Also, keep in mind that you can edit the cloth. Md file manually if you ever want to clarify or update the summary as your codebase evolves. So this is just a text file, you can just write and add stuff as needed.
15:50The log in command is pretty straight straightforward. It lets you log in to Cloud Code. The one important thing to note here is that when you log in, there's two methods. You can either log in with the subscription plan, which is for those on the pro plan or the max plan, and there's also a login through the API plan. So just make sure you choose the correct one. The logout command is also pretty straightforward. It logs you out of clogged code. But here's a useful feature.
16:17When you log out of Claude code, it actually gives you a summary of your session so you can see how much that session cost, how long it ran for, and what type of models that session used. So it's a great way to track your usage and get a quick snapshot of what Claude did behind the scenes. The MCP command allows you to connect Claude code with external MCP servers.
16:42Now MCP stands for model context protocol, and at a high level, it's a protocol that standardizes how large language models like Claude interact with external tools, systems, and applications.
16:55Now this is a big topic and can get very technical, so in this video, I'll stick to a high level explanation of what MCP is and why it's useful. I won't cover how to install it or how to set up a MCP server here since it's a more involved process, and the installation differs depending on what servers you want installed. But don't worry. I'll have dedicated videos on SCP soon. The easiest way to understand MCP is through a example.
17:24So by default, LLMs like Claude only understand text, some images, and maybe PDFs. They can't directly interact with things like a Postgres database. So if you ask Claude, hey. What does database x y z do? It won't know how to access it. It won't know how to read the tables or even understand its structure. That's because LLMs can't natively connect to or operate external systems. They need everything in a textual format.
17:54So this is exactly where MCP comes in. A MCP server, for example, one built for Postgres, acts as a kind of translator or interface layer. It exposes the structure, functionality, and data of the database in a way that Claude can understand and interact with using natural language.
18:15So with a MCP connection, Claude can reason about, query, or even help modify things like a Postgres database because it now has a structured way to interact with through a MCP layer. So this is a powerful concept with a lot of potential and definitely something I will cover more deeply in future videos. But if you're interested, go to the site here and read through this page. It has a lot of good information on what MCP is, how to configure MCP servers,
18:45how to understand the different scoping levels for MCP servers, how to set up authentication. And even here, it has a example on how to connect to a Postgres MCP server. So there's a lot of information on this site, so definitely go here and give it a read if you're interested. The memory command builds directly on what we discussed earlier with the slash init command. To quickly recap, when you run slash init,
19:12Claude co scans your project and creates a file called Claude dot m d. So this is that file right here. This is that Claude dot m d file that is within my codebase called AnimalFacts. So this file acts as the memory of your codebase, storing a summary of your project structure, components,
19:32and key behaviors. Since Claude itself is stateless, meaning it doesn't retain memory between chats, this file gives it a persistent reusable
19:41context for future conversations. Now memory in Claude code is a deep topic and also very subjective. How you use it will vary depending on your workflow and preferences. So in this video, I'll just give you a high level overview of what memory is and how to use it. And in a future video, we'll deep dive into it further. Okay. So at a high level, ClaudeCode supports three types of memories. There's project memory, there's user memory, and then there's this project memory local.
20:13So just ignore this one for now because it's no longer being used. So we'll just focus on these two here. Now as a FYI, all the memory files that gets created are all named claw dot m d, so it can be a bit confusing. So the first one is this project memory. So this is the claw dot m d file that gets created in your current project directory when you run slash init. So this is that file right here. So this is the project that I have, and this is that file right there within the root folder. So when I run slash init, this is gonna get all populated, and it's just a summary of what this codebait does. So every time you work within this directory,
20:53Claude will reference this file for context. So in this file, this is where you can store things like a high level architectural description, which is what gets auto populated when you run slash init. You can also have things like coding standards specific to this project. So let's just say that here, I want to have a section for coding standards. So I can have this little section right here. So maybe for this project, I wanna use four spaces for indentation.
21:19I wanna have a max length of 80 characters. I wanna make sure that there's specific schemas for data models and so forth. So there's just a lot of things you could do here. You could have whatever coding standards you want. Now just keep in mind, this project memory should include things relevant to the whole code base. So the things you'll write here should not be specific to one file or subfolder.
21:43Okay. Now let's look at the second one, user memory. This is a global memory file, which means it applies across all your projects. So whatever project you do within Claude code, this user memory file will always be called. So let's see how we can actually create it. So let's just go into Claude code, and I'm just gonna write slash memory. And here, this is just gonna tell me what type of memories I So you can see here that I have one project memory, and it's that claw dot m d file that we looked at earlier. And here, we have the three levels of memory. So we have the project memory with the local one. Ignore this one, and then this is that user memory. So right now, we have zero memories in here. So if we click on this, this is gonna open up a new file, and this new file is the user memory file. This is where you wanna store personal preferences that apply across all your projects. So, for example,
22:37this is where you can have things like user preferences. For example, you want ClaudeCode to call you a certain name, you could put it here. If you want ClaudeCode to keep your responses short and concise, you could mention it here. And you can also have ClaudeCode avoid certain phrases. So with Sonnet four, it really likes to use phrases like you're absolutely correct and this is perfect. So if you don't like that, you could tell ClaudeCode to avoid that. You can tell Clarcode to always respond in markdown format, use bullet points instead of paragraphs.
23:06And for coding style preferences, you can say that you like to use snake case. You can tell Clarcode to avoid short variable names like x and temp. So there's a lot of things you can include in this user memory file, and the things I have here is just a quick example, and you can quickly adapt this to your own personal preferences. Okay. Now let's look at how to import custom files into memories. Okay. Now let's look at how to import custom files into memories. So with ClawdCode,
23:36they also give you the ability to import custom files that can act as your own memory. So let's go back to our code base memory file. So that's this one right here. So this is the ClawdCode to know
24:00that I want ClawdCode to know in in terms terms of how to write a git commit message. So instead of having all of this within here, I can write that instruction here. And then within this memory file here, I can simply just say, hey. Reference this file in this location. And ClaudeCode is smart enough to know that if it sees this at sign, it's going to look into this file and pull in the necessary information and make it as part of the memory. So the ability to import custom files into this memory file is very nice, and it just keeps your memory file short and organized.
24:37Okay. Now let's look at a quick way to add something to memory with the memory hashtag sign. So if I am in Claude code and I want to add something to memory directly without having to go to my Claude dot m d file, what I can do is I can just do hashtag, and this will tell me to add a memory. So let's say that I wanna add a memory of prefer map and filter
25:00over for loops. And if I hit enter, now this is gonna tell me where I wanna save it. So let's say that I wanna save this memory into our project memory. So let's just hit enter, and this is gonna save it into that memory.
25:14So now that it finished, let's go look at that memory. So if we open up our project memory. Right? So we are in our Claw dot m d within our animal facts file. This is that exact memory that we ask claud code to create for us, and it's stored right here. Okay. Now let's go look at some best practices when it comes to claud memories. So when it comes to best practices, you always wanna be specific, and that makes sense. You always wanna be as descriptive as possible. So you don't wanna have general instructions like use comments and functions. That's not very helpful. Instead, you want to say all functions must include a multiline comment with a short description, parameter list, dependencies, and return type. That is much more specific, and Clarica will have a better idea of what to do with it. And the second is you always want to use structure to organize. So that means you want to kinda format each individual memory as a bullet point within a group. So in my case here, I have a group for coding standards. I have a group for local development.
26:15So you just don't want to have these things scattered throughout the memory file. You wanna kinda put these into logical groupings. So memory is a very powerful tool, and it can easily get overwhelming. Now my personal recommendation is that if you are just starting with Claude code, don't worry too much about memory at first. So just use Claude code for a while and just see what type of patterns and preferences come up naturally,
26:42and then slowly start to add those to your memory over time. Also, another important thing to note here is do not go overboard. I have seen users with thousands of memory entries, and that usually ends up confusing both the user and the model. So keep your memory files lean. The model command lets you choose exactly which Claude model you want Claude code to use when processing your request.
27:08So if I go to slash model, by default, if you're on the max plan, Clogcode will use Opus four until you reach 20% of your session's usage limits, then it will switch to Sonnet four. If you're on the pro plan, it will just default to Sonnet four. Now if you don't like this default option, you can specify which model you want Claude Co. To use. So in this case, I can decide if I wanna use Opus four or Sonnet four. Now if you wanna use a model that's not Opus four or Sonnet four, for example, let's say you wanna use SONNET 3.7
27:42or even 3.5, what you can do is you can go to this website here. So this is just Anthropix models website. So if you go here and scroll down, there is a list of all the models that Claude Co. Currently has. And let's just say that you want to use Claude Sonnet 3.5. So what you're gonna do is just copy this name here. Now it's important if you're using Claude Co. To copy the name from this column here. So copy from this first column. Copy this name, go back to here, exit out, and just write slash model,
28:13and then just paste in that name. And now if you hit enter, this is gonna set Claudcode to using that specific model. And that's it. The permissions command lets you control which tools ClaudeCode can and cannot automatically run-in your codebase. If you have used ClaudeCode before, you have probably run into this situation. Claw tries to run a command, then pauses to ask for your approval, runs a bit more, then stops again, waiting again for your approval for the next action, and so on and so on. So this is helpful for safety, but when it comes to development speed, it can really slow you down. That's where the permissions command comes in. Once you are comfortable with Claude's tools,
28:54you can specify which commands it's allowed to run without asking you and which one should still require manual approval. So code supports four types of permission rules. So Claude code supports four types of permission rules. You have bash, you have read and edit, you have web fetch, and then you have MCP.
29:15So let's break each one down. The first is the bash commands. So for those new to the terminal or Linux, which is what Mac is based off, so this also applies to Mac users as well, bash commands are terminal instructions like running scripts, searching and editing text files, installing packages, and so on. And when it comes to permissions for bash commands,
29:38you can allow specific bash commands using exact matches or wildcards. Okay. So now let's look at this in Claude code. So if I go to Claude code and write slash permissions, you can see that there's three tabs. I have the allow, I have the deny, and I have the workspace tab. So let's just say, for example, that you do a lot of Node. Js projects, and you want Cloud Code to always be able to run NPM run build without having you to always approve it in any projects. So if I go to this allowed tab and I hit enter on here so in here, if I write bash n p m run build,
30:15this is now going to let Cloud Code run this command without having you to ever approve it again. And another cool thing is that Cloud Code also supports wildcards for these bash commands. So let's take a look at this example right here. So for this example, I have n p m run test wildcard. So this is kinda saying that anytime Cloud Code encounters a command that starts with n p m run test, it will always approve it. So let's say that you have n p m run test coverage, that is going to be auto approved because you have this here. So that's the first type bash. Now let's look at the read and write. So these permissions control which files ClaudeCode can read and edit, and they also follow the git ignore filters if you're familiar with git. Okay. Let's go take a look at a example.
31:04So I'm just gonna open up Versus Code, and I have this hello dot p y file. Now, currently, if I go to Claude code and I just type out this statement of add a print dot hi statement to the holo dot py file, what's gonna happen is that Claude code is going to need my approval first before it can edit this file. So let's just give it a few seconds, and see right here, it's gonna ask me for approval to add this file. But let's say that I don't want this. I want ClawdCode to auto approve this. How can I do this? So to do that, let me just exit out of this. Let me just go to permissions.
31:39And in here, within my allowed tab, what I'm gonna do is I'm gonna add a new rule. So I'm gonna hit enter, and then here, I am going to add a rule of edit. Now remember, this is how it looks like. This is how it looks like for edit. So I'm gonna go to edit hello dot p y, and then just hit save, and I'm gonna save it into my project setting. Hit enter.
32:01And then now I have this new rule that allows me to edit into this hello dot p y file. So now I'm gonna exit out this, and what you need to do is you actually have to exit first in order for a ClawCode to refresh. So I'm gonna exit this, reenter ClawCode, and now I'm gonna ask that exact same command. So I'm gonna ask this exact same command and see what happens. Now hit enter, and then it says it's gonna add it. And then there, it's done. Now it says this file now contains that statement. So let's go take a look. If I open this file, and there it is. So that's the second type, read and edit.
32:34Now let's look at web fetch. So Cloud Code can also fetch information from the web, but normally, it'll ask you before doing so. So if you want Cloud Code to always be able to search a specific site, you can add a rule by first going to permissions again, going to allow, add a new rule, and here, I'm just gonna add a new rule of web fetch. And then here, just enter the website that I want. So I'm gonna say google.com.
33:00Hit enter, and just hit my project settings. And then now if I just refresh, let's exit this. Go Claude, and let's just say search
33:10Google to see what time it is in New York City. Hit enter, and then now it should be able to search Google without having me to approve. And there it is. It just says what time it is. Okay. Now let's look at MCP. So for MCP, these permissions control which server tools you can allow. So you can allow or restrict certain tools within a MCP server. So for example, here, this is saying that this allows you to use any tools within the Puppeteer server. But if you wanna get more specific, you can say to allow or deny a specific tool within that server, such as to navigate.
33:47Now if you wanna delete a rule, it's really simple. All you gotta do is go into your permissions, find the rule that you want, hit on it, and just say if you wanna delete it or not, and that's it. Now here's something important. Be very careful with permissions. Don't just copy someone else's permission rules unless you understand exactly what each command does. Allowing Claude code to automatically run tools, especially ones that create or edit files, can cause major problems if misused.
34:17CTAThe pr comments command lets you view the comments from a GitHub pull request inside Cloud Code. And the review command allows Cloud Code to review a GitHub pull request for you. So the status command shows your working directory. It shows what account you're logged into. So if you have the Max or Pro plan, make sure you are actually logged into that and not the API version. It also shows you what type of memories you currently have as well as which model you're using. So this is a great command just to kinda get a overview of your entire code base. The terminal setup command allows you to use the option plus enter keyboard shortcut to enter new lines. And for the VIM command, if you are a VIM user,
35:01CTAthis command will put clogged code into VIM mode, enabling VIM style keybinds. So if you're not familiar with VIM, don't worry about it. Personally, I don't use VIM, so I skipped this one. And that's it. This is a full overview of all the commands Claude code has to offer and how they work and how to use them effectively. I know this was a lot of information,
35:25CTAand some topics like MCP go much deeper than what we covered here. But don't worry, I'll be making more videos on those topics soon. And I hope this was helpful and cleared up some confusions around some of the commands that Cloud Code has. If you have any questions or want me to cover something specific in a future video, feel free to drop a comment below. Thanks for watching. See you all in the next one.
§ · For Joe

Own your Claude Code workflow from day one.

Claude Code operator playbook

The commands most beginners never find - /compact with custom instructions, /memory @-import, and wildcard permissions - separate someone who fights Claude from someone who flows with it.

  • Run /clear after every discrete task, not just when you hit the limit. Treat it like closing a browser tab.
  • Use /compact with a specific instruction (summarize only the last task) rather than dumping the whole conversation.
  • Build your CLAUDE.md with @-imports for modular instruction files - coding standards, commit message rules - keeps the root file lean.
  • Use the # shortcut at the Claude prompt to add memories on the fly without opening the file.
  • Set bash permissions for your most-used commands (npm run dev, npm run build) so you stop approving the same actions every session.
  • The /logout session summary is your usage receipt - check it when debugging cost or model behavior.
§ · Frame Gallery

Visual moments.

§ · Watch next

More from this channel + related dossiers.