Your first session: explore, ask, change

11 min read text
Course contents (20 lessons)
  1. Meet Claude Code
  2. What Claude Code is and how it differs from a chat window
  3. Installing Claude Code and signing in
  4. Your first session: explore, ask, change
  5. Asking well and staying in control
  6. Asking for changes: context, goal, constraints and acceptance criteria
  7. Reading and approving edits
  8. Permission modes: how much freedom to give
  9. Project memory and slash commands
  10. CLAUDE.md: teaching the tool about your project
  11. Slash commands and custom commands
  12. Everyday coding workflows
  13. The plan-first workflow
  14. Understanding unfamiliar code
  15. Debugging with Claude Code
  16. Refactoring safely
  17. Writing tests with Claude Code
  18. Git, small changes, cost and security
  19. Git workflows: branches, commits and pull request descriptions
  20. Keeping changes small and reviewable
  21. Context and cost awareness
  22. Security habits: secrets, commands and untrusted input
  23. Extending the tool, teamwork and a final project
  24. Hooks and MCP servers explained
  25. Team practices for AI-assisted coding
  26. Final project: building a small app step by step

The shape of a good first session

For a first session, I follow a simple order: look around, ask something small, make one tiny change, check it. The aim is not to produce a lot of code. The aim is to learn how the tool thinks and how much you can trust it with this particular project.

Step 1: look around

Read the README and the main entry point. Summarise in five bullets what this project does and how it is organised. Do not change any files.

You will often see the tool run searches and read several files before it answers. That is normal. It is gathering context. The answer shows what it understood. If something is plainly wrong, correct it now. Mistakes in understanding spread into every later edit.

Step 2: ask a real question

Where is the code that sends the welcome email after sign-up? Show me the function and explain, in four sentences, when it is called.

Check the answer by opening the file yourself. It takes ten seconds, and it tells you if the tool is reliable for this codebase.

Step 3: one small change

Pick something low-risk: a log message, a comment, a small validation, a typo in a user-facing string.

In the sign-up handler, the error message for an empty email says "Invalid input". Change it to "Please enter your email address". Update any test that checks the old message. Show me the change before running anything else.

Why it works

It names the place, the old text and the new text. It tells the tool to update related tests, which prevents a silent break. And it asks to see the change first. This is a small request with a clear result, so any problem is easy to see.

Step 4: read what it proposes

The tool shows the edit it wants to make, usually as a diff: lines removed in one colour, lines added in another. You approve or decline. At this stage, always read the diff, even if it is two lines. Reading becomes a habit, and the habit protects you later when the diffs are bigger.

If the change is not what you wanted, decline it and say why: "No, keep the old message for the API response, change only the form validation." The tool will try again with that information.

Step 5: run the checks

Run the test suite and tell me what passed and what failed. If anything fails, explain why before fixing it.

The tool may ask permission to run the command. Read the command shown. It should be your project's normal test command, nothing more. Approve it if it is.

Step 6: review in git

git diff
git status

Outside the tool, look at what changed. This is your independent check. The tool's summary says what it intended. Git shows what actually happened. Make it a rule: never commit what you have not seen in a diff.

Interrupting and stopping

If the tool starts going down the wrong path, press Escape to interrupt it, then give a short correction. You do not have to wait for it to finish. Interrupting early is much cheaper than undoing a long wrong change.

What to notice in the first session

  • How much of your project did it read before answering? More reading generally means better answers.
  • Did it follow your conventions, for example naming and file layout?
  • Did it run the tests without being told?
  • Did it say when it was unsure, or did it guess?

Your notes here will shape the CLAUDE.md file we write in a later lesson.

The common mistake

The common mistake is approving edits without looking, because the first few were fine. Trust grows slowly and breaks quickly. One wrong approval of a larger change, such as a database migration, can cost you more than a day.

Try it yourself

Run all six steps in a small project. Write down three things the tool understood well, and one thing it got wrong. Then revert with git so that you finish with a clean tree, and note how long the whole session took.

This course is free to read. Create a free account to enrol, save your progress and pick up where you left off.

Sign up free I already have an account