Knowledge Graph Infographic

How Claude Code Works

The documentation models Claude Code as an agentic coding assistant built around the agentic loop, where models reason, tools act, and the system repeats until work is verified or redirected.

Core IdeaReason + tools + verification
Primary SurfaceTerminal-first coding assistant
Safety LayerCheckpoints and permission modes

The Main Loop

The page frames Claude Code as an iterative system that continually gathers context, acts with tools, and verifies outcomes.

Phase 1

Gather context

Claude reads files, searches the codebase, checks history, and loads instructions to understand the task and project state.

Phase 2

Take action

Claude edits files, runs commands, searches the web, or invokes other tools according to what it has learned.

Phase 3

Verify results

Claude runs tests, reads outputs, and adjusts its approach. You can interrupt or steer at any point.

Models And Tools

The graph separates reasoning from action: models decide, while tools execute.

Model layer

Sonnet is positioned for most coding tasks, while Opus is reserved for more demanding architectural reasoning.

Tool layer

Built-in capabilities cover file operations, search, command execution, web access, and code intelligence, with skills and subagents layered on top.

What Claude Can Access

The documentation emphasizes breadth: Claude does not just see a single buffer. It can work across the project, terminal, git state, and persistent instructions.

Project access

Claude can inspect files in the current directory tree and additional files with permission.

Terminal access

Anything you can do from the command line can potentially become part of the agentic workflow.

CLAUDE.md

Persistent project-specific rules and conventions should live here rather than only in conversation history.

Auto memory

Claude can preserve bounded cross-session learnings such as preferences and recurring project patterns.

Execution And Interaction

Execution environments and interfaces are separate concerns in the docs: the loop stays the same, but code can run in different places.

Environment

Local

Default mode with full access to your machine, files, tools, and environment.

Environment

Cloud

Anthropic-managed VMs for offloading tasks or working with repositories you do not have locally.

Environment

Remote Control

Your machine executes the work while you interact through a browser-based surface.

How To Work With Claude Code

The graph captures a practical HowTo layer for effective usage.

FAQ From The Knowledge Graph

The page is modeled with explicit Question and Answer nodes so its operational concepts can be navigated as structured knowledge.