Lesson 1 of 3 · Claude Code Field Guide

What is Claude Code?

interactive5 min

Story: The 3 AM Deployment Crisis

It was 2:47 AM when Maya's phone buzzed with the alert she'd been dreading. The production API for her company's e-commerce platform was returning 500 errors. Customers across three time zones couldn't complete purchases. Her team's Slack channel was lighting up.

Maya pulled open her laptop, still half-asleep, and stared at the codebase — 200,000 lines of TypeScript spread across 47 microservices.At this scale, reading the whole codebase yourself stops being possible — which is exactly where an agent that can search and read on its own earns its keep. The error logs pointed to something in the payment processing pipeline, but the stack traces were cryptic. She needed to understand the flow across multiple services, find the bug, fix it, write a test to prevent regression, and deploy — all before the East Coast woke up.

Six months ago, this would have meant hours of grep-ing through files, reading documentation, tracing function calls manually, and hoping she didn't introduce a new bug in her sleep-deprived state. But tonight, Maya opened her terminal and typed two words:

Bash
claude

Within seconds, she was having a conversation with an AI that could see her entire codebase. She described the error. Claude Code read the relevant log files, traced the execution path across four microservices, identified a race condition in the payment webhook handler that was introduced in last week's refactor, wrote the fix, generated a regression test, and prepared a clean git commit — all in under 12 minutes.

12 min

From bug report to production fix

Across 200,000 lines of TypeScript and 47 microservices

Maya reviewed the changes, approved them, and pushed. By 3:04 AM, the fix was in production. She went back to sleep.

This isn't science fiction. This is what software development looks like when you have an agentic AI coding assistant that doesn't just suggest code snippets — it understands your entire project, reasons about complex problems, and takes action to solve them. This is Claude Code.

And in this course, you're going to learn to wield it like Maya does.


Concept: Understanding Claude Code

The Evolution from Autocomplete to Agent

To understand what Claude Code is, you first need to understand what it is not. The history of AI-assisted coding has gone through distinct phases, and most developers are still mentally stuck in an earlier one.

Tip

Use Claude Code in a low-risk branch or scratch project first. That keeps the lesson concrete without making your first attempt carry production pressure.

Info

Claude Code is Anthropic's agentic coding tool. It runs in your terminal, understands your entire codebase, and can take autonomous action — reading files, writing code, running commands — to complete complex software engineering tasks.

What Makes Claude Code Different

There are several agentic coding tools on the market. Here's what makes Claude Code architecturally distinct:

1. Terminal-Native Architecture

Claude Code runs in your terminal, not in a browser or an IDE plugin. This is a deliberate design choice. Your terminal is where real work happens — it's where you run builds, execute tests, manage git, deploy code. By living in the terminal, Claude Code has native access to everything your development environment can do.

Bash
# This is all it takes to start
claude

No browser tabs. No IDE extensions to configure. No OAuth flows with third-party services. You open your terminal in your project directory and start talking.

2. Full Codebase Awareness

When you launch Claude Code in a project directory, it can see and understand your entire project. Not just the file you have open — the entire dependency tree, configuration files, test suites, documentation, and project structure. It reads your package.json, your tsconfig.json, your .env.example, your README.md. It understands how your code is organized.

This is fundamentally different from tools that only see what you paste into them. Claude Code builds a mental model of your project the same way a new team member would — by exploring the codebase.

3. Agentic Tool Use

Claude Code has access to a set of tools that let it interact with your development environment:

ToolWhat It Does
ReadRead any file in your project
WriteCreate or modify files
BashExecute terminal commands
Grep/GlobSearch across your codebase
EditMake targeted edits to specific files

These tools mean Claude Code can do things like:

  • Run your test suite and fix failing tests
  • Search your codebase for all usages of a deprecated API
  • Read your error logs and trace the bug to its source
  • Create new files with proper project conventions
  • Execute git commands to commit and push changes

4. The Human-in-the-Loop Model

Despite its autonomy, Claude Code is designed with you in control. Every file write, every command execution — Claude Code asks for your permission before taking action. You see exactly what it plans to do and can approve, modify, or reject each step.

Working with Claude Code

Do

Use Claude Code as a collaborative partner — review every change, understand the reasoning, and approve deliberately.

Don't

Blindly accept all suggestions without reading the diffs. You are the architect; Claude Code is the builder.

This creates a workflow that's collaborative rather than fully autonomous. You're the architect; Claude Code is a highly capable builder that checks in with you at every step.

The Agentic Loop

At its core, Claude Code operates in what's called an agentic loop. This is the fundamental pattern that separates it from simple chat assistants:

When you give Claude Code a task, it doesn't just generate a response. It:

  1. Thinks about what information it needs and what approach to take
  2. Acts by reading files, searching code, or running commands
  3. Observes the results of those actions
  4. Decides whether it has enough information to proceed or needs to gather more
  5. Continues the loop until the task is complete

This loop can run for many iterations. A complex task might involve Claude Code reading 15 files, running 3 commands, writing 4 files, executing a test suite, fixing a failing test, and re-running the suite — all from a single prompt.

Quick Check

What distinguishes Claude Code from a simple chat assistant like ChatGPT?

Tip

Think of Claude Code as a pair programmer who can actually type on the keyboard, run commands, and verify their own work — but always checks with you before making changes.

What Claude Code Can Do

Let's get concrete. Here are real categories of tasks Claude Code excels at:

Code Generation: "Create a REST API endpoint for user authentication with JWT tokens, input validation, rate limiting, and proper error handling." Claude Code will read your existing code to understand patterns, generate the implementation matching your style, and even write tests.

Debugging: "The /api/orders endpoint is returning a 500 error when the cart has more than 10 items." Claude Code will read the endpoint code, trace the logic, find the bug, fix it, and verify the fix.

Refactoring: "Migrate all our class components to functional components with hooks." Claude Code can systematically work through your codebase, converting components while preserving behavior.

Code Review: "Review the changes in my current branch and suggest improvements." Claude Code will examine your git diff, understand the context, and provide actionable feedback.

Documentation: "Generate API documentation for all our public endpoints." Claude Code reads your route handlers, understands the request/response shapes, and writes comprehensive docs.

Git Operations: "Create a well-structured commit for the changes I've made today." Claude Code examines the diff, groups related changes, writes meaningful commit messages, and can even create PRs.


Apply: See Claude Code in Action

Try This Now

Before we install anything, let's build your mental model of what working with Claude Code looks like. Read through these real interaction patterns and think about how they compare to your current workflow.

Exercise 1: Map Your Current Workflow

Think about the last complex coding task you completed. Write down the steps you took:

  1. How did you find the relevant files?
  2. How many times did you switch between your editor and terminal?
  3. How did you verify your changes worked?
  4. How long did the whole process take?

Now imagine giving that entire task as a single natural language instruction. That's the Claude Code mental shift.

Exercise 2: Identify Your High-Value Use Cases

Based on the capabilities listed above, identify three tasks from your last work week that would benefit most from Claude Code:

  1. A task where you spent significant time finding the right code to change
  2. A task where you spent significant time verifying your changes worked
  3. A task that was tedious or repetitive

These are your "quick win" scenarios — the first things you'll try when we get Claude Code running.

Exercise 3: Understanding the Agentic Difference

Consider this prompt: "Fix the broken login form validation."

A chat assistant would say: "Can you share the code for your login form?"

An agentic tool like Claude Code would:

  1. Search for login-related files: grep -r "login" --include="*.tsx"
  2. Read the login form component
  3. Read the validation logic
  4. Identify the bug
  5. Fix it
  6. Run the tests
  7. Report back

Notice the difference: you didn't have to do any of the searching, context-gathering, or verification manually. The agent handled the entire workflow.


Reflect: The Paradigm Shift

What You've Learned

In this lesson, you've been introduced to Claude Code — not just as a tool, but as a fundamentally new way of building software. Let's crystallize the key ideas:

Key Takeaways

  • Claude Code is an agentic coding tool that runs in your terminal and can autonomously read files, write code, and execute commands
  • It represents Phase 3 of AI-assisted coding — moving beyond autocomplete and chat to autonomous action
  • The agentic loop (think → act → observe → repeat) is what enables Claude Code to handle complex, multi-step tasks
  • Claude Code maintains a human-in-the-loop model — you approve every action, maintaining full control
  • It has full codebase awareness, meaning it understands your entire project structure, not just individual files

The Mental Model Shift

The hardest part of adopting Claude Code isn't learning the commands — it's changing how you think about development work. Most developers are used to being the one who reads files, traces bugs, writes every line, and runs every command. With Claude Code, your role shifts from doing the work to directing the work.

How confident do you feel about applying Claude Code in a real project?

You become the architect. You describe what needs to happen. Claude Code figures out how to make it happen, and you review and approve the approach.

This doesn't make you less of a developer — it makes you a more effective one. The same way using a debugger doesn't make you less of a developer compared to someone who reads assembly, using an agentic AI assistant doesn't diminish your skills. It amplifies them.

Looking Ahead

In the next lesson, we'll dive deep into how Claude Code actually works under the hood — the architecture, the tool system, the context management, and the permission model. Understanding the mechanics will make you a much more effective user.

You'll learn why some prompts get brilliant results and others fall flat, and how Claude Code decides what to read, what to run, and what to write.