~/academy $ claude learn first-session-in-the-terminal
Your first session in the terminal
Asking about a project, approving changes, switching permission modes and the handful of commands you will use daily. 7 min
Watch it done: a safe first session in the terminal
Step 1 of 7
Move into your project folder first. Claude Code works in the folder you start it from.
- Move into your project folder first. Claude Code works in the folder you start it from. Type: cd ~/projects/my-app.
- Start Claude Code. Once you have logged in, it remembers you. Type: claude. The Claude Code prompt appears with the version, current model and working directory shown above it. The first time, you are asked to log in through your browser.
- Start with a question, not a change. You do not paste any files: Claude Code reads them as it needs them. Type: what does this project do?. Claude reads the files it needs and replies with a summary.
- Now ask for something small, so you can see how a change is shown and approved. Type: add a hello world function to the main file. Claude finds the right file and shows you the change. If it asks before making it, select Yes to approve.
- Press Shift+Tab to change the permission mode. On your first project, Manual is the safe choice: it asks before every edit and command. The status bar under the prompt shows the mode you are in. From auto mode, the first press switches to Manual, shown as ⏸ manual mode on.
- Forgotten a command? /help lists them, and typing / on its own opens the command menu. Type: /help. Claude Code shows help and the commands available to you.
- Leave the session when you are done. Your conversation is saved, so /resume or claude --continue can bring it back later. Type: /exit. Claude Code closes and you are back at your normal shell prompt. Pressing Ctrl+D twice does the same.
Commands from the official Claude Code docs, checked 18 November 2026. Lines marked Note describe what happens and are not real output.
$ Read
Start by asking, not changing
Open a terminal in your project folder and run claude. Your first message should be a question: what does this project do? or explain the folder structure. It reads files as it needs them, so you do not paste anything.
Then ask for something small: add a hello world function to the main file. It shows the change and asks before writing it. Choose Yes to approve.
Lesson notes: Your first session in the terminal
Everything in this lesson as text, for revision or to read without the interactive steps. By the end you will be able to: You can run a safe first session on a real folder.
Step 1 of 5 · Read
Start by asking, not changing
Open a terminal in your project folder and run
claude. Your first message should be a question:what does this project do?orexplain the folder structure. It reads files as it needs them, so you do not paste anything.Then ask for something small:
add a hello world function to the main file. It shows the change and asks before writing it. Choose Yes to approve.Step 2 of 5 · Read
Permission modes
The permission mode decides what Claude may do without asking. Recent versions start in auto mode, where Claude works without asking but a background safety check reviews each action (checked 18 November 2026). Press
Shift+Tabto cycle modes during a session. On your first project, switch to Manual, which asks before every action, until you trust how it works.Plan mode is worth learning early: Claude researches and writes a plan without changing anything, and you approve the plan before any edit happens.
Step 3 of 5 · Read
Commands you will use every day
Inside a session, type
/to see every command. These four cover most days:/help Show available commands
/clear Start a fresh conversation (bring the old one back with /resume)
/init Write a CLAUDE.md file describing this project, read at the start of every session
/exit Leave Claude Code (or press Ctrl+D twice)
Step 4 of 5 · Try it in the terminal
Give the project a memory
You want Claude to write a CLAUDE.md file that explains this project, so every future session starts informed. Type the command.
Hint: It is a slash command, short for initialise.
Show the command
$ /init Analysing the codebase... ✓ Created CLAUDE.md with build commands, structure and conventions.
Step 5 of 5 · Quiz
Check your understanding
You want a big change but would like to see the approach before any file is edited. What do you do?
- Switch to plan mode with Shift+Tab, then describe the change.
- Ask it to go ahead and undo it if you do not like it.
- Type /clear first.
Show the answer
Switch to plan mode with Shift+Tab, then describe the change. Plan mode researches and proposes. Nothing changes until you approve.