Well it's another yellow day. Welcome to week two, day two, our second day of getting into 嗯，又是一个黄色的日子。欢迎来到第二周第二天，我们进入的第二天
Claude Code and we're gonna get deeper and you know I love Claude Code and hopefully you're 克劳德·科德，我们会更深入，你知道我喜欢克劳德·科德，希望你也喜欢
getting getting the Claude Code bug yourself and maybe you also enjoyed some of the others we saw 自己发现克劳德代码错误，也许您也喜欢我们看到的其他一些错误
yesterday. Let's quickly recap. And all the way back in week one, day one, I'd shown you this 昨天。让我们快速回顾一下。早在第一周第一天，我就向你展示了这个
landscape of coding agents showing it to you again here. We've got IDEs, plugins, which is mostly the 编码代理的景观在这里再次向您展示。我们有 IDE、插件，主要是
same, and CLI. And in the IDE camp we've got Cursor, Antigravity, Windsurf we didn't look at. 相同，还有 CLI。在 IDE 阵营中，我们有 Cursor、Antigravity、Windsurf 等我们没有关注的内容。
In plugins we've got GitHub, Copilot and Codex. I realized I think when I showed you this before 在插件方面，我们有 GitHub、Copilot 和 Codex。当我之前向你展示这个时我意识到我想
I put Codex in IDE and it not that it really matters but I guess Codex is actually a plugin 我把 Codex 放在 IDE 中，这并不重要，但我猜 Codex 实际上是一个插件
into VS Code. And in CLI land we've looked of course at Claude Code and Cursor and Codex also 进入 VS 代码。在 CLI 领域，我们当然也研究过 Claude Code、Cursor 和 Codex
came out with CLI versions really really because of Claude Code's success and so did Gemini. So with 由于 Claude Code 的成功，Gemini 推出了 CLI 版本。所以与
Gemini you've got like Gemini CLI and you've also got Antigravity as like two different products Gemini，您拥有 Gemini CLI 之类的产品，也拥有像两种不同产品一样的反重力产品
for using Gemini's models for agentic coding. And then yesterday we also had some fun with OpenCode 使用 Gemini 模型进行代理编码。昨天我们也享受了 OpenCode 带来的乐趣
and AMP and if you've fallen in love with either of those two and their different models then you 和 AMP，如果您爱上了这两者中的任何一个以及它们的不同模型，那么您
should use them for the rest of this week for sure. Much of what we're going to cover is in 肯定应该在本周剩下的时间里使用它们。我们要介绍的大部分内容都在
common in them too. And I need to say this is of course a massively rapidly evolving category 在他们身上也很常见。我需要说这当然是一个快速发展的类别
there's stuff coming up all the time and there's also plenty of ambiguity even with 总是有一些事情出现，即使有，也有很多含糊之处
Gemini CLI versus Antigravity. So keep an eye on the resources, ask me questions if anything is Gemini CLI 与反重力。因此，请密切关注资源，如果有任何问题，请向我提问
unclear and you know remember my view is that Claude Code is here to stay. There'll be lots 不清楚，你知道，记住我的观点是克劳德·科德将继续存在。会有很多
of other things going on all around us but this is for me anyway this is my favorite 我们周围发生的其他事情，但这对我来说无论如何都是我最喜欢的
of the bunch. And on that note we're now going to go back to Claude Code and experiment with some 这群人中的。关于这一点，我们现在要回到克劳德代码并尝试一些
commands. The main topic for today is to be looking at different commands in Claude Code 命令。今天的主题是查看 Claude Code 中的不同命令
including as part of that things like checkpointing. So as I said let's go over to Claude Code again 包括检查点之类的事情的一部分。正如我所说，让我们再次回顾一下克劳德代码
and we'll work through some of the commands. Okay and here I am back in VS Code and I'm in my very 我们将执行一些命令。好的，我回到了 VS Code，我正处于我的状态中。
same PM project why not. And here I am in a terminal and I'm going to type exit because 同样的 PM 项目为什么不呢？我在终端中，我要输入 exit 因为
maybe this terminal is still set up with some of those environment variables we were messing 也许这个终端仍然设置了一些我们弄乱的环境变量
around with yesterday. Let's have a completely fresh terminal. I think yes control and shift 与昨天左右。让我们拥有一个全新的终端。我认为是的控制和转变
and back tick always opens a completely new terminal. It's a little extra trick to know. 反勾总是打开一个全新的终端。这是一个需要知道的额外技巧。
Now if you're going to follow along in Claude Code then you can do exactly what I do if you're 现在，如果您要遵循克劳德代码，那么您可以完全按照我所做的操作，如果您
in one of the other IDEs then you should look up what their commands are. But I think in most of 在其他 IDE 之一中，您应该查找它们的命令是什么。但我认为在大多数情况下
them, maybe all of them, commands are always with a slash and then the name of your command once you 他们，也许是所有命令，命令总是带有斜杠，然后是命令的名称。
are in your platform. All right with that I'm going to go into Claude. I type in Claude and here we are 都在你的平台上。好吧，我要谈谈克劳德。我输入 Claude，我们就到了
we're in Claude Code. Let's work with some commands. Okay so once you're in Claude doing a slash lets 我们在克劳德密码里。让我们使用一些命令。好吧，一旦你在克劳德做斜线让
you run different commands that don't get sent to Claude that actually just get run in the tool. 您运行不同的命令，这些命令不会发送给 Claude，而实际上只是在工具中运行。
And the easiest way to find out all the commands you can use is just to press the down button now 找出您可以使用的所有命令的最简单方法就是现在按向下按钮
and read them with the little descriptions of them. That tells you everything you need. You can 并通过对它们的简短描述来阅读它们。这会告诉你你需要的一切。你可以
also do slash help and get a quick summary of important commands along with some shortcut keys. 还可以进行斜线帮助并获得重要命令的快速摘要以及一些快捷键。
You can see they're useful shortcut keys to know how to do various different things. Okay and now 您可以看到它们是有用的快捷键，可以帮助您了解如何执行各种不同的操作。好的，现在
let's try out some of the really common commands. Well I'm just going to press escape to get out of 让我们尝试一些真正常见的命令。好吧，我只需按 Esc 键即可退出
that screen and then I'm going to do well we know slash init. Init sets up the project the first 那个屏幕然后我会做得很好我们知道斜线初始化。 Init 首先设置项目
time you come to a project it writes a new Claude.md as it says and I sometimes suggest to think about 当你来到一个项目时，它会按照它的说法编写一个新的 Claude.md，我有时建议考虑一下
doing that yourself manually rather than doing slash init but it is your choice. All right other 您自己手动执行此操作，而不是执行斜杠初始化，但这是您的选择。好吧其他
things we already know slash model that tells you the model that you're using and lets you choose a 我们已经知道的事情斜线模型告诉您正在使用的模型并让您选择
different one and I've got the default one which is using opus because I've got the big plan. 不同的一个，我有默认的一个，它正在使用 opus，因为我有一个大计划。
Escape out of that you know slash status that gives you the lay of the land tells you what 逃离，你知道斜线状态给你的土地告诉你什么
version you're on and stuff like that gives you a set of the different settings and it shows you 您所使用的版本以及类似的内容为您提供了一组不同的设置，它会向您显示
your usage so far for this session and for the week. Those are some commands that you've seen 到目前为止，您在本次会议和本周的使用情况。这些是您见过的一些命令
already. All right and then a command that you've also seen already which you know I use all the 已经。好吧，然后是一个您也已经看到过的命令，您知道我使用了所有
time is slash context all the time this gives us our beautiful memory printout let's make that nice 时间始终是斜线上下文，这给了我们美丽的记忆打印输出，让我们把它做得更好
and big and happy to see it looking so empty after we started the session again that looks great 又大又高兴地看到它看起来如此空当我们再次开始会议后看起来很棒
and this is something that I do all the time as you know and along with that there are a couple 正如你所知，这是我一直在做的事情，除此之外还有一些
of commands that go hand in hand one of them we've also already met which is compact which 齐头并进的命令其中一个我们也已经遇到过，它是紧凑的
kicks off a compact and resets everything and it's worth doing that yourself not letting it get into 启动一个契约并重置一切，你自己这样做是值得的，不要让它进入
this dangerous territory and running it for you while it's right in the middle of doing some work 这个危险的领域并在它正在做一些工作的时候为你运行它
that can cause troubles it just it can cause a lack of coherence and problems to go off the rails. 这可能会带来麻烦，只是它会导致缺乏连贯性和问题出轨。
You can also type compact and then as I said before just put some some summarization instructions 您还可以输入“compact”，然后正如我之前所说，只需输入一些摘要说明
here about what information you particularly want to keep. I personally I prefer to put those sorts 这里是关于您特别想保留哪些信息的信息。我个人更喜欢把这些分类
of those bits of information in claude.md myself I rather play a primary role in controlling its 我自己在 claude.md 中的这些信息中，我宁愿在控制其方面发挥主要作用
information that way but you should experiment and it gets better and better at this kind of 那样的信息，但你应该尝试一下，在这种方面它会变得越来越好
thing as well maybe my knowledge is is a sort of set from from a few months ago of using it 也许我的知识是几个月前使用它的一套
and then the other one to use to know that the other the other one also begins with the letter 然后用另一个来知道另一个另一个也以字母开头
c that goes along with context and compact is the one that's clear a very dangerous one to use what 与上下文和紧凑一起使用的 c 显然是一个非常危险的使用
clear does is absolutely wipes the conversation history it's the same as basically exiting and 清除的作用是绝对擦除对话历史记录，这与基本上退出相同
starting a fresh claude you do this to reset everything so that it's back to reading the 开始一个新的克劳德，你这样做是为了重置一切，以便它回到阅读
agents.md it's as if you started up a new claude sometimes it's liberating to do this I actually Agents.md 就好像你启动了一个新的克劳德，有时这样做是一种解放，我实际上
like working this way I like to keep my claude.mds up to date I tell it to write its own files I I 就像这样工作我喜欢让我的 claude.mds 保持最新状态我告诉它写自己的文件我我
make sure that everything is um is tidy and up to date and then I just I either just do a slash 确保一切都是整洁且最新的，然后我要么只是做一个斜线
clear or I get out of claude by doing ctrl c twice and then launch claude again and I do a context to 清除，或者我通过两次 ctrl c 退出克劳德，然后再次启动克劳德，我做了一个上下文
see that everything is nice and clean and fresh and that's the way I like to work but often the 看到一切都漂亮、干净、新鲜，这就是我喜欢的工作方式，但通常
compacting works pretty well too and of course it's much faster to do it that way okay another 压缩效果也很好，当然这样做要快得多，好吧，另一个
one to show you is slash config I do that it shows me it's actually the same as the second 一个向你展示的是斜杠配置我这样做它向我展示它实际上与第二个相同
page of the stats that we were looking at before uh the status uh but it's sometimes useful and 我们之前查看的统计信息页面呃状态呃但它有时很有用并且
slash usage takes you to that third page and then uh the other one I wanted to show you yeah it's 斜线用法会将您带到第三页，然后呃我想向您展示的另一页是的，这是
actually a slash stats uh similar to status but stats this gives you a rather pleasing diagram 实际上是一个斜杠统计数据，类似于状态，但是统计数据会给你一个相当令人愉快的图表
of your usage of claude code uh there there you see an overview and the models tokens per day 您对克劳德代码的使用情况在那里您可以看到概述和每天的模型令牌
uh for whatever reason mine and look at that it shows my moonshot kimi k2 at the bottom there 呃，无论出于什么原因，我的看看它在底部显示了我的 Moonshot kimi k2
uh for whatever reason uh my my history is only as of this year I've used cloak over some time 呃，不管出于什么原因，呃，我的历史只有今年，我已经使用斗篷有一段时间了
it may be that I changed the plan uh but uh but this is what what it shows but if you've been 可能是我改变了计划呃但是呃但这就是它所显示的但是如果你已经
using cloak code for a while you'll see a nice uh a busy screen there and this is fun to track to 使用斗篷代码一段时间，你会看到一个漂亮的呃忙碌屏幕，跟踪起来很有趣
see as you are using uh using the platform okay and over time we're going to learn some of the key 看看您正在使用呃使用该平台，随着时间的推移，我们将学习一些关键知识
shortcuts as you get more comfortable familiar with it but one to know perhaps that's used it 当你越来越熟悉它时，你会发现快捷方式，但也许有人知道它已经被使用过
used to be used a lot more than it is these days is shift tab shift tab switches to accept edits 过去比现在使用得更多的是 Shift Tab Shift Tab 切换来接受编辑
on which means that things just get accepted and shift tab again is plan mode on that's back to 这意味着事情刚刚被接受，然后再次切换选项卡是计划模式，然后回到
this idea of a plan mode where it plans out first um and uh yeah the plan mode is something which 计划模式的想法是首先计划嗯，是的，计划模式是这样的
is um is is not used as much anymore because now it tends to be good at deciding itself when it's is um is 不再那么常用了，因为现在它往往善于在
right to be planning and when it's right to be doing so particularly with opus it's less necessary 制定计划是正确的，而且当这样做是正确的时候，特别是对于作品来说，就没那么必要了
to force it to be on a plan mode um and yeah except edits on just means that it's going to 强制它处于计划模式，嗯，是的，除了编辑只是意味着它将
accept file edits uh it's not quite the same as yolo mode on claude that we are going to do proper 接受文件编辑呃，它与 claude 上的 yolo 模式不太一样，我们要做正确的事情
yolo mode at uh at some point um okay so that is uh that that is some of the the really common yolo 模式在某个时候，好吧，所以这就是呃，这是一些真正常见的模式
and put it back to to normal some of the very common shortcut keys another one you might want 并将其恢复正常一些非常常见的快捷键另一个您可能想要的
to look out for is control o puts it on a detailed transcript mode detailed um and press control 要注意的是控制 o 将其置于详细转录模式详细 um 并按控制
again to toggle that off um when it's on that detail mode you get a lot more information printed 再次将其关闭，当处于详细模式时，您会打印更多信息
and that can be pretty interesting to see everything that's going on should you wish to 如果你愿意的话，看看正在发生的一切会很有趣
get the gory detail okay that's some of the common commands in claude code and then just some other 获取血淋淋的细节好吧，这是克劳德代码中的一些常见命令，然后是其他一些命令
things to mention about the setup of claude code there is at the top here you'll see a directory 关于克劳德代码的设置需要提到的事情在顶部你会看到一个目录
called dot claude that has been creating for us as we've been going and in there are some settings 叫做 dot claude，它一直在为我们创建，其中有一些设置
in a json file and if i show you this you know all those times when we've been pressing the button 在 json 文件中，如果我向您展示这一点，您就会知道我们按下按钮的所有时间
two to say okay i accept you can do this and by the way you can do this again in the future 两个说好的我接受你可以这样做并且顺便说一句你将来可以再次这样做
whenever you do this claude code adds a line in this json file with all of the things that it's 每当你执行此克劳德代码时，都会在此 json 文件中添加一行，其中包含它的所有内容
allowed to do and if you wish you can come in and edit this permissions file directly yourself 允许这样做，如果您愿意，您可以自己直接进入并编辑此权限文件
and give it the ability to do any of these things that gives you this kind of instant ability to 并赋予它执行任何这些操作的能力，从而使您能够立即执行
manage the permissions that it's doing and you can also remove a permission by just taking it 管理它正在执行的权限，您也可以通过获取权限来删除它
out of the json here there's also a command slash permissions which you can use uh to um 这里的 json 之外还有一个命令斜杠权限，您可以使用 uh 到 um
to to uh see the different permissions that it's got to add a new rule and to remove a rule and so 呃看到添加新规则和删除规则等的不同权限
on but it's easy to edit it directly here too and a final thing worth knowing is that within claude 但在这里直接编辑它也很容易，最后一件值得知道的事情是在 claude 中
code you can use the at sign to represent a file path uh the contents of a file and that's a good 代码中，您可以使用 at 符号来表示文件路径，文件的内容，这是一个很好的方法
trick for you for knowing about when you're building some of these uh these various uh um 让你了解何时构建其中一些呃这些不同的呃呃的技巧
files that claude will read so to give an example i can go into claude.md right here this is our 克劳德将读取的文件，举个例子，我可以进入克劳德.md，这是我们的
claude.md and if i want the plan to be in this file then i can come here and i can just say uh claude.md 如果我希望该计划位于此文件中，那么我可以来这里，我只能说呃
plan detailed plan as a heading let's make that a uh a heading like that and then i can just do at 计划详细计划作为标题让我们将其设为呃这样的标题，然后我可以这样做
and now i can put the path to that detailed plan so i can say docs slash plan.md and that plan file 现在我可以输入该详细计划的路径，这样我就可以说 docslash plan.md 和该计划文件
will now be inserted in there and included in the claude.md file and that is a common trick 现在将被插入其中并包含在 claude.md 文件中，这是一个常见的技巧
another a neat trick that some people do is that if they want to be able to have an agents.md 有些人做的另一个巧妙的技巧是，如果他们希望能够拥有代理。md
and also have a claude.md file and they want it to be the same so that you could either use 并且还有一个 claude.md 文件，他们希望它是相同的，以便您可以使用
claude code or be using github copilot and have it access to the same information then they don't claude 代码或使用 github copilot 并让它访问相同的信息，然后他们就不会
write a a claude.md at all instead of the entire claude.md they just have a single a single 根本写一个 claude.md 而不是整个 claude.md 他们只有一个
statement which is uh at agents.md and that basically means that claude.md is just the Agents.md 上的声明基本上意味着 claude.md 只是
contents of agents.md and that way you can maintain one file rather than two and it refers Agents.md 的内容，这样您就可以维护一个文件而不是两个文件，它引用
it points to agents.md so that's a nice trick to know about and and some people use that to have 它指向agents.md，所以这是一个值得了解的好技巧，有些人用它来
one file rather than two and you can use that at syntax in a claude.md file or you can use it just 一个文件而不是两个文件，您可以在 claude.md 文件中使用该 at 语法，或者您可以只使用它
in a prompt to claude and it brings the contents of the file into the context so it's to be used 在克劳德的提示中，它将文件的内容带入上下文中，以便使用它
with care because it will fill up your context very quickly if the file is a long file but it's 请小心，因为如果文件很长，它会很快填满您的上下文，但它是
a powerful way to bring information into context whether it's in claude.md or in the prompt and if 一种将信息带入上下文的强大方法，无论是在 claude.md 中还是在提示中，以及 if
you do a directory there if you do at and then a directory it just brings the listing of that 如果你在 at 然后做一个目录，它只会带来该目录的列表
directory it doesn't bring all the files in that directory it just brings like a list of the files 目录它不会带来该目录中的所有文件，它只是带来文件列表
into into the context 进入上下文