Single logo
  • Courses
  • Blog
  • About
Join on SkoolJoin on Skool

In this topic

Claude
  • Claude.ai Interface Tour: Every Control You Need on One Screen
  • The AI Fluency Model: Delegation, Description, Discernment and Diligence
  • Working With Claude: Pick the Surface, Match the Model, Keep the Context Clear
  • Claude's Four Entry Points: Choose Chat, Projects, Artifacts or Research Before You Type
  • What Claude Can Do: Extended Thinking, Web Search, Artifacts and File Analysis
  • Getting More From a Claude Chat: Steer the Conversation Instead of Starting Over
  • Claude Research Mode End to End: From One Prompt to a Cited Briefing
  • Claude's Capability Layer: When to Use Skills, Code Execution or Memory
  • Code Execution and File Creation in Claude: Calculated Numbers and a Real Excel File
  • Adding and Using Skills in Claude: Let Claude Pick the Skill, Then Teach It Your Format
  • Claude Memory, Curation and Incognito: Keep What Helps, Remove What Has Gone Stale
  • Claude Styles, Preferences and Project Instructions: Three Dials, Three Scopes
  • Claude Projects: Knowledge, Instructions and a Real Workspace You Set Up Once
  • Keeping a Claude Project Current and Connected: Refresh, Prune and Grant the Least
  • Claude Scheduled Tasks: Let Claude Work on a Schedule and Email You the Result
  • Claude Code and Claude for Chrome: What They Are and Who They Are For
  • Anatomy of a Good Prompt: Role, Context, Task, Format and Examples
  • Shaping Claude's Output: Format, Tone and Length in a Few Words
  • Iterating and Refining a Prompt: Read, Diagnose, Adjust, Repeat
  • Five Prompting Patterns for Work: Summarise, Extract, Rewrite, Classify and Draft
  • Why Evaluating AI Output Matters Most: Trust, Then Verify
  • Spotting AI Hallucinations and Fabrications: Four Tells and Where Risk Spikes
  • Fact-Checking Claude's Answers: Four Techniques and a Line-by-Line Claim Log
  • Judging AI Output Quality: Four Questions That Score Any Answer
  • Adapting AI Output for Your Audience: One Answer, Three Readers
  • When a Human Must Review AI Output Before It Ships
  • A Personal Validation Checklist for AI Output: Six Lines, Any Draft
  • Fitting Claude Into Real Work: Where It Helps and Where It Never Should
  • Breaking Big Tasks Into Steps With Claude: Small Asks, Checked Hand-offs
  • Designing a Repeatable Claude Workflow: A Reusable Weekly Report Template
  • Measuring If Claude Is Actually Working: One Number, Before and After
  • Communicating AI Value and Limitations to Stakeholders: The Honest Pitch
  • Data Privacy With Claude: What Never Goes in a Prompt, and How to Redact a Document Before You Paste It
  • Responsible AI Use and Transparency: Helpful, Honest, Harmless, and One Honest Line
  • Troubleshooting a Weak Claude Answer: Name the Cause, Fix One Thing, Then Make It Cheaper
  • A Field Guide to AI Tools: Claude, ChatGPT, Gemini and NotebookLM
  • Human-in-the-Loop Design: Where a Person Approves What AI Does
  • Limits, Bias and When Not to Use AI: Checks for the Gaps, Lines You Don't Cross
  • When AI Reads Things You Did Not Write: Hidden Instructions in Emails, Pages and Files
  • ChatGPT and the GPT Models: The App, the Engines, and Fast vs Thinking
  • Build Your Own Assistant in ChatGPT: A One-Job Helper With a Project
  • The OpenAI Toolbox: Image Generation, Canvas, Data Analysis and Sora
  • Where ChatGPT Lives: Web, Desktop, Mobile and Voice, and Free vs Paid in General Terms
  • Gemini and Google's AI Models: Flash, Pro and the Wider Google Family
  • Gemini Across Workspace: Using It in Gmail, Docs, Sheets, Drive and Meet
  • Where Gemini Lives and How to Access It: Doors, Accounts and Plans
  • NotebookLM in 10 Minutes: A Grounded Research Primer
  • Audio Overviews and Grounded Q and A, Live: Asking Three Company Policies in NotebookLM
  • The AI Tool Decision Map: If the Task Is X, Reach for Y
  • Strengths and Weaknesses, Head-to-Head: Run a Fair Test of AI Tools
  • Why Claude Is a Strong Writing Partner: Briefs, Long Documents and Editing
  • Improving Your CV and Cover Letter With Claude: Better Words, Never New Facts
  • A Reusable "Write Like Me" Setup in Claude: Voice Rules From Three Samples
  • Generating and Editing Images With ChatGPT: Brief It Like an Illustrator
  • Creating a Short Video With Google's Gemini and Veo: Brief, Clip, One Note
  • Writing Strong Video Prompts: Shot List, Run It, Close the Gap
  • Turning a Pile of Documents Into Answers With NotebookLM: A Supplier Choice, Checked
  • Market and Competitor Research With Claude, Verified: Six Claims, Two Sources Opened, One Cut
  • Tweak, Share and Know the Limits of a Small Tool Built With Claude Artifacts
  • Ask Questions of a Spreadsheet With Claude: Three Questions, One Number Checked by Hand
  • Charts, Summaries and Sanity Checks With Claude: The Chart Is a Claim
  • Drafting and Replying to Email Fast With Claude: Facts First, Then Four Replies and a Template
  • Difficult Messages and Tone Control: Firm, Warm or Neutral, Chosen on Purpose
  • Meeting Notes to Summary and Action Items With Claude: Write "No Owner Agreed"
  • Claude Projects vs Custom GPTs: Which to Use and When
  • What Claude Cowork Is, and What It Is Not
  • Cowork Demo: Organise a Messy Folder, Then Turn It Into a Document
  • Cowork Demo: Triage a Test Inbox and Draft Replies Without Sending Anything
  • Where Cowork Fits, and Where It Must Not: The Can I Undo It Test
  • Cowork Demo: Build a Morning Brief That Runs Itself
  • Setting Up Claude Inside Excel, and Where It Stops
  • Demo: Clean a Messy Sheet With Claude, Then Chart It
  • Demo: Build a Presentable Deck From a Spreadsheet With Claude
  • Demo: Rework an Existing Deck With Claude Without Changing the Facts
  • Coding Agents Compared: Claude Code, Codex, Copilot and Gemini CLI
  • Codex Explained: OpenAI's Coding Agent for Non-Coders
  • ChatGPT Deep Research: Scope the Brief, Read the Citations, Validate
  • Chaining AI Tools: One Real Project From Research to Send
  • Your Personal AI Stack, and Where To Go Next
  • Claude Design: From a Brief to a Clickable Prototype, Then Hand It Off to Claude Code
  • CLAUDE.md, settings.json and Plugins: Which Claude Code File Advises, Which Enforces, Which Packages
  • Authoring a Claude Skill: SKILL.md, Frontmatter, Progressive Disclosure and the Description That Triggers It
  • One Change, Four Environments: Where a Claude Config Edit Lands in Dev, Staging, Prod and CI
  • Claude in the SDLC: Prompts in Git, a Change Gate by Path, a Claude Review That Advises and a Person Who Merges
  • Hooks That Block Destructive Actions: a PreToolUse Gate That Allows, Asks or Denies
  • Choosing a Claude Code Extension: Skill, Hook, Rules File, Subagent, Slash Command or Plugin
  • Rolling Out Claude Code to a Team: Settings Precedence, dontAsk in CI, a Hook for Every-Time Rules and a Plugin for Five Repos
  • A Claude Code Review Bot in CI: Headless -p, JSON Findings, Team Rules in Git and a Person on the Merge
  • Lab: Three Planted Bugs in a Claude Code CI Repo, a Permission Mode, a Plugin Path and an MCP Token Variable
  • Configuring MCP Servers in Claude Code: A Command or a URL, Three Scopes, and Three Moves When One Breaks
  • Claude Code's Built-in Tools: Read, Write, Edit, Bash, Grep and Glob, and When Each One Is the Right Pick
  • The CLAUDE.md Hierarchy: User, Project and Directory Files, How They Stack, and the Team Rule Stuck on One Laptop
  • Split a 600-Line CLAUDE.md: @import Lines, .claude/rules Files and Which One to Pick
  • Path-Specific Rules in Claude Code: paths Globs, When a Rule Loads and the Glob That Matches Nothing
  • Claude Code Slash Commands and Skills: Project vs User Scope, $ARGUMENTS, context: fork and allowed-tools
  • Iterative Refinement with Claude Code: Input/Output Examples, Tests First and the Interview Pattern
  • Claude Code Sessions: Resume by Name, Fork From a Baseline, or Start Fresh With a Summary Card
  • CI Reviews That Don't Repeat Themselves: Prior Findings, Existing Tests and Test Standards in CLAUDE.md
  • Fleet Telemetry for Parallel Coding Agents: Find the Stampede, the Hotspot and the Runaway That Per-Agent Alerts Miss
  • AI Code Review That Earns the Right to Block: Shadow Mode, Calibration Against Human Review, Then a Gate
  • Org-Wide Claude Code: Managed Settings With the Locks On, an MCP Allowlist by Address, and One Pinned LLM Gateway
  • Sharing Skills, Prompts and MCP Servers Across Teams: One Quality Gate Before the Shared Catalog
  • Claude Code Plugins and Marketplaces for an Org: Package a Skill, a Hook and an MCP Server, Check Them, Then Lock the Sources
  • Where Claude Joins a Developer Workflow: Interactive, GitHub Action or claude -p, Then Measure the Outcome
  • An Ops Runbook for Claude Failures: Case Cards, Request IDs, Owners and a Read-Only Investigation
  • Agentic Coding: Autocomplete, Chat and an Agent on One Feature
  • Figma MCP Server: Build a React Component From a Frame, Then Write It Back
  • A Design-Loop Skill: Claude Screenshots, Scores and Fixes Its Own UI
  • Figma Skills in Claude Code: Prompting an Admin UI Design System and Screens
  • Use Claude Agent, Copilot or Junie Inside IntelliJ IDEA
  • The Project Context File: AGENTS.md and CLAUDE.md for a Spring Boot Project
  • Plan Before Code: a Five-Part Brief, Plan Mode and /goal for a Spring Boot Feature
  • Skills and Subagents for a Spring Boot Project: One File of Steps, One Helper per Job
  • Reading an AI Agent's Diff: Four Questions Before You Accept a Change
  • Guardrails for a Coding Agent: Allow, Ask and Deny Rules, a Git Hook, and What Never Gets Automated
  • Building a Feature With an AI Agent, End to End: Comments on a Spring Boot Blog
  • The Claude Messages API: Your First Call, Field by Field
  • Claude Tool Use: How tool_use and tool_result Work in the Messages API
  • Claude Client SDKs Wrap One REST API: Raw HTTP, Python, TypeScript and Async Calls Compared
  • Anthropic SDK Timeouts, Retries and Error Classes: Configure the Client Once, Then Give 429, 529, 400 and Timeouts Their Own Move
  • Claude Streaming Events: The Event Order, message_stop, Tool Arguments, Stop Reasons and a WebSocket Relay
  • Images, PDFs and Thinking Blocks in the Claude Messages API: Typed Blocks In, Typed Blocks Out
  • Getting Data Into Claude: PDF Documents, the Files API, Search Results and Citations
  • Opus, Sonnet or Haiku: Pick the Claude Model per Job, and Test the Request When a New Release Arrives
  • Adaptive Thinking and Effort in Claude: Two Dials, Set per Workload, and the Thinking Block You Must Pass Back
  • Claude Cost Tracking From usage: Count Before, Cap During, Read After, Then Find the Line That Drives the Bill
  • Claude Cache Breakpoints: Where to Put cache_control, How to Move It With the Chat, and Why the Reads Stay at Zero
  • Claude Message Batches or Real Time: Choose by Who Is Waiting, Match by custom_id, Resend Only the Failures
  • Calling Claude Through Amazon Bedrock, Google Cloud and Microsoft Foundry: Same Call, Different Door
  • The Life Cycle of a Claude App: Six Phases, a Model That Retires, and a Release Gate for Every Change
  • Pinning Claude Model IDs and Upgrading Safely: One Change at a Time, a Golden-Set Replay and a Staged Rollout
  • Content Boundaries and Schema Design for Claude: Fence the Input in a Tag, Let the Output Say I Don't Know
  • The Agentic Loop and stop_reason: Keep Turning on tool_use, Stop on end_turn, Cap the Turns
  • The Claude Agent SDK: query(), ClaudeAgentOptions and @tool, in Python and TypeScript
  • Fix the Agent: Four Broken Claude Agent SDK Configs, From the Symptom to the One Wrong Line
  • Claude Managed Agents: Cloud Sandbox, Self-Hosted Sandbox or Self-Hosted Service
  • Agent SDK Hooks for Deterministic Actions: PreToolUse, PostToolUse, and Four Hooks That Fail Silently
  • Memory and Context-Window Patterns for Claude Agents: Context Editing, Compaction and the Memory Tool
  • Reading an Agent Trace: Five Signatures, Five Missing Patterns, and How Long a Fact Must Live
  • Tool Descriptions for Claude: How Claude Picks a Tool, and How to Stop It Picking the Wrong One
  • Tool Input Schemas and Error Responses for Claude: Required Fields, Enums, is_error and a Retry Flag
  • Tool Response Shaping and a Lean Tool Set: Give Claude a Sticky Note, Not the Filing Cabinet
  • Fix the Tool Schema: Read the Trace, Fix the Card, Re-Run (Four Real Schema Bugs)
  • Client Tools, Server Tools and Approval Gates: Who Runs the Tool, and Who Says Yes First
  • Built-in Tool, Custom Tool, Skill or MCP Server? Pick the Lightest One That Fits
  • System Prompt or User Turn: Where Each Instruction Goes, and Output Limits Your Code Enforces
  • Refine the Prompt One Line at a Time, Then Clean and Fence the Customer's Text
  • Prompt Revision Driven by Evals: Name the Cause, Change One Thing, Rerun the Whole Suite
  • Long-Running Sessions: Compact, Prune, Isolate or Start Fresh, Decided by Naming the Failure
  • Context Isolation Through Subagents: Read the Logs Elsewhere, Keep One Line
  • Defensive Parsing of Claude Replies: Check the Stop Reason, Read the Block or the Text, Then Validate the Values
  • Full Context or Retrieval: Choose by Corpus Size, Cost and Freshness
  • Skepticism Toward Confident Output: Check the Quote, the Record and the Sum Before You Send
  • Debugging a Claude App: Three Error Types, the Recovery Each One Earns, and the First Failing Row
  • Six Ways a 200 Can Still Be Wrong: Hallucination, Refusal, Under-Acting, Context Loss, Format Drift and Inconsistency
  • Fix the Cause, Not the Symptom: Four Recovery Drills for an LLM App, Each Checked on a New Input
  • Integration Layer or Model Output? Three Taps and Three Questions to Find Where a Wrong Answer Lives
  • Which Test Layer Owns the Failure? Unit, Functional, Integration and End-to-End Tests for a Claude App
  • Designing an Overnight Document Pipeline on Claude: Batch Lane, Live Lane, a Cached Prefix and a custom_id Reconcile
  • Proving a Model Upgrade Is Ready: A Frozen Golden Set, a Calibrated Judge, the Right Layer and a Release Gate
  • From Requirement to Design for a Claude App: Eight Requirements, Five Elements and a Trace With No Gaps
  • Build a Claude Refund App: the Messages API, Two Tools, an MCP Server and a Hook in One Loop
  • Ship a Claude App: an Eval Gate, Two Guardrail Layers, a Cost Check From usage and a Pinned Model
  • Lab: a 30-Case Golden Set, a Calibrated Judge and a Per-Slice CI Gate on a Claude Refund App
  • Lab: Cut a Claude App's Bill by 62 Percent With Usage Data, Layered Cache Breakpoints and a Batch Job
  • Lab: Three Planted Bugs in a Claude App, a Vague Prompt, a Mistyped Tool Schema and a Broken Stream Handler
  • Lab: Three Planted Bugs in a Claude Code CI Repo, a Permission Mode, a Plugin Path and an MCP Token Variable
  • Lab: Harden a Claude App, an Uncalibrated Judge, a Retry Loop That Retries Everything and a Hook Matcher With a Gap
  • Lab: Turn a Claude App Into a Reusable Template, One Pinned Model Id, No Key in Code and Evals Built From Data
  • Building an MCP Server: Tools, Resources and Prompts in Python and TypeScript
  • MCP Transports: stdio or Streamable HTTP, and Who Starts the Server
  • Deploying and Authenticating an MCP Server: Environment Keys for stdio, Bearer Tokens and Scopes for HTTP
  • Validation-Retry Loops for Claude Extraction: Send Back the Exact Errors, and Stop When a Retry Cannot Help
  • Multi-Pass and Multi-Instance Code Review with Claude: A Fresh Reviewer, Per-File Passes and an Integration Pass
  • When a Claude Support Agent Should Escalate: Three Clear Triggers, Not Mood or a Confidence Score
  • Error Propagation Across Subagents: Retry Locally, Then Report the Failure, the Attempts and What You Found
  • Human Review and Confidence Calibration: Check Accuracy by Type and Field Before You Stop Looking
  • Provenance in Multi-Source Research: Keep Every Claim With Its Source and Date, and Show Conflicts Instead of Settling Them
  • Lab: An Extraction Pipeline With a Nullable Schema, Validation-Retry, a 100-Request Batch and Human Review
  • Lab: A Research Pipeline With Parallel Subagents, a Timeout That Keeps Its Partial Results, and a Report With Its Trail
  • Coordinator and Subagents: Decompose, Delegate, Check Coverage, and Call Only the Spokes You Need
  • Passing Context to Subagents: Nothing Is Inherited, So Put Findings, Goal and Criteria in the Prompt
  • Parallel Subagents: Several Task Calls in One Response, Every Result Back in One User Turn
  • Task Decomposition: a Fixed Prompt Chain With an Integration Pass, or a Dynamic Plan That Adapts
  • Prompt Guidance vs Programmatic Gates: Block the Refund Until the Customer Is Verified, Then Hand Off a Card That Stands Alone
  • Scoped Tools per Agent and tool_choice: Three to Five Tools per Role, a Shared One, and auto, any or a Forced Tool
  • Durable Agent Runs: Save a Checkpoint After Every Tool Turn, Resume After a Kill, and Key the Email So It Goes Out Once
  • Resume on the Model the Run Started With: a Run Record That Pins the Model Id, the Prompt Version and the Notes
  • Durable Agent State by Name: an Agent SDK Session Id, a /memories Path or a Managed Agents Memory Store
  • Cache-Safe Instruction Changes and Large Tool Catalogs: Append the New Rule at the End, Defer 57 of 60 Tools With Tool Search
  • One Gateway, One Platform Table: Route a Model Alias to the Claude API, Bedrock or Google Cloud and Check Parity Before the Call
  • OpenTelemetry Tracing for a Claude Agent Loop: A Span for Every Request and Tool Call, and the Switch for Each Surface
  • Debugging Late, Far and Rare Failures in a Claude Agent: Replay the Turns, Follow the Fact, Split the Runs
  • Scheduled and Event-Driven Claude Agents: Managed Agents Deployments, Budgets, Outcomes and Webhooks
  • Latency Engineering for a Claude Agent Loop: Time to First Token vs Total, Streaming, Parallel Tools, the Cache and Effort
  • Claude Prompt Caching Strategy: Pick the TTL by the Quiet Gap, Read Cache Diagnostics, and Warm Before You Fan Out
  • Capstone: One Prompt Change Through the Whole Operating Loop, From CI Gate to Postmortem
  • Reading a Business Requirement Like an Architect: Function, Quality, Constraints and Assumptions
  • From One Claude Call to a System: Input, Processing, Output and the Feedback Loop
  • The Delegation Map: Decide What Claude Owns, What People Keep and What They Share
  • When a Packaged Skill Beats a New Agent (and a Prompt Library)
  • Five Reference Architectures for Claude Systems: Read the Cue, Name the Shape
  • Business Value Pillars for an LLM System: Turn "Cheaper and Faster" Into Targets, Then Pick the Lane
  • Which Requirement Binds? Picking the Claude Surface and Agent Runtime Under Constraints
  • The Claude Model Ladder: Pick the Cheapest Model That Passes, Then Price the Month
  • Zero-Shot, Few-Shot or Reasoning: Pick the Cheapest Prompting Technique the Failure Asks For
  • Choosing the Claude Build Stack: Client SDK, Agent SDK, Claude Code Headless or Managed Agents
  • Authentication and Authorization for Claude Agents: Find the Gaps Hop by Hop
  • Connecting Claude to a Legacy System You Can't Change: The Adapter Pattern
  • MCP, an API/CLI Call or Agent-to-Agent: Choosing How Claude Connects to a Capability
  • Progressive Discovery or Monolithic Context: Load It All, Fetch by Index, or Both
  • Speed Has a Price and the Rate Limit Is the Ceiling: Choosing Model, Effort and Fast Mode per Path
  • Reliability Controls for Claude Apps: Backoff, Idempotency Keys, Fallback Routing and Circuit Breakers
  • Six Metrics, Not One Score: Accuracy, Groundedness, Latency, Cost, Safety and Security for an LLM Agent
  • Diagnosing a Bad Answer: Prompt Failure, Hallucination or Model Mismatch?
  • Human-in-the-Loop Routing: Send Each Agent Action to Auto, Review or Block by Confidence, Reversibility and Cost
  • Working an Architecture Scenario End to End: Mark Hard and Soft Constraints, Cut, Rank, Decide
  • A Regulated Dispute Desk on Claude: Pin the Geography, Gate by Risk, Log Before Release, Fail Closed
  • Global Support Automation Scenario: Cut the Options, Route Each Ticket by Risk, Gate Every Change by Language
  • Architecture Artifact Review Drills: Find What a Diagram, Config, Trace, Eval Table, ADR or Settings File Leaves Out
  • The Architecture Decision Record for a Claude System: Context, Options, Decision, Consequences and the Evidence You Will Need
  1. Blog
  2. /
  3. Claude
  4. /
  5. Claude Code

Agentic Coding: Autocomplete, Chat and an Agent on One Feature

One small feature, an overdue badge on a to-do list, given to three helpers: autocomplete finishes a line, chat drafts and you carry, and a Claude Code agent reads, edits, runs pytest and reports. Then the loop it works in, a what-if slip caught by one test, and how to review the diff before you keep it.

Chaand Sheikh

·27 November 2026·Updated 28 November 2026Claude Code

What you will learn

  • Compare autocomplete, chat and a coding agent on the same small feature
  • Describe the agent loop: read, plan, edit, run, check, and what the agent can and can't know
  • Review an agent's work yourself with git status, git diff and pytest before you commit
  • Explain why a test for the edge case matters: green tests are evidence, not proof

Before you start

  • Testing with pytest
  • Checking AI-written Python code
  • Basic git (status, diff, commit)

Let's take one small feature and give it to three kinds of AI helper: autocomplete, chat and an agent. We'll see what each one does, what it costs you, and what's left for you to do. Then we'll look inside the agent, at the loop it works in, and review its work ourselves.

One small feature

tasks.py holds a small to-do list. To keep it simple, the due day is just a day of the month:

TASKS = [
    {"title": "Pay the bill", "due": 20, "done": False},
    {"title": "Book dentist", "due": 22, "done": False},
    {"title": "Send report", "due": 21, "done": True},
    {"title": "Call plumber", "due": 25, "done": False},
    {"title": "Water plants", "due": 28, "done": False},
]

show_tasks.py only prints the titles:

from tasks import TASKS

for task in TASKS:
    print(task["title"])
Pay the bill
Book dentist
Send report
Call plumber
Water plants

The wish: put an overdue badge on every task that isn't done and whose due day is before today, and today is the 25th. Pay the bill (20th) and Book dentist (22nd) get the badge. Send report is late but done, so no badge. Water plants is due on the 28th. And Call plumber is due today, so it isn't overdue yet. Keep an eye on the plumber, because that's the case that matters.

So "done" means three things: the rule, the badge in the list, and tests that prove the rule, even for a task due today.

Helper one: autocomplete guesses the next line

You get this from something like GitHub Copilot or your editor's own completion. Type def is_overdue(task, today): and in grey it may suggest the next line, something like return not task["done"] and task["due"] < today. That's only an example suggestion: it guesses from the code around your cursor. Press Tab and the grey text becomes your code.

But the badge in show_tasks.py and the tests are still your job. Autocomplete is fast and costs almost nothing, but it only finishes the spot you're on. It doesn't change other files and it doesn't run anything.

Helper two: chat answers, you carry

Paste tasks.py into a chat app and ask "how do I mark tasks as overdue?". A fair answer comes back in three pieces: the function, the badge line and a test. Now who does the work? You do. You carry the function into tasks.py, the badge into show_tasks.py and the test into a new file. You run pytest yourself, and if something's red you paste the error back and ask again. Chat explains and drafts, but it only knows what you paste in, and it never touches your files or runs your tests.

Helper three: the agent

This part is a real Claude Code session in a terminal, in the project folder. It was started in safe mode (personal add-ons off), with one standing instruction: change files with its own file tools and run one command at a time. It could edit files without asking each time, but it still asked before any command that hadn't been allowed.

The goal went in as one message: mark a task overdue when it isn't done and due before today, show a badge in show_tasks.py, add pytest tests that include a task due today, and run them. Today is the 25th; plan first; don't commit.

Before touching anything, it wrote a plan: read the two files, add an is_overdue helper and the badge, then write the tests and run pytest. Then it worked through that plan by itself: read show_tasks.py, wrote tasks.py, then show_tasks.py, then a brand new test file, then ran pytest and the script. Nobody pasted anything.

Here's what it wrote in tasks.py (the project keeps these files in agent_run/):

TODAY = 25

TASKS = [
    {"title": "Pay the bill", "due": 20, "done": False},
    {"title": "Book dentist", "due": 22, "done": False},
    {"title": "Send report", "due": 21, "done": True},
    {"title": "Call plumber", "due": 25, "done": False},
    {"title": "Water plants", "due": 28, "done": False},
]


def is_overdue(task, today=TODAY):
    """A task is overdue when it isn't done and its due day is before today."""
    return not task["done"] and task["due"] < today

Look closely at the comparison: <, not <=, so a task due today isn't overdue. And the test we asked for:

def test_due_today_is_not_overdue():
    assert not is_overdue({"title": "a", "due": 25, "done": False}, today=25)

Then it reported back: two shell commands run (pytest and the script), five tests passed, nothing committed. Its printed list gave Pay the bill and Book dentist an [OVERDUE] badge and left Send report, Call plumber and Water plants without one. It even explained the plumber: due today, so not overdue yet. The first lap went green.

What if it had slipped?

Agents do slip. Say the draft had used <=, an easy mistake any of the three helpers could make:

def is_overdue(task, today):
    return not task["done"] and task["due"] <= today

Run that slipped draft against four tests:

from tasks import is_overdue

TODAY = 25


def task(due, done=False):
    return {"title": "x", "due": due, "done": done}


def test_past_task_is_overdue():
    assert is_overdue(task(22), TODAY)


def test_done_task_is_not_overdue():
    assert not is_overdue(task(22, done=True), TODAY)


def test_task_due_today_is_not_overdue():
    assert not is_overdue(task(25), TODAY)


def test_future_task_is_not_overdue():
    assert not is_overdue(task(28), TODAY)
..F.                                                                     [100%]
================================== FAILURES ===================================
_____________________ test_task_due_today_is_not_overdue ______________________

    def test_task_due_today_is_not_overdue():
>       assert not is_overdue(task(25), TODAY)
E       AssertionError: assert not True
E        +  where True = is_overdue({'title': 'x', 'due': 25, 'done': False}, 25)
E        +    where {'title': 'x', 'due': 25, 'done': False} = task(25)

test_tasks.py:19: AssertionError
=========================== short test summary info ===========================
FAILED test_tasks.py::test_task_due_today_is_not_overdue - AssertionError: as...
1 failed, 3 passed in 0.17s

Three of the four tests passed with the bug still in there. Without the today test, nobody would have seen it. With <=, 25 <= 25 is True, and the plumber gets a badge he shouldn't have. An agent reads that red test the same way you would, and the fix is one character:

-    return not task["done"] and task["due"] <= today
+    return not task["done"] and task["due"] < today

Run pytest again and it's 4 passed in 0.02s.

How an agent loops

The agent loop 1 read2 plan3 edit4 run (pytest)5 checkreport to you a test fails: next lap all green: leave the loop
Every lap costs more time and usage. An agent only knows its goal, the files it opened and the output of the commands it ran.

Read the files, plan the change, edit, run a command, check the result. If a test fails, go back to edit. When everything passes, leave the loop and report. Here's the important point: an agent only knows what it has read. Your goal, the files it opened, and the output of the commands it ran. Anything else, it guesses. With no tests, the check step has much less to read.

Three kinds of help, side by side

Autocomplete is like spell check: it suggests the next word and you keep writing. Chat is a friend you ask: they tell you how, and you still run the errand. The agent is an assistant you send on the errand: they go, do it, and come back with a receipt. You still check the receipt before you pay, and with an agent, the receipt is the diff.

AutocompleteChatAgent
What it seesCode near your cursorWhat you paste inProject files it opens
What it doesGuesses the next bitAnswers and draftsReads, edits, runs, retries
What it costsAlmost nothingYour copy and pasteTime, usage and a bigger review
Your jobAccept or ignoreCopy and checkRead every changed line

The more a helper does on its own, the more there is for you to review. So pick the smallest helper that does the job: the obvious next line goes to autocomplete, a question or an error you don't understand goes to chat, and a change across files that must pass the tests goes to the agent. A one-line fix could go to the agent, but that's slower, not smarter.

Review it yourself

The receipt is in your hands, so check the work in your editor. The lesson saves each command as a PyCharm run configuration, but they're plain git and pytest commands:

git status
git add -N .
git diff
pytest -q
python show_tasks.py

git status should show exactly what you asked for: show_tasks.py and tasks.py modified, and one untracked file, test_tasks.py. Nothing else. git add -N . marks the new file so git diff shows it too. In the diff, red lines are removed and green lines added. Read the comparison yourself, every time. And if an agent ever turns a test green by editing the test, send it back.

Then run the tests on your side and see the same five pass, and run the script to see the badges. Everything checks out, so keep it with git add . and git commit. If you didn't like the change, you could throw it away instead and send the agent back with a clearer prompt. (Git basics are in Git and GitHub fundamentals.)

The agent drafts, you decide

The agent reads, plans, edits, runs the tests and proposes a diff. You set the goal, read the diff, try the case it missed, and keep it or send it back. It's the same habit as checking AI-written code, and the pytest habit stays too, because tests are what the agent checks against. One warning: green tests are evidence, not proof. They only check what someone wrote a test for, as the what-if showed with three passing tests and a bug.

Try it yourself: give an agent one small task, then read its diff before you keep it. For a map of the coding agents you'll hear about, see coding agents compared.

Keep going in Claude · 106 of 221

Previous
An Ops Runbook for Claude Failures: Case Cards, Request IDs, Owners and a Read-Only Investigation
Next post
Figma MCP Server: Build a React Component From a Frame, Then Write It Back
Community · Free to join
Single logo

StudyEasy AI Community

Hosted onSkool

Learn AI engineering, share what you build, and connect with other learners.

  • Free resources: lesson files, notebooks and code

  • Ask questions and join engineering discussions

  • Meet real people learning and building with AI

Join free on Skool

Related course on Udemy

The Python Architect Masterclass: Full Stack to AI Engineer

Python, Django, FastAPI, React, Docker, AWS, LLMs, RAG, agents and MCP, from first steps to AI engineer.View on Udemy ↗: The Python Architect Masterclass: Full Stack to AI Engineer (paid course, opens in a new tab)

Related posts

CLAUDE.md, settings.json and Plugins: Which Claude Code File Advises, Which Enforces, Which Packages

Three needs in one repo: a test command, a rule that Claude must never read .env, and a shared deploy skill. See which file each belongs in, how the settings layers merge, and what a plugin manifest carries.

Authoring a Claude Skill: SKILL.md, Frontmatter, Progressive Disclosure and the Description That Triggers It

Pack a support team's ticket-triage routine into one skill folder, then watch three requests load one, two or all three levels: the catalog, the SKILL.md body, and a script whose code never enters the context.

One Change, Four Environments: Where a Claude Config Edit Lands in Dev, Staging, Prod and CI

Change one line in a repo and ask where it lands. A small resolver for bookshop-bot shows that a new model id in settings.json reaches only CI, a prompt bump reaches dev and CI, and a prod block edit reaches only prod.

Claude in the SDLC: Prompts in Git, a Change Gate by Path, a Claude Review That Advises and a Person Who Merges

Follow one prompt edit from a branch to a merge: version prompts and the model pin like code, keep the API key in GitHub Secrets, gate changes by path, let Claude review the diff, and leave the merge to a person.

On this page

  • One small feature
  • Helper one: autocomplete guesses the next line
  • Helper two: chat answers, you carry
  • Helper three: the agent
  • What if it had slipped?
  • How an agent loops
  • Three kinds of help, side by side
  • Review it yourself
  • The agent drafts, you decide
Community · Free to join
Single logo

StudyEasy AI Community

Hosted onSkool

Learn AI engineering, share what you build, and connect with other learners.

  • Free resources: lesson files, notebooks and code

  • Ask questions and join engineering discussions

  • Meet real people learning and building with AI

Join free on Skool

Related course on Udemy

The Python Architect Masterclass: Full Stack to AI Engineer

Python, Django, FastAPI, React, Docker, AWS, LLMs, RAG, agents and MCP, from first steps to AI engineer.View on Udemy ↗: The Python Architect Masterclass: Full Stack to AI Engineer (paid course, opens in a new tab)

Single logo

Empowering Education, One Course at a Time

About
About usContact us
Legal
Terms of UsePrivacy Policy

© 2026 StudyEasy Organization. All rights reserved.