The Agentic AI Builder's Playbook
Claude Code Is Not a Folder Structure: Its an Agentic Operating System
By Jason Newell · ~6 min read · Claude Code
Most developers set up Claude Code, create a CLAUDE.md, add a few slash commands, and call it done. They're using maybe 20% of what the system is designed to do.
The best teams using Claude Code aren't treating it as a smart autocomplete. They're treating it as an operating system for agentic development — with memory, executable knowledge, event-driven automation, and a full tool ecosystem. The difference in outcomes is enormous.
Here's the complete mental model.
From Folder Structure to System Architecture
What you see in the repo:
my-project/
CLAUDE.md # agent brain
.claude/
skills/ # reusable workflows
commands/ # slash commands
settings.json # permissions & config
.mcp/
mcp.json # tool servers
What it actually is:
CLAUDE.md → Agent Memory
The agent's brain — persistent context and instructions. Not documentation. Not a README. The agent's constitution: project context, code conventions, architecture notes, workflow rules.
Skills → Executable Knowledge
Reusable playbooks for repeatable agent tasks. Multi-step procedures (code review process), one-shot operations (deploy to staging), parameterized inputs (scaffold new module of type X), skill-to-skill pipelines.
Hooks → Event-Driven Automation
Deterministic code that runs at every lifecycle stage:
- PreToolUse → validate before execution
- PostToolUse → auto-lint, auto-format
- Notification → Slack/webhook alerts on key events
- Stop → guardrails and kill switches
MCP Servers → Tool Ecosystem
The agent's connections to the external world. Database MCP for query and schema access. GitHub MCP for PR and issue operations. Custom MCP for internal API bridges.
Settings → Governance Layer
Permissions (what the agent can do), model selection (Opus for reasoning, Sonnet for speed), allowedTools (what capabilities are available per context), apiKey scope.
The System Flow
When you give Claude Code a task, here's what actually happens:
- CLAUDE.md loads → agent has project context, knows the rules
- Skill matching → agent checks if any skill describes the requested task
- Skill injection → if matched, skill instructions are added to context
- Subagent spawning → if the task is complex, subagents are spawned for isolated execution
- MCP tool calls → agents call external tools through MCP servers
- Hook triggers → deterministic hooks fire at PreToolUse, PostToolUse, etc.
- Output → result returned, session memory updated
This isn't a chat session with a smart model. It's an orchestrated agent system with persistent memory, reusable knowledge, external tool access, and deterministic guardrails.
Why This Changes How You Build
Once you see Claude Code as an operating system rather than a coding assistant, several things become clear:
Design for the system, not the prompt. The quality of your CLAUDE.md, skills, and hooks determines 80% of your outcomes. The model's capability determines the other 20%.
Skills compound. Every time you encode a repeatable workflow as a skill, every subsequent agent that runs gets that expertise. Skills are the knowledge layer that doesn't have to be re-learned.
Hooks are your safety layer. Rules in CLAUDE.md are guidelines — followed ~70% of the time. Hooks are deterministic — they run 100% of the time. Critical enforcement belongs in hooks.
MCP is your power multiplier. A Claude Code instance with well-configured MCP servers can read your database, create GitHub issues, query your internal APIs, and write to Notion — all in a single task. Without MCP, it's limited to the local filesystem.
The Bottom Line
This is not a folder structure. This is an agentic operating system.
CLAUDE.md sets the rules. Skills provide the expertise. Hooks enforce quality. MCP connects to the world. Settings define the governance.
Start building it like an OS, not a chatbot config file.
Jason Newell is an AI practitioner, builder, and writer covering agentic systems, developer tooling, and the future of AI engineering.
Related
Related field notes
Keep reading
More field notes
This piece is part of the MAX Research Collective library. Browse the rest, or connect on LinkedIn.