Claude Code is Anthropic's agentic coding tool that works in your terminal. Instead of suggesting a line for you to paste, it reads your project, makes a plan, runs commands and edits files, then checks the result. Product details change quickly, so this lesson teaches the loop and the ideas, and leaves model names, prices and plan limits to the official pages.
After this lesson, you will be able to:
Explain what Claude Code is and how it differs from chatbots and autocomplete tools like Copilot
Understand the agent loop: Claude Code reads your code, makes a plan, runs commands, and writes files on its own
Identify the six core tools (Read, Write, Edit, Bash, Glob, Grep) that compose every Claude Code action
Recognize when Claude Code is the right tool vs when a chatbot or human is better suited
If you have used ChatGPT or Copilot, the biggest change is not a smarter answer. Claude Code acts on your project instead of describing what you should do. The next lesson gets it running on your machine.
The Claude Code Agent Loop, How It ThinksInteractive
Loading visualization...
Claude Code is a command-line tool made by Anthropic that brings Claude directly into your terminal. It is not a browser tab you paste code into. It is not an autocomplete plugin that suggests the next line. It is an agentic coding assistant that:
Explores your codebase: it searches and reads the files it needs to learn your project structure, dependencies, patterns, and conventions
Plans multi-step solutions: it decomposes complex tasks into steps and executes them in order
Writes and edits files: it creates new files, modifies existing ones, and respects your code style
Runs commands: it executes terminal commands (build, test, lint, git) and reacts to the output
Iterates on errors. If a test fails or a build breaks, it reads the error, diagnoses the problem, and fixes it
#How Claude Code Differs from Other AI Coding Tools
Feature
ChatGPT / Claude Chat
GitHub Copilot
Claude Code
Interface
Browser chat window
IDE inline suggestions
Terminal CLI
Context
Only what you paste
Current file + neighbors
Searches and reads the whole project as needed
Autonomy
None, you do everything
Suggests next line
Reads, writes, runs, iterates
Multi-file
Manual copy-paste per file
Limited
Edits dozens of files in one task
Runs commands
No
No
Yes, build, test, lint, git
Iterates on errors
Only if you paste the error
No
Automatically reads errors and fixes
Explore All 6 Core ToolsInteractive
Loading visualization...
What Do You Think?
You ask Claude Code to 'add pagination to the /api/users endpoint.' What do you think it will do?
Claude Code reads your existing /api/users endpoint to understand the current implementation, checks your project's conventions for how other endpoints handle pagination, writes the database query changes, updates the API response types, modifies any frontend code that calls this endpoint, runs your test suite, and if a test fails, reads the failure and fixes it. All from a single natural language instruction.
The agent loop you're seeing here is the same model-acts-observes-reasons cycleAgent LoopThe agent loop is the observe-think-act cycle where an AI agent perceives its environment, reasons about the next step, and executes an action.Learn more that powers ReAct-style AI agents, and the underlying mechanic, function calling, is the same tool-calling protocol that every modern LLM provider exposes.
Installing and signing in is covered in the next lesson, Getting Started: Install & Auth. It has the current install methods, the sign-in options and a first-run smoke test, so this lesson does not repeat them. Once Claude Code is running, come back to the sections below: every example in them is a natural-language request you type into a session.
Once Claude Code is installed and launched (see the next lesson) in your project directory, you interact with it by typing natural language. There is no special syntax, just describe what you want:
"What does this project do?", Claude reads your codebase and explains it
"Fix the bug in auth.ts", Claude finds and fixes the bug
"Add dark mode to the settings page", Claude builds the feature
"Write tests for the UserService class", Claude generates tests that match your testing framework
"Refactor the database queries to use connection pooling", Claude makes the architectural change
Claude Code reads the relevant files, makes a plan, asks for permission to proceed, then executes. You watch the work happen in real time and can intervene at any point.
#The CLAUDE.md File: Your Project's Instruction Manual
The CLAUDE.md file lives in your project root and gives Claude Code project-specific instructions. It is read automatically every time Claude Code starts a session in that directory.
pythonplayground.py · Pyodide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Tests: Verify the example CLAUDE.md contains all essential sections.
Plan: decompose the task into steps (visible in plan mode)
Execute. Write code, edit files, run commands
Verify. Check if tests pass, build succeeds, lint is clean
Iterate. If something failed, read the error and fix it
Report. Tell you what was done and what changed
This loop is what makes Claude Code "agentic" rather than just a code generator. It does not just produce code and hope for the best, it verifies its work and fixes problems autonomously.
Quick check
A teammate asks: 'Why is Claude Code better than just chatting with claude.ai and pasting answers?' Pick the strongest one-line answer.
Claude Code is an agentic CLI tool, not a chatbot, it reads your codebase, runs commands, writes files, and iterates on errors autonomously, operating directly in your terminal
It differs from Copilot and ChatGPT in autonomy and context: Claude Code can search your whole project (not just the current file), executes multi-step plans, and verifies its own work
CLAUDE.md is your project's instruction manual for AI, a well-written CLAUDE.md file ensures Claude Code follows your conventions, uses the right commands, and avoids anti-patterns from the first interaction
The agentic loop (understand, gather, plan, execute, verify, iterate) is what makes it powerful: instead of generating code and hoping it works, Claude Code checks and fixes its output
What is the fundamental difference between Claude Code and GitHub Copilot?
You now understand what Claude Code is, how it differs from other AI coding tools, and why the CLAUDE.md file is essential. Next up: Core Commands and Tools, mastering the specific commands and capabilities that make Claude Code powerful.