WEBVTT

00:00:00.240 --> 00:00:04.100
Also worth noting is
that whilst you most of the time will

00:00:04.140 --> 00:00:07.860
Claude by running Claude
and then using this interactive

00:00:07.880 --> 00:00:11.470
shell, whilst you will do
that most of the time, you can also

00:00:11.500 --> 00:00:15.150
invoke Claude Code by typing Claude
and then not hitting Enter right away.

00:00:15.160 --> 00:00:18.920
But instead, you can then put your prompt,
your initial prompt

00:00:19.040 --> 00:00:22.800
right after Claude. So if I know
that I want to use Claude

00:00:22.880 --> 00:00:26.690
to explain this project, I can run it

00:00:26.720 --> 00:00:30.680
like this and it will then still enter
this mode you already know, but it

00:00:30.720 --> 00:00:34.540
will start with this prompt
and start generating the answer right

00:00:34.600 --> 00:00:38.140
away,
which can simply save you some time

00:00:38.160 --> 00:00:41.720
do. Here,
it's then asking me again for permission,

00:00:41.800 --> 00:00:45.620
to explore the project and understand it,
read some

00:00:45.660 --> 00:00:49.080
files, and understand which files exist,
and then it

00:00:49.160 --> 00:00:52.900
outputs its response,
which also shows us

00:00:52.960 --> 00:00:56.700
Claude Code to change code,
but also just to explore code or

00:00:56.800 --> 00:01:00.680
ask questions about a code. And that
is really important, an important

00:01:00.780 --> 00:01:04.700
takeaway. Claude Code, of course,
is primarily used to edit code multiple

00:01:04.800 --> 00:01:08.720
files in one session.
It can do very powerful things as you'll

00:01:09.220 --> 00:01:13.040
you are not limited to that.
You can also use it to ask questions or

00:01:13.050 --> 00:01:15.040
discuss potential solutions with it.

00:01:15.080 --> 00:01:18.830
Now if you wanted to ask this question
without then

00:01:18.840 --> 00:01:22.720
being stuck in the CLI mode,
you could run this same command

00:01:22.800 --> 00:01:26.700
with the -p flag added. And this will then

00:01:26.880 --> 00:01:30.370
still run Claude Code but kind of in the

00:01:30.400 --> 00:01:33.100
background without opening that CLI.

00:01:33.110 --> 00:01:36.630
It will still do everything behind the
scenes, and then it will just come back

00:01:36.800 --> 00:01:40.380
with the response and output that here.
So here we go.

00:01:40.450 --> 00:01:43.300
That's now the response I get here in my
terminal.

00:01:43.360 --> 00:01:47.200
Last but not least,
also pretty important to know I'd say,

00:01:47.220 --> 00:01:51.140
some session and then your editor crashed
or you accidentally closed

00:01:51.220 --> 00:01:54.480
Claude Code or you just need to go back to
an older session.

00:01:54.520 --> 00:01:58.360
You can do that inside of Claude Code with
help of the resume command.

00:01:58.400 --> 00:02:02.360
This then allows you to browse the
different sessions you started

00:02:02.400 --> 00:02:06.240
to any old session like this one here wh-
where we changed the first

00:02:06.280 --> 00:02:10.240
file and continue there with all the
context that belonged to

00:02:10.258 --> 00:02:12.200
the session, which is super useful.

00:02:12.280 --> 00:02:16.080
Or if you know that you just want to
continue the last session you

00:02:16.500 --> 00:02:20.140
interacted with,
you can just start Claude Code with the -c

00:02:20.200 --> 00:02:24.160
command and that will then also start it
with that last session you worked

00:02:24.200 --> 00:02:28.100
on, which in this case
is the last explanation session here in my

00:02:28.160 --> 00:02:31.750
And that's therefore the base usage.

00:02:31.820 --> 00:02:35.700
Obviously,
there's so much more you can do,

00:02:35.720 --> 00:02:39.460
will dive much deeper into all the more
advanced features and then

00:02:39.530 --> 00:02:43.380
also continue working on this project here
for real, but of course, it's

00:02:43.420 --> 00:02:47.010
important to have a general understanding
of how to use the tool and

00:02:47.060 --> 00:02:49.220
configure the tool, and you have that now
