Skip to main content
anthropic.archiveAgent archives a Claude agent so it cannot start new sessions.

Example

automations/anthropic-archive-agent.automation.ts

Inputs

Requires agentId. Archival is terminal for new sessions. Inputs use public camelCase names and accept signals.

Output and behavior

Returns the archived agent. Anthropic requests time out before the action lease and provider mutations are not retried after an uncertain response unless stated otherwise.