Claude Code . Beginner . 75 min
Claude Code Fundamentals
A practical first course for engineers starting with Claude Code: install it, run a first session, understand the agentic loop and permissions, and ship reviewed changes through your normal git workflow.
What your team will learn
- Install Claude Code, authenticate, and run a productive first session in a real repository
- Explain the agentic loop and choose the right permission mode for a task
- Use slash commands such as /clear, /compact and /init to manage context deliberately
- Use plan mode to agree on an approach before any file is edited
- Review diffs and commit agent-written changes with the same rigor as human code
Outline
- Install and first session (14 min, 4-question quiz)
- The agentic loop, permissions and modes (16 min, 4-question quiz)
- Slash commands and context management (15 min, 3-question quiz)
- Plan mode: agree before you edit (14 min, 3-question quiz)
- Reviewing diffs and the git workflow (16 min, 4-question quiz)
Free lesson
Install and first session
Claude Code is a command line agent that works inside your repository. Unlike a chat window, it can read files, search the codebase, run shell commands and edit code, asking for permission along the way. This lesson gets it installed and walks through a first session that teaches you more about the tool than about the code.
Installing
The native installer is the recommended method, and it updates itself in the background. Homebrew, WinGet and npm installs also work, but they do not auto-update by default. The npm package needs Node.js 22 or later. Check the setup page in the Claude Code docs for your platform.
# Native installer (macOS, Linux, WSL)
curl -fsSL https://claude.ai/install.sh | bash
# Or Homebrew
brew install --cask claude-code
# Verify
claude --versionThe first time you run claude it asks you to sign in. You can use a Claude subscription or an Anthropic Console account billed by API usage, and many companies route it through a cloud provider such as Amazon Bedrock or Google Vertex AI. If your company has a standard setup, use it: it decides billing, data handling and which models you can reach.
Start in the right directory
Claude Code treats the directory you launch it from as the project root. Always cd into the repository first. Launching from your home directory gives the agent a huge, irrelevant tree to search and makes its file access much broader than it needs to be.
cd ~/code/billing-service
claude
# Or run a single non-interactive prompt and exit
claude -p "List the main entry points of this service"A good first prompt
Do not start with a feature request. Start by asking the agent to orient itself. This shows you how it explores (which files it reads, which commands it runs) and gives you a baseline for how well it understands the codebase.
- "Give me a tour of this repo: the main modules, how a request flows through them, and how tests are run."
- "How do I run the test suite locally? Run it and tell me what fails."
- "Find where we validate incoming webhook signatures and explain the approach."
Watch the tool calls as they scroll by. You will see reads, searches and, when allowed, shell commands. If the explanation is wrong, correct it in plain language. Corrections early in a session are cheap and improve everything after.
Generate a starting CLAUDE.md
Running /init asks Claude Code to inspect the repository and write a CLAUDE.md file at the root. That file is loaded into every future session as project memory: build commands, test commands, conventions, gotchas. The generated version is a draft. Read it, delete anything vague or wrong, and add the things only your team knows, such as "never edit generated files in src/gen".
Useful keys
- Esc interrupts the agent mid-task so you can redirect it without losing the conversation.
- Pressing Esc twice with an empty prompt, or running /rewind, opens the rewind menu. Pick an earlier prompt to restore the code, the conversation or both, which helps when a session went down the wrong path.
- Shift+Tab cycles permission modes, covered in the next lesson.
- Typing / shows available slash commands; typing @ lets you reference a file path directly.
Exercise
Run your first orientation session
- Install Claude Code using your team's standard method and run claude --version.
- cd into a repository you know well and run claude.
- Ask for a tour of the repo and note one thing it got wrong or missed.
- Ask it to run the test suite and approve the command when prompted.
- Run /init, then edit the generated CLAUDE.md down to the ten most useful lines.
Keep going with your team
The other 4 lessons, quizzes, progress tracking, due dates and certificates come with the Training add-on at $12 per learner per month.
Get startedIndependent course. Not affiliated with or endorsed by Anthropic, OpenAI or Anysphere.