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 withwrapAnthropic. 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
- Trace Anthropic models — trace standard Anthropic API calls and tool use
- Trace Claude Agent SDK applications — trace the Claude Agent SDK for local agentic apps
- Monitor your agent — set up dashboards and alerts for production agents
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

