Also worth noting is that whilst you most of the time will
Claude by running Claude and then using this interactive
shell, whilst you will do that most of the time, you can also
invoke Claude Code by typing Claude and then not hitting Enter right away.
But instead, you can then put your prompt, your initial prompt
right after Claude. So if I know that I want to use Claude
to explain this project, I can run it
like this and it will then still enter this mode you already know, but it
will start with this prompt and start generating the answer right
away, which can simply save you some time
do. Here, it's then asking me again for permission,
to explore the project and understand it, read some
files, and understand which files exist, and then it
outputs its response, which also shows us
Claude Code to change code, but also just to explore code or
ask questions about a code. And that is really important, an important
takeaway. Claude Code, of course, is primarily used to edit code multiple
files in one session. It can do very powerful things as you'll
you are not limited to that. You can also use it to ask questions or
discuss potential solutions with it.
Now if you wanted to ask this question without then
being stuck in the CLI mode, you could run this same command
with the -p flag added. And this will then
still run Claude Code but kind of in the
background without opening that CLI.
It will still do everything behind the scenes, and then it will just come back
with the response and output that here. So here we go.
That's now the response I get here in my terminal.
Last but not least, also pretty important to know I'd say,
some session and then your editor crashed or you accidentally closed
Claude Code or you just need to go back to an older session.
You can do that inside of Claude Code with help of the resume command.
This then allows you to browse the different sessions you started
to any old session like this one here wh- where we changed the first
file and continue there with all the context that belonged to
the session, which is super useful.
Or if you know that you just want to continue the last session you
interacted with, you can just start Claude Code with the -c
command and that will then also start it with that last session you worked
on, which in this case is the last explanation session here in my
And that's therefore the base usage.
Obviously, there's so much more you can do,
will dive much deeper into all the more advanced features and then
also continue working on this project here for real, but of course, it's
important to have a general understanding of how to use the tool and
configure the tool, and you have that now