Architectural Layers
Five orthogonal concerns that compose into a complete agent
L1 Tools & Execution
What the agent CAN do. The foundation: tools give the model capabilities to interact with the world.
L2 Planning & Coordination
How work is organized. From simple todo lists to dependency-aware task boards shared across agents.
TodoWrite
Plan Before You Act
Visible plans improve task completion and accountability
Subagents
Fresh Context via Task Tool
Process isolation = context isolation
Skills
SKILL.md + tool_result Injection
Skills inject via tool_result, not system prompt
Tasks
Persistent CRUD with Dependencies
File-based state survives context compression
L3 Memory Management
Keeping context within limits. Compression strategies that let agents work infinitely without losing coherence.
L4 Concurrency
Non-blocking execution. Background threads and notification buses for parallel work.
L5 Collaboration
Multi-agent coordination. Teams, messaging, and autonomous teammates that think for themselves.
Agent Teams
Teammates + Mailboxes
Persistent teammates with async mailbox inboxes
Team Protocols
Shutdown + Plan Approval
Same request-response pattern, two applications
Autonomous Agents
Idle Cycle + Auto-Claim
Polling + timeout makes teammates self-organizing