
Video: How Claude Code Actually Works (Agent Harness Explained)
The model only asks, the harness does. A plain-language look at the loop, tools, context, subagents, permissions, hooks and MCP inside Claude Code.
Here is something weird about Claude Code: the AI model inside it has never run a single command on my computer. It has never opened a file or run my tests. Yet every day it reads my code, fixes my bugs and runs my test suite. The thing actually doing all of that is called the harness, and this video explains how it works in plain language.
What the video covers
- The model only writes text. It has no hands and no memory between messages. When it wants to edit a file, it writes a request to use a tool, and the harness, the program running on your machine, does the work.
- The loop. The model decides what to do, asks for a tool, the harness runs it, the result goes back, and it goes around again until the model replies without asking for a tool. I follow one real "fix the failing test" request through five laps of that loop.
- The tools. Reading and editing files, searching, and the terminal, which is the big one: if you can run it in your terminal, Claude can ask to run it too.
- Context. What the model reads on every lap: the system prompt, the tool list, your CLAUDE.md file, your messages and every tool result. Why CLAUDE.md is context, not a rule, and why long sessions get compacted and sometimes forget what you said at the start.
- Subagents, permissions, plan mode, hooks and MCP. How the harness keeps context clean, gets to say no, and lets you enforce things a prompt can only ask for.
The big takeaway: when the same model feels like a genius in one app and useless in another, you are not really comparing models. You are comparing harnesses. The video ends with five practical habits: give it a way to check its own work, keep CLAUDE.md short and specific, use a hook for anything that must always happen, watch your context in long sessions, and plan first for big changes.
Which harness do you actually use, Claude Code, Cursor, or still copy pasting from a chat window? Watch it on YouTube and tell me in the comments.