Skip to main content
Claude Managed Agents are Anthropic-hosted agents with bundled bash / write / read tooling, Skills (e.g. the docx skill for Word document generation), MCP server bindings authenticated via Anthropic Vaults, and Environments for custom pip packages. Ntropii integrates with them via ntro.workflow.agents.invoke from inside a runbook step. This page is the end-to-end walkthrough for the production adapter. The working reference implementation lives in claude-managed-agents on GitHub.

When to use

Reach for a Managed Agent when a runbook step needs LLM-driven artefact generation that doesn’t fit the deterministic capabilities surface:
  • Multi-section narrative documents (auditor handover .docx, NAV pack PDF, year-end letter)
  • Open-ended document drafting where the structure varies by period
  • Tasks where the agent benefits from bash + python-docx + the docx Skill working together in a sandbox
For structured extraction, classification, and quality checks, prefer ntro.ai.extract and ntro.ai.check. They’re cheaper, faster, and observable through the same Reasoning tab.

Lifecycle

1. Build on Anthropic Console

Author the agent in Anthropic Console. The shape of an agent.yaml that registers cleanly with Ntropii:
Three platform objects to set up: No env vars on Managed Agents. Auth flows through Vault → MCP server only.

2. Register with Ntropii

Once the agent exists in Anthropic Console and you have its native id (e.g. agent_01SxpziMunFrUbnAYkGB5Hu3):
The CLI returns the Ntropii agent UUID, the resolved external_ref, and an API key plaintext shown once.

3. Store the API key in an Anthropic Vault

Create a Vault on Anthropic, paste the plaintext API key, and reference the Vault from the agent. The Ntropii MCP server uses this key to authenticate the agent’s callbacks (e.g. ntro_task_get).

4. Reference from a runbook step

From any @runbook.step method:
The agent receives input as its kickoff user message (JSON-serialised for dicts), runs to terminal status, and emits any output files. The Ntropii adapter handles the rest.

File output

The agent writes generated files to /mnt/session/outputs/<filename> — Anthropic’s runtime auto-promotes that path into the session’s file list. The Ntropii adapter:
  1. Polls the Anthropic Sessions API until the session is terminated.
  2. Lists session files via GET /v1/files?scope_id=<session_id> (with backoff for the index-eventual-consistency race).
  3. Downloads each file’s bytes.
  4. Persists to ingest.submitted_documents with source = 'agent_output:<ntropii-agent-id>'.
The persisted file is then accessible from the task UI like any other document — including via the audit-handover step’s download link.

Reference implementation

The claude-managed-agents repo on GitHub contains the production-ready definitions and integration spec:
Use audit-handover as the template for your own Managed Agents.

Register agents

Generic registration flow, lifecycle, and reference table.

ntro.workflow.agents reference

invoke() signature, AgentResult shape, adapter polling + backoff semantics.

Build runbooks

The runbook-side of invoking an agent inside a @runbook.step.

Anthropic Managed Agents docs

Anthropic’s reference for Agents, Environments, Vaults, and Sessions.