Day 7, 30 minutes · beginner
Why it matters
So far you have practised one skill per day. Real work strings them together: a clear request, a plan, the build, a check, a review and a commit. Real work also spreads over more than one sitting. You stop for lunch, come back the next day, or start something else halfway through.
That is what sessions are for. A session is one saved conversation with Claude Code, tied to your project folder. You can name it, leave it and pick it up later with everything still there. Inside a session, a few commands keep the conversation focused, so Claude works on the task at hand and not on what you discussed an hour ago.
Today you do one whole task on Tilda's site, an About page, from plan to commit, with a break in the middle. You end the course with a finished history of reviewed commits and your own one-page note of Claude Code habits.
Sessions in plain words
Claude Code saves every conversation on your computer as you work. The Manage sessions page lists the ways back in:
claude --continuereopens the most recent session in the current folder.claude --resumeopens a list of sessions to pick from.claude --resume <name>opens one by name./resumeinside a running session switches to another one.
A name makes a session easy to find. Give one at the start with claude -n <name>, or during the session with /rename <name>. Without a name, Claude Code makes a short title from your first message.
Each new session starts with a fresh context. It does not see the conversation of other sessions. What carries over is what you wrote down: CLAUDE.md and auto memory from lesson 4, and of course your files and their git history.
The context window in plain words
The context window is everything Claude has in front of it in one conversation: your messages, its answers, the files it read, the output of commands, and your CLAUDE.md. It has a size limit, so it fills up as you work.
The docs say you will rarely hit that limit today: most current models have a very large window, and Claude Code compacts the conversation on its own before it is full. Compacting means it replaces the conversation with a summary. The summary keeps your requests and key code snippets, but detailed instructions from early on can get lost. That is one more reason to keep lasting rules in CLAUDE.md.
The real reasons to keep the context tidy are focus and cost. Every message sends the whole conversation along, so an old, unrelated discussion keeps costing usage and can pull Claude off track.
Four commands for a healthy session
/contextshows how full the context is and what takes the space, with suggestions./compactsummarizes the conversation so far to free space. Add a focus to choose what the summary keeps, for example/compact keep the About page changes./clearstarts a new conversation with an empty context. Use it between unrelated tasks. The old conversation is saved, so/resumecan bring it back./helplists the commands you can use. Typing/on its own also shows the commands, and you can type letters to filter the list.
The best practices page adds one rule of thumb worth keeping: if you have corrected Claude twice on the same thing and it is still wrong, do not try a third time. Run /clear and write one better prompt that includes what you learned.
The steps
The whole task, end to end:
- Start a named session in the mode from your mode card.
- Ask for a plan with what, where and how you will check. Correct it before you approve.
- Let Claude build it and watch the first minute.
Escstops it if it heads the wrong way. - Take a break: look at
/context, leave, and come back with--continueor--resume. - Check and review: the check you named, then
/diff. - Commit the named files and read the command first.
- Clear for the next task, and write your habits note.
Follow the steps for Claude Code below.
Your Claude Code habits note
Write this one yourself, without Claude. One page, in your own words. It is the summary of this course that you will actually use. A good note answers five questions:
- How do I start: which folder, which mode?
- How do I write a request: what, where, how I check?
- What goes in CLAUDE.md, and what does not?
- How do I review: diff, check with evidence, named files?
- When do I clear, compact or start a new session?
Example: Tilda's About page
Tilda started claude -n about-page in Manual mode and asked for a plan. The plan put the link in the header. She kept planning and asked for the footer. After approval, Claude made about.html and changed two lines in index.html.
She checked /context, saw that the conversation took only a small part of the window, and left for lunch. Back at her desk, claude --resume about-page opened the conversation where she left it. Both links worked. /diff showed the new page and the two footer lines. She asked for the commit with the two file names and read the message before saying Yes.
Then she ran /clear, wrote her habits note in a text editor and had Claude commit it on its own. git log --oneline showed four commits, from "Start the Marlow Bakehouse practice site" to her habits note.
Common mistakes
- One endless session for every task of the week. Clear between unrelated tasks.
- Resuming without checking what was done. Ask Claude for a short summary of what is done and what is left.
- Letting Claude write your habits note. The point is that you decide your habits.
Deeper dive
Today's actions
Ticks are not saved without an accountDo it in Claude Code
Claude Code
- Start a session with a name, so you can find it again. Use the mode from your mode card, or Manual if unsure.
cd marlow-bakehouse claude -n about-page --permission-mode manual - Ask for a plan with what, where and how you will check. Correct it with No, keep planning if needed, then approve it.
/plan Add a second page, about.html, with a heading "About Marlow Bakehouse" and three short paragraphs: who Tilda is, why she bakes, and that this is a practice site. Use the same style as index.html. Add a link to it in the footer of index.html and a link back on about.html. How I will check: both links work in my browser, and you show me the lines you changed in index.html. - When Claude is done, type
/contextto see how full the context is and what takes space. Then type/exit. - Come back to the same conversation.
claude --continuereopens the last one in this folder;claude --resume about-pagereopens it by name. Then ask what is left.claude --resume about-page - Check both links in your browser. Then type
/diffand read the changes. If the conversation has grown long, run/compactwith a focus, for example/compact keep the About page changes. - Ask for the commit, naming the files. Read the command before you choose Yes.
Commit about.html and index.html with a short message that says what changed and why. Show me the list of files first. - Type
/clearto start a new conversation for a new task. Write your habits note yourself in a text editor and save it in the folder as my-claude-code-habits.md. Then ask Claude to commit only that file. - Type
/helpto see the commands you can use, then/exit. In the terminal, rungit log --onelineand read your history from the first commit to the last.
Note: claude --resume without a name opens a list of your past sessions in this folder: pick one with the arrow keys and press Enter. /clear keeps the old conversation, so /resume can still bring it back.
Paid planNeeds a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account. The free Claude plan does not include Claude Code.
Create a free account to save your progress
Free, and no payment details. Your ticks and finished lessons are kept, on every device.
Create a free account I already have an accountCreate a free account to save your progress. Sign in or sign up