Claude Managed Agents Overview: Three-Layer Architecture of Sessions / Agents / Environments APIs
Chapter 29: Managed Agents Overview: Projects, Artifacts, and Agent Lifecycle
29.1 What Are Managed Agents?
In Anthropic's product architecture, Managed Agents refers to agent instances that run on the Claude.ai platform, with the platform itself handling all infrastructure concerns. Unlike API-based agents โ where developers must provision servers, manage databases, implement session state, and handle scaling โ Managed Agents abstract all of that away. Teams interact with the agent through a managed interface and focus entirely on business logic.
The defining characteristics of Managed Agents:
- Platform-hosted infrastructure โ Session persistence, memory storage, and tool execution environments are managed by Claude.ai, not the developer
- Projects integration โ Agents can be associated with Projects, gaining persistent knowledge bases and persistent custom instructions
- Artifacts generation โ Agents produce interactive, renderable outputs: code, charts, web pages, diagrams
- Built-in lifecycle management โ Pause, resume, version history, and sharing are handled at the platform layer
Managed Agents vs API Agents
| Dimension | Managed Agents (Claude.ai) | API Agents (Self-built) |
|---|---|---|
| Infrastructure | Zero-ops, platform-managed | Must build and maintain |
| Persistence | Automatic (Projects) | Requires custom database |
| Tool extensibility | Platform-provided tools | Fully custom |
| Time to value | Minutes | Hours to days |
| Cost model | Subscription | Per-token API billing |
| Data control | Data on Anthropic servers | Full control |
| Compliance fit | General use | Enterprise/regulated industries |
29.2 Projects: Persistent Agent Workspaces
Projects are the most important feature in Claude.ai's Managed Agents offering. They elevate single conversations into persistent, specialized workspaces with durable memory across sessions.
Anatomy of a Project
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Project โ
โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโ โ
โ โ Knowledge Base โ โ Custom Instructionsโ โ
โ โ (RAG-indexed โ โ (System prompt โ โ
โ โ documents) โ โ extension) โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Conversation History โ โ
โ โ (All conversations within Project) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Artifacts โ โ Built-in Tools โ โ
โ โ (Outputs) โ โ (Search, Code exec) โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Knowledge Base
The Project knowledge base allows uploading and indexing documents that Claude can access across all conversations within that Project.
Supported file types:
- Text:
.txt,.md,.csv - Documents:
.pdf,.docx - Code:
.py,.js,.ts,.go, and many more - Data:
.json,.yaml
How it works under the hood:
When a file is uploaded, Claude.ai automatically handles the full RAG pipeline:
- Document parsing (text extraction)
- Semantic chunking
- Embedding vector generation
- Vector index construction
During conversations, Claude retrieves the most relevant document chunks based on the user's message and injects them into context โ this is the platform-managed RAG system described in Chapter 28, but with zero engineering effort from the user.
Knowledge base curation principles:
Recommended content:
โโโ Core reference documents (high retrieval frequency)
โ โโโ API documentation
โ โโโ Technical specifications
โ โโโ System architecture documents
โโโ Examples and patterns (provide reference models)
โ โโโ Code templates
โ โโโ Worked examples
โโโ Background materials (provide context)
โโโ Team conventions
โโโ Project history and decisions
Avoid:
โโโ Very large files (>10MB per file degrades chunking quality)
โโโ Highly repetitive content (dilutes retrieval precision)
โโโ Sensitive data (passwords, keys, personal information)
Custom Instructions
Custom Instructions are a Project-scoped system prompt extension, automatically prepended to every conversation in the Project.
Example โ Code Review Project:
## Your Role
You are a senior Python backend code reviewer with deep expertise in
FastAPI, PostgreSQL, and microservices architecture.
## Review Standards
For every code submission, you must check:
1. **Security**: SQL injection, auth bypass, sensitive data exposure
2. **Performance**: N+1 queries, synchronous blocking I/O, resource leaks
3. **Code quality**: Functions >50 lines need refactor suggestions; snake_case naming
4. **Test coverage**: Critical paths must have corresponding unit tests
## Output Format
For each issue:
[SEVERITY] filename:line_number Problem description Recommended fix
Severity: CRITICAL (must fix) / HIGH (strongly recommended) / MEDIUM (suggested) / LOW (optional)
## Team Context
Team uses Python 3.11+, PEP 8, pytest for testing.
No print() for logging โ must use structlog.
All database queries must use parameterized statements.
The power of Custom Instructions is that they encode institutional knowledge โ team conventions, quality standards, domain context โ that would otherwise require repetitive prompting in every conversation.
29.3 Artifacts: Interactive Output Artifacts
Artifacts are Claude.ai's signature differentiating capability. Rather than generating only text, Claude can produce renderable, interactive, deployable outputs that users can preview, modify, and use directly.
Artifact Types
Code Artifacts
- Trigger: Request for standalone, runnable code
- Display: Syntax-highlighted code editor view
- Languages: Python, JavaScript, TypeScript, SQL, Shell, and more
- Special capability: Some code types execute in a browser sandbox
SVG Artifacts
- Trigger: Request for vector graphics, icons, or diagrams
- Display: Live-rendered vector graphic
- Use cases: Architecture diagrams, flowcharts, brand sketches, data visualizations
HTML Artifacts
- Trigger: Request for a complete, runnable web page
- Display: Inline browser preview with full interactivity
- Capabilities: Full HTML/CSS/JavaScript, external CDN access (Bootstrap, Chart.js), animations, forms, local state
React Artifacts
- Trigger: Request for interactive React components
- Display: Real-time compiled and rendered React component
- Available libraries:
shadcn/ui,lucide-react, Recharts, and other pre-installed packages - Use cases: Dashboards, form components, interactive charts, small utility apps
Mermaid Artifacts
- Trigger: Request for flowcharts, sequence diagrams, ER diagrams
- Display: Live-rendered diagram
- Supported types:
flowchartโ process flowssequenceDiagramโ system interaction sequenceserDiagramโ database schemasganttโ project timelinesclassDiagramโ OOP structuresmindmapโ concept maps
Markdown Artifacts
- Trigger: Long-form documents, reports, specifications
- Display: Rendered rich text
- Distinction from chat: Markdown Artifacts can be independently saved, exported, and versioned
Artifact Lifecycle
Create โ Preview โ Iterate โ Version History โ Export/Deploy
โ โ
โโโโโโโโโโโโโโโโโโโโโโ (Multiple revision cycles)
Claude.ai maintains full version history for Artifacts. Users can inspect any prior version or roll back to an earlier state โ a critical feature when iterating on complex outputs.
29.4 Agent Lifecycle
Conversation Lifecycle
Initialize
โ
โโ Load Project config (Custom Instructions + Knowledge Base)
โ
โโ Active
โ โโ User message โ RAG retrieval โ Context assembly โ Inference โ Response
โ โโ Artifact creation and versioning
โ โโ Tool execution (code, search, file access)
โ
โโ Archived
โ โโ History preserved; can be reactivated
โ
โโ Deleted
โโ Permanent removal
Memory Model Within Projects
Projects implement a three-tier memory model:
| Tier | Scope | Content | Persistence |
|---|---|---|---|
| Knowledge Base | All Project conversations | Uploaded documents | Until manually removed |
| Custom Instructions | All Project conversations | Role and behavior rules | Until manually edited |
| Conversation History | Single conversation | Dialogue turns, tool calls, artifacts | Archived with conversation |
Notably, memory does not automatically transfer between separate conversations within a Project. If a user discusses a decision in Conversation A, Claude will not know about it in Conversation B unless the relevant information is in the Knowledge Base or Custom Instructions. This is a key architectural distinction from a Memory Tool-enabled API agent.
29.5 Built-In Tools
Managed Agents have access to platform-provided tools without any implementation work.
Web Search
Claude can proactively search the internet for real-time information:
- Triggers when: user asks about recent events, live data, or information requiring verification
- Sources: public web pages, news outlets
- Limitation: cannot access content behind login walls
Python Sandbox (Code Execution)
Claude can execute Python code in a secure sandbox environment:
Sandbox characteristics:
- Python 3.x runtime
- Pre-installed: numpy, pandas, matplotlib, scikit-learn, and others
- Isolated filesystem (no host access)
- Limited network access
- Execution timeout enforced
Typical uses: data analysis, chart generation, mathematical verification, data transformation.
File Processing
Within supported features, Claude can read content from files uploaded to the Project Knowledge Base and generate exportable files within Artifacts.
29.6 When to Use Managed Agents vs API Agents
Managed Agents are the right choice when:
- Building a team knowledge assistant (technical docs, company standards)
- Code review and analysis workflows
- Report generation and data analysis
- Rapid prototyping and MVP validation
- Individual productivity tooling
API Agents are required when:
- Integrating with private systems (internal databases, enterprise ERP, proprietary APIs)
- Custom tool definitions are needed (call internal services)
- Complex multi-agent orchestration is required
- Real-time data stream processing is involved
- Data compliance requires information never leaving the corporate network (GDPR, HIPAA, national data sovereignty laws)
Summary
Managed Agents represent Anthropic's answer to the question: "How do I get powerful agent capabilities without the engineering overhead?" Through Projects (knowledge base + custom instructions), Artifacts (interactive outputs), and platform-provided tools, Claude.ai abstracts the complex infrastructure work of building production agents.
Key concepts:
- Projects = Persistent workspaces with knowledge base, instructions, and conversation history
- Artifacts = Code, SVG, HTML, React, Mermaid โ interactive, versionable outputs
- Built-in tools = Web search, Python execution, file handling
- Lifecycle = Conversation-scoped, with project-level knowledge persistence
The next chapter provides a deep dive into using Claude Projects effectively: knowledge base architecture, Custom Instructions design patterns, and team collaboration workflows.