Chapter 29

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:

  1. Platform-hosted infrastructure โ€” Session persistence, memory storage, and tool execution environments are managed by Claude.ai, not the developer
  2. Projects integration โ€” Agents can be associated with Projects, gaining persistent knowledge bases and persistent custom instructions
  3. Artifacts generation โ€” Agents produce interactive, renderable outputs: code, charts, web pages, diagrams
  4. 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:

How it works under the hood:

When a file is uploaded, Claude.ai automatically handles the full RAG pipeline:

  1. Document parsing (text extraction)
  2. Semantic chunking
  3. Embedding vector generation
  4. 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

SVG Artifacts

HTML Artifacts

React Artifacts

Mermaid Artifacts

Markdown Artifacts

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.

Claude can proactively search the internet for real-time information:

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:

API Agents are required when:


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:

The next chapter provides a deep dive into using Claude Projects effectively: knowledge base architecture, Custom Instructions design patterns, and team collaboration workflows.

Rate this chapter
4.9  / 5  (4 ratings)

๐Ÿ’ฌ Comments