Sessions are ephemeral by default — when one ends, anything the agent learned is gone. A memory store is a workspace-scoped collection of small text documents that persists across sessions. When a store is attached to a session (via resources[]), it is mounted into the cont. Use it as a repeatable review, validation or hardening pass.
Send events to a session via POST /v1/sessions/{id}/events. Use it to ground design choices in named patterns, trade-offs and examples.
Creating a session requires an environment id. Environments are reusable configuration templates for spinning up containers in Anthropic's infrastructure — you might create different environments for different use cases (e.g. data visualization vs web development, with diff. Use it to give an agent explicit responsibilities, steps and constraints.
Every session has a live trace view in the Anthropic Console at https://platform.claude.com/workspaces/{workspace}/sessions/{session id}. Print this URL immediately after creating a session so the user can watch tool calls and messages stream in real time. {workspace} is th. Use it to ground design choices in named patterns, trade-offs and examples.
Patterns you'll write on the client side when driving a Managed Agent session, grounded in working SDK examples. Use it to ground design choices in named patterns, trade-offs and examples.
All endpoints require x-api-key and anthropic-version: 2023-06-01 headers. Managed Agents endpoints additionally require the anthropic-beta header. Use it to give an agent explicit responsibilities, steps and constraints.
This file covers decision heuristics for building agents on the Claude API: which primitives to reach for, how to design your tool surface, and how to manage context and cost over long runs. For per-tool mechanics and code examples, see tool-use-concepts.md and the language-spe. Use it as a repeatable review, validation or hardening pass.
List files the agent wrote to /mnt/session/outputs/ during a session, then. Use it to ground design choices in named patterns, trade-offs and examples.
A compilation of language agents using the Cognitive Architectures for Language Agents (🐨CoALA) framework. - CoALA Paper (16 pages of main content): https://arxiv.org/abs/2309.02427 - CoALA Tweet (6 threads): https://twitter.com/ShunyuYao12/status/1699396834983362690 - CoALA. Use it to navigate the topic and choose relevant methods, papers or tools.
At the core of every agent is a neural network -- a Transformer, an RNN, a trained function -- shaped by billions of gradient updates on sequences of perception, reasoning, and action. Agency was never bestowed by the surrounding code. It was learned during training. Use it to ground design choices in named patterns, trade-offs and examples.