Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Claude Code Self-Improvement: Fewer Tokens, Better Results
New

Claude Code Self-Improvement: Fewer Tokens, Better Results

Fix the 12 problems Claude Code users hit most, measure every fix, and make your setup check itself
Created byThanh Vũ
Last updated 11/2026
English
EnglishVietnamese

What you'll learn

  • Measure what a Claude Code request really sends, and trim the startup without breaking your checks
  • Keep long sessions on track with compaction, handoff notes and a hook that restores them
  • Tell a model problem from a setup problem with five quick checks and a canary task
  • Get Claude to plan and ask the right questions before it writes code
  • Make rules stick, from the project rules file to hooks and a Stop gate
  • Stop "done" claims that fail the real checks, and make Claude's work easy to review
  • Design permissions that ask less and protect more, with allowlists, deny rules and a guard hook
  • Write skill descriptions that fire, and choose between a skill, an MCP server and a plain command
  • Delegate to subagents without burning tokens, and write loops that end honestly
  • Build a small benchmark for your own repository and keep only the changes that measurably help

Course content

14 sections • 47 lectures • 6h 26m total length
  • 0.1 Course map, measuring, and repo setup4:33

Requirements

  • You already use Claude Code (any paid plan) on real projects
  • Basic Python and git: you can run a script, read a test and make a commit
  • Python 3.12 or newer installed, to run the companion apps and benches

Description

This course contains the use of artificial intelligence.

You already use Claude Code every day. Then the limit runs out by lunch, a long session slowly gets worse, Claude ignores your project rules, says "done" when the real checks fail, fans out subagents that burn through your quota, or loops on a goal that never ends. This course takes those problems one at a time, shows why each one happens, fixes it, and measures the fix.

How every chapter works. Each chapter starts from a problem developers report again and again. First the theory: how that part of Claude Code really runs, step by step, drawn by hand. Then the fix. Then a hands-on lesson recorded live in a real Claude Code session, with the numbers measured before and after on a small app built for that chapter.

What we measured. Trimming the startup cut the first request from about 40,600 to about 25,500 tokens while the project's checks still passed. Answering the open questions before coding took the owner's hidden tests from 1 to 3 out of 5 per run to 5 out of 5. One small agent with a clear brief did the work of eight general-purpose subagents with about seven times fewer tokens, and found the same 8 issues. A loop goal rewritten as an end state used close to half the tokens and passed every hidden test. When a fix did not move the numbers, the lesson says so.

Every new area from the basics. Context and compaction, project rules and memory, hooks, permissions and the sandbox, skills, MCP servers, subagents, loops and goals, and a measuring harness: each one gets its own primer before we measure anything.

Start with the chapter that hurts. Every chapter stands alone, with its own small app, a step-by-step README, the bench that produced its numbers, and the lesson slides. A lookup table in the first lesson maps each symptom to its chapter. The capstone shows you how to run the same method on your own repository.

Chapters 12 and 8 are still growing: more lessons will be added to them over the coming weeks.

Narration uses an AI-synthesized voice. The apps, tasks and data in the companion files are made up for this course.

Who this course is for:

  • Developers who use Claude Code daily and hit limits, slow sessions or unreliable results
  • Team leads who want measurable rules for how their team works with Claude Code
  • Anyone who wants proof that a change to their setup helped, not just a feeling