ant apply brings declarative infrastructure to Claude Managed Agents
- Source
- platform.claude.com
- Publisher
- Anthropic
- Author
- ClaudeDevs
- Date

Context
Anthropic's developer account ClaudeDevs announced `ant apply`, a command in the `ant` CLI that turns Claude Managed Agents into files kept in a repository. According to the documentation, agents, environments, skills, memory stores, deployments and vaults each live in a file, so a change to an agent's model, tools or goes through the same review as code. An agent, for example, is a Markdown file whose frontmatter holds its configuration and whose body is its system prompt. Running the command shows a plan of what will be created or updated and waits for approval.
The piece that makes this work is a lockfile, claude-lock.json, which the first run writes and the docs say to commit. It records which API resource each file created, plus the organization and workspace they belong to, so the next run updates those resources instead of creating duplicates. It also stores two fingerprints, one for what was last sent and one for what the API returned. That is how a later run notices that someone edited, archived or deleted a resource outside the files, for instance in the Claude Console. When that happens the command refuses to apply unless it is given --force. Files can point at each other by relative path where the API would expect an ID, and the tool creates resources in order and fills in the real IDs.
The documentation also spells out what the command will not do. Deleting a file leaves its resource in place with a warning until the command is run with --prune, so renaming a file creates a new resource. It cannot take over an agent that was created in the Console or with another CLI command, and applying a file that describes one creates a second copy. The exception is a Console agent downloaded with Export as code, which comes with its own lockfile. In CI, the docs recommend a on pull requests so reviewers see the plan, applying with --yes after merge, committing the updated lockfile even when an apply fails partway, and running only one apply at a time, because nothing locks the lockfile. The command needs CLI version 1.30.0 or later.
- Setup — The combination of a model, a harness, its connections and the path the task's data takes, considered together for a task.
- system prompt — The standing instructions a model receives before any user input — defining its role, rules, tools, and tone for the whole conversation.
- Dependency — Anything a program needs to run that its author did not write: the language, its standard library, or a separately installed package.
- Dry run — A mode in which an operation describes the changes it would make without making them.





