I think reliable AI agents depend on the systems around the model: how they reason, access context and tools, execute work, retain memory, handle failure, and get evaluated. I apply the same lens to Claude Code, whose runtime layers matter more for substantial work than treating it as a chat box that returns code.
I argue that 7 systems support an agent, and they are not a strict stack: some build on each other while others run through the rest.
I describe reasoning methods as Planning, ReAct, reflection, verification; getting reasoning wrong means nothing downstream matters.
I describe context and retrieval methods as Pruning, compression, hybrid search, rather than stuffing everything into the prompt.
I describe execution methods as Async, retries, parallel calls.
I describe tool controls as Routing, validation, fallbacks when a call fails.
I say of agent memory, Most agents forget everything the moment you close the tab.
I include reliability to address what happens when it breaks.
I describe evaluation methods as Tracing, scoring, regression tests before you ship changes.
I say Cost isn't a layer. It's a tax on all seven, with each system becoming more or less expensive depending on how it is built.
I observe that Most "AI agent" builds skip straight to Execution and then fail in production; I say the model is one system out of seven and people keep optimizing the one that matters least.
I say of Claude Code: Underneath, a full agent runtime fires on every message you send.
I call autocomplete-like use of Claude Code fine for a quick fix, but say: Useless for real work.
I describe the agent loop as A loop that perceives, acts, then checks its own output.
I describe CLAUDE.md as CLAUDE.md holding your project rules so they persist after you close the laptop.
I describe task-specific skills as Skills that load only when the task needs them.
I describe subagents as Subagents spawned in clean contexts so heavy work doesn't pollute the main thread.
I describe worktrees as Worktrees so two agents editing in parallel don't overwrite each other.
I describe MCP as MCP reaching tools outside the terminal.
I say: That's the gap between "I tried Claude Code once" and "Claude Code runs half my week." I also say a better prompt won't fix that gap; knowing the machine will.
I say: Mapped the whole thing in one image. I recommend saving it to help identify which layer failed when a build breaks.
I say: The part that ships your project isn't the model writing code. I attribute project shipping to the surrounding system.
Related: agent system architecture, claude code ecosystem, ai product foundations