Skip to main content
Claude Managed Agents are Anthropic’s hosted, cloud-based agents that run in managed environments. LangSmith supports tracing Claude Managed Agent sessions via the wrapAnthropic wrapper, giving you visibility into agent creation, session events, and message flows.
Claude Managed Agents tracing is currently supported in TypeScript only.

Installation

npm
yarn

Environment setup

Shell

Trace Claude Managed Agents

Wrap the Anthropic client with wrapAnthropic. The wrapper will automatically trace agent creation, session creation, and all events that flow through the session.
TypeScript
Full tracing of subagents in Anthropic’s multi-agent architecture requires tapping into a separate event stream and is not yet supported. Only top-level session events are traced.

Next steps