Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

Claude vs Claude Code: the same model, with a harness around it

The short version

Claude Code is not a smarter Claude. It runs on the same Claude models you chat with. The difference is the layer around the model, which Anthropic calls the agentic harness: "Claude Code is the layer around the model that provides the tools and manages the context the model sees."

The model only reads and writes text. When it needs something done, it writes a structured request (a tool call). Claude Code reads that request, actually does it on your computer (opens the file, runs the tests), and hands the result back as more text. Claude reads the result and asks for the next thing. That repeats until Claude writes a reply with no request in it. In a normal chat, you are the harness: you paste the code, run it, and paste the error back. Claude Code does that copy and paste for you.

Anthropic's page on this is here: How Claude Code works.

Number What it is
2 Parts that power the loop: models that reason, tools that act
3 Phases of the loop: gather context, take action, verify results
5 Built-in tool categories: file operations, search, execution, web, code intelligence
4 Permission modes you cycle with Shift+Tab: auto, manual, accept edits, plan
200 lines or 25KB How much of auto memory's MEMORY.md loads at the start of each session, whichever comes first
1 Context window per session. Each new session starts fresh

Sources: Anthropic, How Claude Code works (checked 2026-11-19); Anthropic, Tool use with Claude (checked 2026-11-19); Anthropic, Building effective agents (2024-12-19).

Chat vs Claude Code, side by side

Claude in a chat Claude Code
The model Claude The same Claude models (switch with /model)
Can it open your file? No. You paste it in Yes. Claude asks, Claude Code reads it
Can it run your tests? No. You run them and paste the error Yes. Claude asks, Claude Code runs them
Who carries results back? You The harness, automatically
Who decides when it is done? You Claude, when it replies without asking for a tool
What it sees What you paste Your project, terminal, git state, CLAUDE.md, auto memory, extensions you set up

How one tool call works

The same round trip powers Claude Code and any app built on the Claude API.

Step What happens Who does it
1 You ask: "fix the failing tests" You
2 Claude writes a tool call, like "run the test suite" The model
3 The request is carried out on your machine The harness (Claude Code)
4 The output is sent back as text (a tool result) The harness
5 Claude reads it and writes the next request: open the file, edit it, run the tests again The model
6 Claude replies with no request in it. The loop ends The model

In the API, step 2 is a response with stop_reason: "tool_use" and a tool_use block. Step 4 is your code sending back a tool_result. For client tools like bash and text_editor, Anthropic's docs say they "run in your application", not inside the model.

That is the whole definition of an agent. Anthropic's own words: agents "are typically just LLMs using tools based on environmental feedback in a loop."

The other half of the harness: what the model sees

The model can only hold so much at once. That limit is its context window, and the harness decides what goes in it.

What goes in What to know
Your conversation, file contents, command outputs Fills up as you work
CLAUDE.md Your persistent rules. Loaded every session
Auto memory Learnings Claude saves as it works. First 200 lines or 25KB of MEMORY.md load
Skills Only the descriptions load at the start. The full skill loads when used
MCP tools Deferred by default. Only names and server instructions load until a tool is used
Subagents Work in their own context window and hand back a summary
When it fills up Claude Code compacts the conversation into a summary. Early detailed instructions may be lost

The practical rule from Anthropic: put persistent rules in CLAUDE.md, not in the chat, and run /context to see what is using space.

The safety layer is part of the harness too

Mechanism What it does What it cannot do
Checkpoints Snapshot a file before Claude edits it. Press Esc twice to rewind Undo anything remote: databases, APIs, deployments
Permission modes Set what Claude can do without asking you Replace checking what you approve
Allow rules Let trusted commands like npm test run without a prompt, in .claude/settings.json Guess which commands you trust

Copy these prompts

Paste these into Claude Code inside your project.

1. Show me the loop

Fix one small thing in this project (pick a failing test or an obvious bug). Before each tool call, tell me in one plain sentence what you are asking for and why. After each result, tell me what you learned from it and what you will ask for next. At the end, list every tool call you made in order.

2. Show me what you can see

List what is in your context right now: which instructions you loaded (CLAUDE.md, memory, skills), which tools you have, and what you know about this project without opening any file. Then tell me what you would need to open to answer "how does login work here?"

3. Turn my chat habits into rules

Ask me what I keep repeating to you every session (style, test commands, things never to touch). Then write those as short rules in CLAUDE.md so I stop pasting them in. Keep it under 30 lines and show me the file before saving.

If you are building your own agent

The harness is the part you write. The model is the part you call.

Job What you build
Tools A name, a description and an input schema for each thing the model may ask for
Running them Code that reads each tool_use block, does the work, and sends a tool_result back
The loop Keep calling the model while it returns stop_reason: "tool_use". Stop when it replies with text only
Context Decide what goes into each request: instructions, files, a summary of old turns
Safety Decide which tool calls run on their own and which wait for a human

If you do not want to write the round trip yourself, the SDK's tool runner runs your tools and sends the results back automatically.

Help me build a minimal agent loop with the Claude API in my project's language. One tool: read a file from a folder I choose. Run each tool_use block, send the tool_result back, and keep looping until stop_reason is not "tool_use". Print every tool call so I can watch the loop. Refuse any path outside the folder.

Run this on your codebase

Explain how you work on this project, in plain words. Tell me which tools you would use for a typical fix here and in what order, which commands you would want to run (tests, build, lint) and whether they are allowed without asking in my settings, what is in my CLAUDE.md and what is missing from it, and which actions here could not be undone by a checkpoint (database, deploys, outside APIs). Finish with the three CLAUDE.md lines that would save me the most repeated pasting.

Get the next one in your inbox