Welcome to Foundation — Getting Started with Claude Code! In this lesson, we'll explore what Claude Code is, how it differs from tools like ChatGPT or GitHub Copilot, and when to use it. By the end, you'll understand what makes it uniquely powerful for building software.
Imagine building a Python script that analyzes sales data from a CSV file and generates charts. You might know what to build but not how: which libraries to use, how to structure code, or how to debug errors.
The traditional approach? Search tutorials, copy snippets from Stack Overflow, paste into your editor, run code, hit errors, search again, and repeat. It works, but it's fragmented and time-consuming.
Claude Code is an agentic AI coding tool that lives in your terminal. Unlike traditional AI assistants that give advice or snippets, Claude Code actually does things: reads project files, writes code, executes commands, observes results, and iterates until complete.
Think of it as a capable developer working alongside you. Describe what you want, and Claude Code creates files, writes code, runs it, fixes errors, and keeps going until it works—all with your oversight and approval.
ChatGPT is conversational and excellent for explaining concepts and drafting code snippets. You ask for help, it provides text responses with code blocks, and you copy-paste into your editor. Great for learning, but it doesn't interact with your codebase or run code.
IDE Autocomplete extensions suggest the next lines as you type, speeding up writing and handling repetitive patterns. They operate at the line-by-line level, not managing whole projects.
Claude Code is agentic and autonomous. You describe your goal, and it orchestrates the entire implementation—from creating files to running tests to debugging. It operates at the project level, maintaining context across multiple files.
Agentic means Claude Code acts like an agent working toward a goal, chaining actions autonomously rather than waiting for your next instruction.
Using our sales data analyzer example:
-
ChatGPT: You ask how to analyze sales data. It responds with code snippets. You copy them, save, run, hit an import error, search for fixes, install packages, and gradually work through issues.
-
Autocomplete: You create
analyze_sales.pyand start typing. Your IDE autocompletes imports and suggests functions. You still run code yourself, interpret errors, and guide structure. -
Claude Code: You say, 'Create a script to analyze sales data from
sales.csvand generate a bar chart.'Claude Codecreates the file, writes implementation, runs it, notices missing packages, installs them, catches parsing errors, fixes them, and generates the chart. You review and approve actions.
Ask Claude Code to 'Create a temperature converter for Celsius, Fahrenheit, and Kelvin.'
Step 1: Claude Code creates temperature_converter.py with conversion functions.
Step 2: It runs the script with test values.
Step 3: If output is wrong—say 0°C = 373.15K—it identifies the bug, fixes the formula, and reruns.
Step 4: This cycle continues until the solution works correctly. You see each action and can approve or reject.
Building new features: Implementing complete features across multiple files, like adding user authentication.
Debugging and fixing: Locating problems from stack traces, understanding context, applying fixes, and verifying tests pass.
Refactoring: Making coordinated changes across files while maintaining consistency and running tests.
Understanding codebases: Exploring repositories, explaining architecture, tracing execution flows, and documenting components.
Simple factual questions: For 'What's the syntax for a Python dictionary comprehension?', use ChatGPT or documentation.
General conversation: Claude Code expects programming tasks, not product brainstorming or non-coding discussions.
Deep learning focus: If you want to understand every line you write, manual work or Copilot's line-by-line assistance might be better for skill-building.
Sensitive operations: Tasks involving sensitive data, destructive operations, or production systems require extra caution and manual verification.
You'll learn to install and set up Claude Code, communicate effectively to describe what you want, understand how it uses tools to read files and execute commands, and manage its context and permissions. We'll cover working with existing codebases, building features, fixing bugs, and refactoring code.
Claude Code is an agentic AI tool that autonomously creates files, writes code, runs commands, and iterates toward working solutions with your oversight. It differs from ChatGPT's conversational help and Copilot's inline suggestions by operating at the project level through multiple steps.
In the upcoming exercises, you'll apply these concepts, reinforcing your understanding before we move to actually using the tool.
