Every agent, from a simple script to a complex multi-agent system, is composed of five fundamental components. Understanding these components lets you design agents deliberately instead of accidentally.
The language model is the reasoning engine. It processes context, generates plans, and decides which tool to call. Different models have different strengths:
Choosing the right model per task is a design decision. Not everything needs Opus.
Tools are how agents interact with the world. Without tools, an LLM is just a text generator. With tools, it can:
In your setup, MCP servers provide 50+ tools: Notion pages, Calendar events, Slack messages, Linear issues, Figma designs. Each tool extends what the agent can do.
Agents need memory at three levels:
knowledge/projects.md)knowledge/ directory, CLAUDE.md, memory graph)Your workspace already implements all three. The soul.md and CLAUDE.md files are long-term memory that shapes every interaction.
How the agent breaks down complex goals into steps. This can be:
Extended thinking is where planning happens inside the model — it reasons before acting, which reduces errors on complex tasks.
The world the agent operates in. For Claude Code, this is your filesystem, terminal, and connected services. The environment provides:
Time to consolidate what you learned.
You've learned all 5. Can you connect each to your actual setup?
┌─────────────────────────────────────────────────┐
│ CLAUDE CODE AGENT ARCHITECTURE │
├─────────────────────────────────────────────────┤
│ Brain: Claude Opus/Sonnet │
│ Tools: Bash, Read, Write, Edit, Grep, │
│ Glob, MCP servers (10+) │
│ Memory: CLAUDE.md, soul.md, knowledge/, │
│ memory graph, conversation │
│ Planning: Extended thinking, plan mode, │
│ TodoWrite for task tracking │
│ Environment: Filesystem, terminal, APIs, │
│ browser (via MCP) │
└─────────────────────────────────────────────────┘
The key insight: you configure agent behavior by shaping these components, not by writing agent code. Your CLAUDE.md rules, knowledge/ files, and MCP server connections are the agent design.