Module 33

AI Coding with Claude

Last updated 2026-06-02

Key points

Lesson 1: What is AI Coding with Claude and why it matters

AI coding with Claude means using Anthropic’s Claude Code tool—a command-line program that acts like a super-powered coding assistant. Think of Claude Code as a "harness" (the wrapper that controls how the AI model behaves) wrapped around the actual AI model, which is the "engine." This harness decides when to read your code, run commands, or fix errors by itself. The key insight is that this harness affects performance more than the model alone does.

Why does this matter? Because Claude Code doesn’t just write text—it can interact with software like a human would. Anthropic acquired a company called Fercept that teaches AI to see and click through spreadsheets, web forms, and buttons on your computer. Claude Code can now navigate multi-million line codebases, legacy systems, and handle languages like C++ or Java. The tool reads your instructions, picks the right tool, and adapts when something breaks, acting like a project manager for your code.

However, beginners should know the reality check: a study showed experienced developers using AI took 19% longer on tasks, though they thought they were 24% faster. That gap between perception and reality means using Claude Code effectively requires focus, not just feeding it more information. The goal is to make Claude more focused, not smarter. For non-coders, it’s possible to build a first application in a couple of days, but mastering the harness is what separates those who improve from those who don’t.

Sources

Lesson 2: How to use AI Coding with Claude: step-by-step

To start using Claude Code, think of it as a car—the AI model inside (like Opus or Sonnet) is the engine. You don’t need to know how to code; you give instructions in natural language (plain English). First, download Visual Studio Code (VS Code), a free code editor. Open it up. Next, install the Claude Code extension or use the desktop app—both are free to download.

Once set up, you can build your first application. For example, say you want a simple video editing tool. Instead of writing lines of code, just type: “Create an interface where I can trim videos by dragging a slider.” Claude Code will generate the working prototype in HTML—often with sliders and knobs you can tune. If it’s not right, you can iterate (try again without starting over) by giving more feedback in the same conversation.

For more advanced use, point Claude Code at your codebase (your existing files) or your Git history (record of code changes). Ask it to produce a “readable explainer page” of your project’s flow, including key code snippets and any common mistakes (gotchas). This helps you learn or debug faster.

To save money, you can run Claude Code with a free local model using Ollama, but most beginners should start with the official hosted version. The key is to treat Claude Code as an agent that reads your files and writes code for you—not like ChatGPT. Feed it relevant context files, describe what you want, and refine until it works. That’s the whole process: install, prompt, iterate, ship.

Sources

Lesson 3: Best practices and pitfalls

When using Claude Code for AI-assisted coding, beginners often fall into traps that waste time or produce fragile code. One key mistake is leaving failed attempts in your session’s context (the working memory of the current conversation). If you just say “That didn’t work, try this instead,” the broken code stays in context, making Claude repeat errors. Instead, use a fresh start to clear that baggage and give a clean, specific instruction.

Another pitfall is vague prompting. A command like “Add this feature” forces Claude to guess, leading to poor results. Be concrete: describe exactly what you want, the file to modify, and the expected behavior. This cuts down on back-and-forth fixes.

Best practices include using skills (reusable instruction sets) to enforce reliable structures, rather than cobbling together one-off prompts that break when conditions change. Also, treat Claude Code as a project manager: it reads workflows, picks tools, and handles errors adaptively. Let it research problems and propose solutions rather than micromanaging every line.

Be aware that studies show AI-assisted developers can be 19% slower and score 17% lower on coding tests if they trust AI output blindly. Always review AI-generated code for correctness and security—Claude can write its own code (90% of Claude Code was written by itself), but human oversight prevents subtle bugs. By prompting clearly, resetting context when needed, and reviewing outputs, you avoid the perception-reality gap and build robust software.

Sources