Video: (7/8) Claude Code: Foundations | Duration: 3560s | Summary: (7/8) Claude Code: Foundations | Chapters: Welcome and Introduction (50.62s), Session Agenda Overview (122.515s), Session Format Overview (193.7s), Cloud Code Foundations (254.64s), Agent Loop Fundamentals (284.34s), Terminal Tour (485.065s), Model Selection and Querying (610.16s), Welcome Card Demo (920.17s), Model Selection (953.05s), Model Selection Guide (1086.79s), Development Loop & Features (1168.66s), Value Across Organization (1265.495s), Workflow Transformation (1345.88s), Development Life Cycle (1433.935s), Cloud Code Platforms (1547.44s), Demo Introduction (1688.615s), Fixing Failing Tests (1805.945s), ClaudeMD Files (2037.675s), Plan Mode Features (2308.495s), Anatomy of Skills (2551.64s), Sub Agents Overview (2826.255s), Recap and Resources (3060.765s), Closing and Resources (3424.915s)
Transcript for "(7/8) Claude Code: Foundations": I was on mute the whole time. Was it is it is a live demonstration, so we might as well get started. I was enthusiastic when I was doing that, but in in clear in clear, it's always happens when you're doing a live presentation or demo. It that always happens. That's the first time I've ever joined and enthusiastically introduced myself on mute. So there's a first for everything. Happy Wednesday, July 8. I'm Mark Dominguez with Anthropic, and today, I'm excited to present Claude code foundations. We're going to go a bit into what that actually means. We'll set some ground rules, some expectations for today's call just so I'm not throwing anything random at you. And we're gonna learn the basics of what is Claude code, how do you best use it. There's gonna be a lot of questions, so we won't be able to answer all of them. What we're going to do is we're gonna compile all the main themes for the end of the call. And then I'm gonna hop on stage. We're gonna stop the demos, and I'm just gonna address them and talk about the larger concepts. I see I'm getting a rise out of everyone with the emojis. That's a new feature on the webinar. Good recovery. I'm gonna give myself a good grade on that one. But, without further ado, we we lost one minute while I was miming to all of you. Let's jump into the platform. Alright. So what are we gonna be talking about? And this is the demo where, this is all generated by Claude Code. We're going to do hands on demos for majority of the latter half of this presentation. The first is setting the stage a little bit, but what we just saw is essentially the workflow that we're gonna be running through. We're gonna be running out of a real example of a workflow where there's a test failing, and then we need to fix a bunch of different bugs and leverage data using a a a a ton of different features within Claude code. As far as the ground rules we have, we will share the recording and additional resources via email after this session. We get q and a on it. Literally every time we present it, we'll send it. Don't worry. That way you can pick back through what I talked about. Maybe you can skip the section where I wasn't talking, on mute, but you can, like, drill into the demo, see what I'm presenting. We're also sharing a really great resource, and the all also resources that are, here in the doc section of the chat on it should be on the right sidebar, hyperlinked. That's the Claude Code Academy, designed and I helped with that by yours truly. Code with Claude recordings from, like, the recent events that we did. And also our Claude code docs and help center, which has a ton of different information. And there's actually AI baked into that site so you can ask it questions, and it'll come back to you with answers grounded in our help resources. Really great hack. A lot of people don't know that. This is gonna be dense and fast paced. We just lost a bit of time, but we're gonna cover a lot of ground. It's by design. An hour and a half is hard to get on people's calendars. But if something flies by, it's gonna be in the recording, and I will do my best, I promise you, to break down concepts after I discuss them or showcase them. What this is? This isn't a hands on training where you're, joining from your computer and doing the same thing I'm doing. It's not a setup guide where, hey. I don't have Claude code. How do I install it? It's going to introduce a bunch of features to you that you might not fully grasp or comprehend or no one will be an expert on any of the stuff that I shared during this session. It's an intro training, but it will introduce these concepts that will then will follow-up with the resources that will allow you to dive deeper and go ahead and, you know, learn it better. Every background is welcome. Whether you're a developer or non developer, I will address both audiences. A lot of this is rooted in developer lingo. I will break those concepts down. I will talk about it. Again, I talked about q and a at this scale. We'll address themes at the end, and everything is live. This house rule is, specifically true because of the way we started this presentation. Enough of referencing that. We're gonna move on, and we're gonna talk about what we're gonna do. So section one, we're gonna introduce, what is Claude Code, just the foundations. We're gonna spend less time on that. I I you guys probably know to a certain extent what Claude Code is, but we're still gonna talk about, like, what is an agent, how does the loop work, that kind of infrastructure. Then we're gonna talk in the middle what makes Claude actually good. So that is, like I mean, it's good on its own. Right? But, like, bringing it to that next level, making a ClaudeMD file, working in plan mode, creating custom skills, etcetera. And then the short scaling section at the end is going to be, like, more advanced topics, but these topics are not even the most of they're definitely not the most advanced, but they're gonna be the most advanced that we touch on today as part of a foundation's training. But they are going to be transform transformational in how you leverage the tool and how you're able to bring your Claude code game from here to here. So that's gonna be a really great part of the section where we have some pretty dense demos there. Alright. Foundations. What is Claude code? It is an agent in your terminal. So it's not a sidebar. It's not an auto complete. It's not a little widget. It is its own thing that lives in your code, lives in files. It has the ability to do what you want it to do. And in order to accomplish that, it reads your files. It runs its own tests. It makes edits, and it shows you the pattern or everything that it is working on in real time. So you can see the edits that it's making. You can see what it's reading, what's informing its thought process. That's what an agent is. Right? It is something that can work autonomously on its own, show you what it is working on, and then you can see that progress and iterate on that progress. So it's working autonomously as access to do what it does to fulfill the task, and then you review and iterate from there. What this loop really looks like is it goes through these steps on a loop. So this is what we refer to as, like, an agentic loop. This is what makes up an agent. It will read your code. It will decide what to do next. It will act upon those decisions, and then it will observe what happened. It will run its own tests. It will take a look at what it coded. It will take a look at its progress. And if it deems that it did not get to a point of fulfilling your task or request or your input, it will then go back to the beginning of the loop, read again, decide, act, observe. We're gonna see this a bit throughout this presentation when I start demoing it, but you'll see how it's going through this loop. And when we see, like, a failing test, it's going to go end to end, read the error, go find the bug, make the edit, rerun the code, and then confirm in one go. And if it fails in that one go, let's say it's test it the test fails, it will go straight back to the beginning of the loop and start again. If it finds it needs more context, it will tell you that. Right? So that's where we talk about an agent. It can go out and and do this the entire time. You don't do hand feed a context or data. It can go do these things itself. Who's it for? Developers and non developers, the main audience that's making up this session right now. We're gonna go through some use cases, but, like, a a a really great one is if you are new to a code base or looking at an unfamiliar file or code, you can ask Claude Code as if it is a colleague that can read it faster than any human can. Right? It'll gather that context and report it back to you. You can ramp up faster on the projects that matter most. Alright. Installing Claude code. We're gonna take like ten seconds on this because I hope everyone on this call has installed it, but it is very easy to install. You just put in this command. It's in our help resources. It's in Claude Code Academy in the your first day in Claude Code article that's listed there. But that's gonna be a really great spot, for you to learn if you've never installed it before. Alright. Let's do a quick tour of the terminal. Let's share my terminal screen here, and we're gonna work through how we can navigate through Claude code. For the demos that we are doing here, we're going to be working primarily in the Claude, terminal. So this is a CLI or command line interface. I'm gonna show some of the other product services like Versus code specifically, and I'm gonna talk about the other services. But from the main point of the demo, I'm using Claude in the term Claude code in the terminal. The reason being is that I think this is the best way to learn Claude code and reason with it. I've started using the desktop app more personally, but we're gonna demo the terminal because I think that's actually just such a great beginner point. And that's where you can put in that curl command we talked about to install it. I will also, before we jump into this demo really quickly, add one more big asterisk to this presentation. I am going to talk quite a bit about a lot of different features. Right? That's a given. It's a introduction. It's a training. Every single organization has different settings. Right? That is determined by your admin administrators, the IT team, whoever's owners for this, and they get to decide, hey. This feature is available for this reason. Right? There's a a bunch of different reasons ranging from security to preference, etcetera. So if there's something that I'm talking about that you don't have, that's probably why. Things like auto mode or certain MCP connectors that we have. Anyhow, I'll be sure to mention this again when we get to the actual feature demos, but wanted to call that out. Alright. So I'm working in the terminal. We see our little clogged crab mascot here, and I'm using SONNET five. The way I can tell you that is by typing in slash model. I can type this in and I can alternate between these different models. So I'm gonna stay on SONNET five here. It's the recommended daily workers model that we're working on. And I'm gonna put in a simple query such as, can you make an acai, pine tree? So this is gonna be more complex. This is gonna be less complex, I mean, than anything you are doing and using Claude code practically for at your job. I'm actually gonna switch the model to Opus to see what it does with the, with the or if we wanna have a little fun, we can actually try Fable to see what kind of, pine tree we get. Try again with a new model. And I I do this not to be like, oh, look at the pine tree that I'm making. How how interesting. But to show you that it is really important to query specifically. Right? So if I said, I want this pine tree to actually be a set of three trees, and I want them to be more Christmas tree like. So I'm adding more specificity to my input so I can get more specificity in my output. And I say that's kind of like a golden rule when we're working with these AI systems, especially Claude code, because the more upfront work that I am doing to provide different variables such as my audience is this, I have these preferences, can you do this, etcetera, etcetera, The less I'm gonna have to iterate and go back and forth with quad code if it doesn't have a fuller understanding. So where plan mode is important, we'll get into that during one of the demos here. But I I really emphasize this point because while the models are more intelligent and they do a better job at handling, questions that or, like, requests that don't have as much context, a lot of people ask me, Mark Dominguez, how do I save on, like, token usage, etcetera? The number one way you can do that is by just being upfront and clear with what your request is and what you want it to do. You can burn through tokens really fast by just going back and forth and kind of playing ping pong with Claude Code. Anyhow, what I'm going to do is I'm gonna type in slash clear because this is the final product to how beautiful these Christmas trees are, but, we're done with that. So I'm gonna switch to a new task. So I typed in slash clear. If I wanna learn the basics, I can type in slash help. This shows me all the different shortcuts and commands that are in here. You can see there's an overview that we link to here that is also part of the academy. Really great place to get started. You can see the different commands that are available, so the different tasks and skills that you have accessible at your organization, all within this help area. Right? So we can cancel that there. I just wanted to show some of those other slash commands. What I'm gonna do for you lovely people on this call is I'm going to say something like, can you make a welcome card for the Claude Code Foundation training that I'm leading right now. So I'm doing a new task. I'm actually using Fable for this. I might have to switch that back to Sonnet so it goes faster. But we can see it's going to use a it's gonna identify, hey, there's a skill, and it's going through this agentic loop that we just talked about. It realizes, hey, I actually have access to this tool that I can leverage to create this beautiful welcome card for this audience. So it's gonna load the skill into the context window, and it's gonna create this welcome card for you. So just using natural language, I sent the agent on this task to complete it. It found the resources it needed on its own to fulfill that task, and it is doing it for me. So I'm gonna show that welcome card, then we're gonna go back to slides, and then we're gonna burn through demos, for the latter half of this section. We see the, how long it is working for and the amount of tokens that it is going through. We see that I'm in auto mode as well, so I don't need to accept any changes. Okay. Looks like it's going through that loop. You can see it. Right? It started writing it. It realized, hey. I ran into an error writing the file. I'm gonna read again and understand that I have it. It's thinking, hey. A previous version already exists. I'm actually gonna override it with a freshly customized card. I actually made this previous version with Opus. So, hey. It's realizing, hey. I have memory. This is something that we worked, that we worked on previously, but I have a better version than I'm going to go. I saw a question come in from Robert. What am I drinking as my energy drink? I'm not a Celsius drinker. This is jasmine, jasmine tea. But okay. It's gonna create this welcome card. I'm working with Fable High, so it's gonna take a little long. This is kind of like using a a a jackhammer to hammer in a nail, which is a great way to control token usage. But let's go ahead and share my screen so you could see the welcome card it created for you all. Welcome to Claude Code Foundations. If you were at fourth of July celebrations, it probably looked a little bit better than this, but this is pretty neat that it created this in, you know, under two minutes just on a very, very vague instruction. Right? I just said, hey. I'm on a call. Can you create a welcome card for the audience? Which is pretty nifty. And back to the tutorial, someone asked, hey. Can you change models in the same in the same session? Yes. You just type in slash model, and it'll change it. Alright. Let's go back to the screen share. A lot of questions popped up as I went and typed in slash model in front of all of you. Picking a model is like picking the right brain for the job. All of these models have different ranges of intelligence. So, like, for example, I'm gonna talk about Fable, the most capable. This is like the walkaway model. You give it a goal. You give it the root cause. This is gonna be for larger architecture decisions, larger incidents, fixes, bugs, etcetera. It's gonna work autonomously, maybe in some instances for hours. It's for the big, ambiguous problems, not your, like, everyday edits. Whereas Opus is going to be for your more complex coding. It's gonna be your gnarly refactor or, like, I'm exploring an unfamiliar code base, or I'm doing a large, amount of data analysis or looking at a ton of data. Like, I'm importing, like, you know, 20 different documents, and I need to synthesize them. SONNET's gonna be your daily driver, which is fast. It's smart. It makes most edits. Like, it's a our most agentic SONNET model yet. And it's also, you know, it can do opus level coding quality at, you know, half half the cost. And then Haiku is gonna be for speed. And, like, if you find a task that you can accomplish with Haiku, go ahead and use Haiku for that. Loop it. You know? Like, if you find it works well for one thing, stick to that model for it. And then as new models release, you can then adjust and change. And this is where, like, understanding what each model can do mapped to a specific task or workflow that you're responsible for is, like, the best advantage you could ever have for, like, learning these systems and learning how to best use them. Because once you map it to the use case, you're pretty much done. You can just keep running it and and saving time on it. And then you can keep maybe in the future, something that required Opus would require Sonnet. Maybe something that required a Sonnet can then be done with Haiku. Right? Like so there's this kind of, constant recalibration that saves you a lot of time and is actually pretty fun to experiment with. I saw a really great post too if we're talking about, like, when to use each model. Feel free to screenshot this. We also have a lot of literature. But, I saw a really great post. Fable five will will use this is like descending order. Fable five will use the most context and tokens cost the most. Haiku will be the less amount. Right? Sonnet is, like, a a very good everyday daily driver workhorse, model. You can also change the effort level by typing in slash effort, and you can change, like, Opus from high to medium or low. Like, that is also variable. If you don't know where to start, ask Claude. It will help you. That's a really good hack that I'll give to all of you here. But, which model do I use when? I'm gonna talk about Fable just shortly for one moment because it it has a lot of conversations around it. Is like, Ethan Dominguez, who's a great, like, social media presence and, he's a professor at Wharton. He's like, hey. For most people that are experimenting with Fable, the paradigm has kinda shifted in that, like, you shouldn't use it for everyday tasks. You should use it for the things that you have honestly never thought about using an AI model for, and then pair down if it's not able to complete that task. I think that's a really cool range of experimentation that we haven't been able to see with models yet because Fable five is state of the art. It's the most capable model in the world right now. And then as as we're going through, like, it will use more tokens, but you can use plan mode, switch to Opus, switch to Sonnet, Haiku. Haiku, someone asks for, hey. Can you give an example for using Haiku? It's gonna be like your simple bug fixes or, like, UI changes, etcetera. Like, the the one off things that are gonna be pretty simple or, like, write a document. Right? That'll be quick. But what I found too is you can use Sonnet for most of those and the quality difference between Sonnet and Haiku, is gonna be pretty significant. Alright. Everything's in this loop. We've talked about this. Right? But, like, if we're talking about it in the SDLC or the software development life cycle, you we can get a spec to a prototype. We can get a bug to a fix. We can get a migration, in migration state to a done state going through this loop. So the loop will close once it completes and we get a green light. The the agent Claude code will say, hey. I'm done. You know, all the tests have passed. We're good. Let me report it back to the user. We're gonna talk about a lot of these features. We're actually gonna go all the way up to sub agents and plugins. The only thing left is gonna be agent teams, which is more of like an advanced topic, but here's like a feature ladder. If we're if you're looking to become an advanced user in Claude Code, you will not become an advanced user at the end of this session. I'm sorry to break it to everyone. We only have sixty minutes together. With that being said, what you will do is find a lot more out than just what is on this slide about these features, which is great. You will have a starting point. You will have a very strong foundation. Wink, wink, nudge, nudge. That's why it's called foundations. Right? And then you can build upon that to then become more adept in each of these things. And that's why we'll send the recording as a follow-up, and then we'll also send the academy as a follow-up, which has self guided learning, which will allow you to go deeper at your own pace. It has, hey. I'm a beginner user or an advanced user. What are some things I should know? That's gonna be really helpful as you go through and work your way up this ladder, to become a power user. Value across the organization. This is like I'm not gonna spend too much time on this slide, but this is just to emphasize the point for everyone. It does not matter what team you sit on. If you have access to Claude code or or cowork, this is not a cowork session. We will have cowork sessions. Take a look at our webinars page or the academy. But, like, anyone can have a use case. It's essentially you're unlocking a colleague that is super smart at coding and completing tasks end to end. If I had access to that colleague, which I do, I would use it every day, pretty much every, you know, hour of the day, which I do. Right? So as we talk about these features, I'll talk about how I use it as well and other use cases that will make get make more sense for, like, why wouldn't I be using this all the time? Of course, Soconomics and usage is something that, like, always comes up, so I'll give you some hacks throughout this, to to, you know, optimize for that. But, we'll we'll get into it and, like, workflow transformation. So if we're talking about, like, from being, like, a technical worker, column on the left is gonna be your the typical way that we would, like, write a new feature. You would read the specifications and understand what's requested. You would study the code base that you're gonna be working in, what languages, what are the norms. You would write an implementation. You would write tests. You would design, debug your your code that you're writing manually, which seems crazy, in this day and age. And then you would do code review and and fixes, and that would take a long time. And, like, you know, this if we look at the right, it's not even about the the time savings. It's just like where you're allocating your your where you're allocating your time. We've essentially eliminated a lot of the prep and legwork here. You can get started much quickly and you can then iterate much faster and and have this design process complete the end to end flow multiple times and the time that it would take to do it once. So that way you get more refined end products, whether it's a document that you're working on or a data analysis if you're working on that or just a literal front end feature in an application that I'm working on. There's quite a bit that you can save time on so you can loop through this trans loop through this workflow rather at a faster pace. Alright. So where does Claude code live in the software development life cycle? We're gonna spend a little bit more time here. It's gonna be in the discover phase. New to a code base? You can literally just ask questions about it. No longer do you have to read a bunch of different files and actually understand the hundreds slash thousands lines of code to understand what they do and what packages exist. You can literally just ask questions using Claude code and natural language. It's pretty amazing. Then we can go to design phase. So someone gives you, like, a request for for comments here. And, you know, they they have a proposed solution. They want you to take a look at the proposed solution, see where it slots in the code biz code base, and ask for feedback, essentially. You can have it Claude code do that heavy lifting for you. Then in the build phase, this is the actual, like, coding. Right? So if we're going, like, it will actually show the edits that it's making as part of that agentic loop. It will show the diffs or differences, and it will replace the hard coded code within there, and then you will approve it. Right? So it'll actually make these changes. For deploy, if you have Claude code connected to your GitHub or GitLab, you can ship PRs. I shipped a PR this morning. You might be wondering, Mark's Screenshare, how did you ship a PR or a pull request? I said, can you ship a PR to this project? Here is the GitLab GitHub URL, ship these changes, and it did it. Fantastic. And then support. If there's incident incident management system you have, like Century or PagerDuty, you can sync that live into your Claude code so it can automatically take these incidents as they land, fix them, and then show you the fixes that it is doing, and then you can kinda see this interplay. Right? Like, it'll fix the issue, identify the root cause, deploy the hotfix to GitHub, GitLab, wherever you're working there to to actually manage these changes and and work through. So it goes it it it works in a loop across this entire workflow loop as well. And then wherever you work, Claude code can work as well. We're gonna be demoing all throughout the Claude code, the command line interface in the terminal, but there's a lot of other services you can work in. There's the IDE or integrated developer, environment a develop, developer environment. So you could come in here, Versus Code or JetBrains. I'll actually share my screen, when we go to the next demo of, like, what Claude code looks like in Versus Code. You can use it in the web slash desktop application. I mentioned at the top of the call, I have actually started using this exclusively in desktop. Actually, that's not true. I use most of it in desktop, but I'm I'm cheeky. I have parallel, terminal windows running while I'm also running in desktop. So I'm running Claude in parallel different services for different tasks, which my output is multiplied heavily when I do that. And that's, like, an advanced, you know, use case parallel Claudes. And then everywhere else. So on mobile, on Slack, you might have seen Claude Tag before, which is a a brand new feature that is, like, essentially, like, a a Claude coworker that exists in a thread and will go out autonomously run tasks and do research across your systems and make the change. I'm pretty proud of myself. I actually shipped the PR to Anthropic Production today. Of course, an engineer had to to ship it and approve it. But working with Claude, I was like, hey. Here's this bug that I found. Can you fix it in this way? Here's all the context, and it went ahead and did that for me. It's pretty neat. And then a note before we dive in, this tags into, the slides we were just talking about and everything that I've talked about to, up to this point. Boris, who's actually eating lunch right over there, he's in the New York office today. He's the inventor of Claude Code, and he tweeted, earlier this year. He said, hey. I created this. I wanna share a few tips. You can look up these tips online. They're really helpful. They're also captured in the academy as well. There is no this is the most important piece, though. There is no one right way to use Claude Code. Everyone's setup is different. That is intentional. Find the surface that works well for you. But this goes back to, like, what I think is a a big recurring theme throughout this presentation, and I will sound like a broken record. Be curious. Be experimental. See what works best for you. That's where you find this flow and where where you find you'll do your best work. Alright. Let's go to the demo portion. I am a software developer at a company called Basecamp Outfitters. It's ironic because we have, like, a camping use case. In my personal life, I used Claude Code this week to plan a camping vacation for the end of July. It did everything for me. It was very helpful. I actually made my own little vacation website, but that is an aside, to not get distracted. I'm a developer at Basecamp Outfitters, an outdoor gear store. It sells small stuff, but it rents big stuff by the day. The way we're gonna go through this is we have, like, a ecommerce store. This is where we're doing the sales. This is where we're doing the rentals. In the first issue, we're running a test in the code base, and we find there's an open ticket. And in this open ticket, the customer will rent a kayak for fifteen days, but they'll be charged for sixteen. They'll be angry. It'll be a one off bug somewhere in the code base, and I don't know where it is. That's the ticket is going to serve as the foundation for everything we're working on today. And then what we're going to do is we're gonna fix it. We're going to plan the next change. Hey. While we are fixing that bug, I was thinking maybe we wanna support multi currency checkout in our store. Let's plan to see what that would look like. And then we're going to clean up the damage, the bug fix shipped. So we're going to make sure that we're, like, reconciling carts in the future. So we we have, like, a 5%, like, hey. Don't round up on accident to 16. We wanna bake that in. We can make it a skill. And then we're gonna learn more about the repo and then connect to, my company's systems via MCP. So we're gonna stop and slowly demo each of those when we go through, but that's the foundation of what we're talking about today. So don't be confused if I'm talking about, like, we are fixing the cart bug. It's all grounded here in Basecamp Outfitters. Alright. So let's fix the failing test. I'm gonna go ahead and share my screen, and we're gonna go back to the terminal. So let's share my terminal window. Actually, no. I promised Versus Code to everyone. So let's take a moment. Sorry to get super distracted here, but everyone wants to see it because I get asked this question all the time. I'm clotted Versus Code, works in Cursor, WinSurf, etcetera, all these other Versus Code forks. But the difference is that this is more of like a sidebar UI. So you can see the dips in the left if I'm coding something in the code base, and I can just ask questions and just like q and a, and it will make the changes before my very eyes. People ask me all the time, where should I use it? What are the main differences? There's not really a bunch of differences between each surface. It's really just a matter of preference. So find the one that works best for you, and you can see how I had Claude generate these key differences here. Right? So just a quick tour of Versus Code. Now we're gonna spend the rest of the time in the terminal, and we're gonna really do our due diligence to explain what's happening in all these demos. So I'm back in Claude code. I'm gonna switch not to Fable and switch to Sonnet, and I'm what I'm gonna do is I'm gonna change the effort level to, I'm actually gonna switch it I'm just gonna keep it to high. Ultracode does this really cool thing when you switch to it, which is pretty nifty if you've seen that before. Mark does this rainbow thing, but we're gonna switch to high because that's the extent of what we need for this work. I'm gonna run MP test, which is a command line, a command line, instruction that will do an automated test, across the code that we have here. When I run NPM test, it's gonna run into an error. It's like, hey. I've ran these tests. Only four passed. One failed. And I'm going to say because Claude on its own, because it's agentic, would probably run the error find the error and say, I'm gonna fix this without the person using it. Because, like, why would they want an error in their code base? I'm going to say, I want you to fix the failing test and tell me what was wrong and what happened. Thanks. Adding a little bit of politeness, it does not make a difference, but I like to think it does. So we're gonna go ahead and see how it's working through the agentic loop. It's going to recall a memory. It's going to actually run the command and show you. We can expand this too as well. If we hit control o, it'll show us everything here it's working on. You can see how it's bashing the command. All five tests passed now. What was wrong? Hey. This specific variable here, computed elapsed rental time is raw. It will explain it all. I'm not gonna read all of this. It accidentally rounded this, like, really short decimal for the amount of days, and it rounded up to 16, which is not what we want at all. The fix was to subtract this from the elapsed time, so it just rounds down instead of rounding up. So that's great. It fixed the issue. Fantastic. I could if I wanted if I had this connected to GitHub, I could say commit this to GitHub, etcetera, and it would do that work for me. It's Agenent. Right? I'm gonna hit slash clear here because that is the simple quick demo that we did. We just fixed the issue. Fantastic. So slash clear. That task is complete. If I need to go back to it, though, I can hit slash resume, and it would allow me to go back to this. Right? So I could see my entire history here of things that I worked on, and I can even search across it. We have search baked in. So I've had 49 sessions in this demo environment. It will allow me to go back to each session. Alright. So now we're on a blank screen. We're gonna go back to context and why is it why it's important to bring, bring context into Claude code. So So teaching Claude your repo or your repository, the the code base that you're working in or the project you're working in. ClaudeMD, this is the read me for the AI. This is super duper important. Please internalize this. Think of a ClaudeMD as like a briefing for a very smart contractor. We know Claude Code could already perform coding tasks at PhD level, you know, computer science, level work. Right? But you can have the smartest programmer in the world. They'll be able to do some stuff, but what they don't have is the context that matters most for your org. And this is where the ClaudeMD comes in, where you can edit the ClaudeMD. It will generate a ClaudeMD based on the work that's already been done in that code base, based on how the code is written, packages that are installed, the language that it is, norms that it picks up on. All of this stuff is captured in the MD. And people think I need the ClaudeMD file to be really large and robust. It's okay. Claude code is pretty darn smart. You can keep this lightweight. We say, like, the best depending it, of course, depends on the size of the code base, but the Claude the best ClaudeMD files are under 200 lines. They're tight. Like, you're not writing documentation. You're writing a briefing to summarize, you know, the stuff that a new engineer would spend a week asking around, about, like, what goes on here, what stuff that you can take a look at, you know, why this thing works a certain way versus another. Hey. Has a bug existed in this area before? All of that stuff is captured in the ClaudeMD file. And we're actually going to create a ClaudeMD file together. What we're also going to do is we're going to create a plan. So we're actually going to create the multicurrency to check out pricing, and we're gonna see how Claude creates a plan. Plan mode is super important as well. I think, like, this section is, like, focus up if you're, you know, dilly dallying on on some other tasks. I don't blame you. But, plan mode and ClaudeMD are are big, and there's two separate commands that we can run to unlock this. So people ask me all the time, Mark, how do I save money on tokens or reduce usage or save context? Here's a pro tip. When you are using plan mode, use a more, intelligent model such as Opus on x high effort or, Fable on medium effort, etcetera. Use that to generate your plan and then hand it to a simpler model like SONNET on high effort or medium effort. When the plan is really robust and that it is built by a higher intelligence model, it leaves less stones unturned for the lower intelligence model to execute and get the task done effectively. So there's less turn based going back and forth. You're able to just go in and complete it. So let's demo plan mode and without further ado, show you some of the important things that we have here. Share window. So to generate a ClaudeMD file in the specific code base that I'm working in, I'm gonna say slash init. And I might not have this run the entire time because it takes a bit to read through all the code and understand it, but init is short for initialize. It will go through, understand the code base, and create an MD file, which is just a package of instructions of how to work in here. The open source format is, the agent MD file. You might be asking why does Claude MD and, why does agent MD not play nice with Claude Code? It's specific to the product and the harness. Like, it there's infrastructure that we've built in the ClaudeMD files that make it best in class for, like, Claude code being able to use it well and understand it and execute those norms. You could see already the ClaudeMD file generating. The way to get around this is if you have an agent MD file. In your ClaudeMD file, you can just tag it and say, read the at agents MD file, and that's it. That will fix it. Right? So here, I'm actually just gonna skip it because we already created the MD file. I ran this demo yesterday. So, all good. I don't need to update any of this stuff. So I can edit the MD file as well. I can ask I can tell Claude, hey. Can you open the MD file? I can just click on this too. You can see that the MD file is here live. I can open this in finder and change it. So that's all great here. I'm gonna clear because we're no longer working on the MD file. And I'm going to go into plan mode, and I'm gonna say, can we plan a multicurrency support for our checkout carts? Someone's asking while it's going through plan mode. I hit shift tab, by the way, to get to plan mode. Shift tab, twice will get you to plan mode. Or you can type in slash plan as well. It's going to do this. It's actually launching an agent. We're getting a little ahead of itself, but, Sonnet has decided this is the best way to to put together this plan. Slash init does use the model that you're using, slash model settings. Someone asked, hey. Does clog code accept attachment reference files like chat or code? Yes. If there's a bug in your app and you look at the code base for that app, you can literally drop a screenshot from the front end and say, there's a bug here. Can you fix it? And it will do it. You can drop images in. You can if you have Google Drive setup or Slack MCP, you can drop in hyperlinks to them, and that will do it. Like, that it's pretty nifty that you're able to accomplish that. So it's gonna go. It's actually doing sub agents here. I can see what the sub agent is working on if I navigate using the arrows going down here. You can see I'm just using arrows on my keyboard. We're getting ahead of ourselves. We'll we'll get to sub agents later, but, again, it's the live demo format. And also nondeterministic. I'll explain that concept while this is going. Nondeterministic means that this is just for any AI system, not just Claude code. And this is why, like, when I ran this yesterday, it didn't launch a sub agent. Today, it is. Is that, like, the AI is going to apply its intelligence to the task at hand, and there's no determinism. Where, like, determinism is, like, if I hit send on this website, it will send an email. Whereas, like, a lot of this work that it will do, it's smart. It will rhyme and do pretty much the same flavor of every task that you give it. The task won't look exactly the same nor will the approach every time. Sometimes it'll look exactly the same, but, like, the words used, etcetera, it's literally intelligence, and it's going to approach the task novily every single time. In this instance, we're gonna see the plan that it's gonna give us. So this plan will probably look a little bit different than yesterday's, but it will still solve the issue. So here we see it working in real time. It's writing the plan. Okay. It's asked a plan agent to design the exact code, and here's the plan delivered to me. And like any plan, this is like the value of plan is that, if you were going if you were, like, trying to do up this upfront work, you're not gonna be perfect in providing all the details that it needs to execute said plan. So it will come back to you with a questionnaire and say, hey. Do you want me to do this, or should you add more variables? This is where I do my best, like, realizing of where I need to adjust the plan and that where you should feel encouraged to be quite opinionated. Right? Like, actually, you're complete these options are not right, like, based on what I wanna do. Or I can select this and heck. Let's just ship it now. Right? Like, or is it meant for a live recorded workshop exercise? I'm gonna steer the plan. We're not gonna execute this plan. I'm just gonna hit escape, and it's interrupted it. It's a pro tip. If you see it going the wrong direction when you're because you get to see how the agentic loop is working real time, hit escape. Don't let it finish the entire task and waste your token budget. Like, you're gonna hit escape and interrupt it and say, I saw you did this. Maybe don't go that direction. Here's some feedback, which is pretty great. So that was plan mode and, ClaudeMD in a nutshell. Really important things to read more about. Of course, we could spend the rest of the, you know, seventeen minutes we have here together to cover those more in-depth, but we're not gonna do that, because we need to get through skills and quite a few other things. So let's go to anatomy of a skill. Skills are essentially, tools that Claude uses in order to perform specific workflows. So at the beginning, I created the welcome card thing. That invoked a welcome card skill. And all a skill is is the most simple concept. People get tripped up on it, but it is very simple. I promise you. A skill is an MD file. It's a markdown file that has just a description of how to do something. That's it. So here, we're gonna go through the reconcile skill. And the way that Claude code knows if it's looking it looks through the entire skill library or directory you have. The way it knows is based off of the description. So if I had reconcile skill one and two and they have the same description, there's no difference in the skill. But if reconcile two skill had a bunch of, information in it that was different, it would call on that. Someone asked what's the difference between ClaudeMD and SkillMD. They're both markdown files. That's the only similarity. ClaudeMD is like instructions you give Claude. A skill is instructions you give Instruction ClaudeMD is instructions you give Claude across everything you're working on. Skill is for one thing you're working on. So the way the easiest way to understand skills is imagine you have a bookshelf next to you, and you can read the spine of every book. And the spine is a summary of what that book is about. Claude essentially has access to that library too. And it can read the spine and say, hey. Based on what the user asked, I'm going to pull this book out of the bookshelf, read it instantaneously, and apply the knowledge learned to the task at hand. So the welcome card example, it found welcome card skill, learned how to create an awesome welcome card, and applied that knowledge to the task at hand. You can also manually invoke skills. So what I'm going to show you all when I go back to terminal is I'm going to run a skill called reconcile. I'm gonna clear here first because I'm working on a new thing. And what reconcile is going to do is it's going to find a cart in our code base because we have each customer cart saved in there. And it's going to say, hey. You know that bug we fixed before where it rounded up? I'm gonna fix it. I'm gonna I I created this skill off of that bug fix so I never have to say, hey. Reconcile this cart manually again. I've just created this tool that I can leverage whenever I want. So I'm gonna find cart, 1,001 and just type in slash reconcile 1,001. And what it's gonna do is just apply that workflow. So to break it down simply, if you had like a skill that was slash Spanish and all it was was just the description was translates things to Spanish and the skill MD file was translate the message to Spanish. It would do that. So we can manually invoke skills. For example, I have the Slack and email MCP connected, and I have a daily digest skill. I run slash daily digest. I also loop it. I run slash loop. That's more advanced. It sends me it in Slack automatically. But regardless, you could see it ran this skill and applied it. Instead of me having to say, hey. Change this specific thing and this thing, I have packaged it. So anytime in the future I need to re reconcile something, I can do it. So I can do the same thing for cart 1,002. I'll show you, like, the daily digest skill that I have too. Right? Like, daily digest of email and Slack activity. So here I just reconciled two things really quickly, and that's the anatomy of a skill. It's really easy. It's literally just a package that you can work that you can, like, apply to the task at hand. People ask me all the time, Mark, when are we, what is a skill? What is a plug in? What's an agent? I I get super confused on this. Take a screenshot of this if you were confused on it. There's also extensive literature in academy. But skill, how do we do x here? It's a tool. It's like a hammer where I am I I if I need to hammer in a nail and I find myself hammering in a nail all the time, I probably want to have the best hammer in the business. And that's how I can create this custom hammer for myself, and I can leverage either automatically or manually whenever I need it. A plug in is more of a toolbox. It is a collection of skills, connectors, hooks, agents. We're not gonna get into hooks today. It's too complex for a foundation session. But essentially, think of it as a package of everything you need to get started if you were x role or working on x thing. You download it all in one fell swoop, and it's preinstalled. So if I'm on the sales team, or, like, I'll actually, I'll do a software developer example. If I'm a software developer, I have skills that are like PR reviewer skill or translate to norms at our organization skill, and then sub agents that are specific for the work that I'm doing on my team. It's all package. I hit install once to install the plugin, and it's predownloaded. So administrators get a lot of benefit out of plugins because they can just create really curated far sweeping plugins. So you don't need to, like, put the onus on the user to manage their skill connector libraries. And sub agents is going to be, creating, like, separate Claude sessions that run parallel to the main session, do a bunch of independent work and research, and bring it back to the main session to synthesize together. So we're actually gonna get into that in a moment here with sub agents. So sub agents here are protecting your context. So you can create your own custom sub agents. You can run slash agent. But, like, there are specific agents that come with the system such as an explorer agent, plan agent, or general agent. So you can see these here, but you can see how they fan out. Fan out's the best word to describe it. We're going to see how we, how we how we fan it out. I'm gonna share my terminal again. I'm gonna see this. So I'm gonna hit slash clear. People ask me all the time, Mark, how do I invoke sub agents? You can type in slash agents, or what you can do is you can just, in natural language, say I want agents. And I'll say, can you spin up a lean agent team to explore some of this code base and recommend changes that I can make? Simple. Right? I'm gonna switch to auto mode so it just runs through, and we're gonna see how these agents fan out. So it's gonna search for the pattern. It's thinking. It's blow gating in this instance, and we can see the tokens running in real time. But it's going to generate these agents after it it thinks through it with high effort. It's smart. It's too smart for its own good. It says, hey. This is the workshop demo repo that we're working in, so I'll have the team explore beyond what's known. And so we have a general agent that's going and reading. We have another agent that's gonna review, hey. Here's the MCP server and API route. So it's exploring different sections of the code base, and it'll come back with its finding. And if I were to run slash context in here, it would, show the main session is staying quite lean while a lot of the tokens are staying outside. The analogy that I, a lot of tokens are staying outside through the sub agents. And the analogy I use here is would you rather have a, one head chef going out and, doing everything? Like, they don't have eight arms. Right? It's it's gonna be stressed. It's going to occupy too much of their time. Or do you rather have the sous chef and the dessert specialist and the appetizer specialist and the drinks menu, like the bar head bartender, all working on their separate areas and then coming together at the end, reporting to the head chef and saying, hey. We found this, this, and this. Now let's combine forces and put it all together. That's the best analogy that I can share. And that's where we use sub agents. And as the, systems get more agentic and intelligent, they will also do a lot of that work for you, which is great. Also, while something is running, just as a quick drive by because we're here, you can type in slash by the way to ask questions without interrupting the main conversation as well. It's It's pretty nifty. Let's talk about MCP, which is the USB for tools. So here, this is model context protocol, which is what Anthropic invented, and this is how we can essentially invoke, different applications that we have connected. This goes back to the asterisk of, hey. This depends on what your enterprise admin has given you as an end user permission to use. But if you're using Claude Code personally, like, you can make your own MCP servers by just asking Claude Code to build it. There's a lot of, like because it's open source, there's just, like, a ton you can build and that already exists out there. So for example, I'm gonna pull in the MCP server for flag store. And what Flagstore is in the Basecamp Outfitters scenario is a, data source that has access to all our prices. It's our pricing repository. So I'm going to say, can you pull data from flag store and present in a table? I can even say, can you pull prices? And it will be smart enough to say, hey. I should look at flag store. So here, it's gonna find flag store. If I wanna see what MCP I have available, I can run the slash MCP command. Still running. It's on it's being a little slower for me today than it normally is, maybe because of that high effort. If I wanted to switch down to medium, I could write slash effort. But here, let's see it work because I wanna show everyone how it's working through Flagstar. Still nebulizing. You can see the different verbs that we have here. Alright. Let's complete. Okay. It's finished thinking. I don't see anything flag store. Okay. That yeah. That is what I meant. Yes. Cart store. You used the wrong thing, of course. It's gonna go find flag store and pull the prices. So this is really important. Like, I I find that the users that get the most out of Claude code leverage MCP more than other users. I'll just say that as an objective fact. The reason being is that you can find the context and data that informs the actual work of your day to day, right, and pull it into Claude code and work there. So for example, me as a non developer, I use the Slack. I did ship a PR this morning, though, so I guess I am a developer. You you like, Slack MCP or Drive or Gmail, you can pull that data in and then manipulate or or use that data and synthesize it. So here, it grabbed the pricing, and I could do, like, a follow-up of, like, hey. I now that I have the data in Claude code, I want to perform some sort of task with it. So what I've premade here is I made actually a application using Claude Code based on the data that I pulled from MCP. Sub agents actually created this, and I used plan mode. So we're combining concepts already that we've talked about here, and I created essentially a simulator for, like, hey. If we do this many rentals for this amount and this many days, what does that scenario look like for our business? I can toggle this off. I could get, like, breakeven on, like, our margins here, and I can save these scenarios, and they save in here. And I can share this application if I host this somewhere with my colleagues. So I actually create a lot of internal applications, where, you know, maybe the one tool that I have, the shoe doesn't fit for my specific use case. I use Claude Code to create my own, like, way, or, like, a presentation, for example. I just showed you this entire I think it's a pretty beautiful slide deck. That was all me generating it with Claude Code, which is pretty nifty. So as far as, like, what we covered today, we covered a lot. We're actually gonna, for the sake of time, skip the rookie mistakes, but we'll we'll share this out afterwards. It's essentially everything that I've shared before, except the only thing that I'll call out here is don't use Claude Code only when something is broken, like, once a week maybe. It should be your first line of defense for, like, most of the things that you're working on. I don't mean that from, like, oh, I need to be overreliant on Claude Code, and it needs to do everything for me. That's farther from the truth. Like, I check the work diligently. But it's rather, like, for the low hanging fruit, like, I just have Claude code do it because it's easy and simple, and I have multiple terminals on, open a day. So, like, figure out how you can fold it into as much stuff as you can, and you'll see where it works best and where it doesn't. And that's where you can really, you know, fold it into your workflows. If you wanna learn more, slash power up is something you can run live in Claude Code. Run slash help to learn a little bit more. What we learned today as well. The core loop, how the agent system works, skills, what they are, and how they differ from Claude MD, sub agents, and plug ins. MCP, connecting Claude to your applications. Plan mode, very important. Use it for most of the long things that you're working on. Everything. Like, that's, advice I got very early on. Use plan mode as much as possible. Sub agents for isolated context and parallel work. And then I would also just say, like, golden rules, be curious, be experimental, try things that don't that you have not worked on before. Like, I think that's helpful. I understand. We're trying to figure out a way to make this session, like, longer or, like, less dense. Being said, I wanted to deliver as much information to you all today so you can have a great foundation and build on using the academy. Like, I will point you to that resource. I'll actually put it in the chat right now so you all have an opportunity to more directly, bookmark it. Because this is where we're gonna host future webinars. This is where we're gonna have guided one zero one courses. This is where we're going to have modules that are self serve. Like, it all lives in there. So I I I say that as someone who helped create it, but I I'm as biased as I am, it is extremely helpful and will be an amazing starting point. And I see a friend in the chat. Hey, Aaron. Good to see you. But, as we wrap up here, I'll talk about we have two minutes. If anyone wants to let's see what we have the most upvotes. I'm gonna spend a minute, and then we'll wrap up one more time because I think this is extra salient. Is, what's the best way to optimize token usage? You get this all the time. Slash model and plan mode. You can also type in slash effort. And if you are, like, curious, hey. When do I change a certain thing? Or when do I use this? Or if you're maybe not as technical and you're wondering where do I start with Claude Code or Cowork, what you can say is I do x, y, and z. This is my job. Can you please help me? In plan mode. The results you will see are going to be extremely helpful. I created an entire c customer success application suite doing that in Claude Code. Again, I'm not a developer. So, like, optimizing token usage, use the higher level models in plan mode, pass it to lower intelligence models, type in slash usage to see where you stand, monitor context, all of that really good stuff. But I would say, like, golden rule there, do all your planning up front, and that will help you a lot. Anyhow, I'll leave you all with be curious. Happy coding. Thank you for your attention and and attendance. You'll get the recording with some additional resources as well. Thank you for bearing with the speed and density here. We covered a lot of ground, but that's a good thing. You now have the skills to go out and build an understanding to become a power user. So go forth. Happy coding. Happy rest of your week, and thank you all again for your attendance and attention. It's nice talking to you all. I'll see you later. Bye.