ant CLI 1.30.0 adds ant apply to manage Managed Agents resources as code
ant apply creates and updates agents, environments, skills, memory stores, and deployments from files in a repository, prints a plan for approval, and writes a claude-lock.json lockfile so later runs on any machine or in CI update the same resources instead of creating duplicates. Requires ant CLI 1.30.0 or later.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact Worth knowingManaged Agents resources can now be defined in files and applied from CI like infrastructure, which makes agent configuration reviewable and reproducible. Worth adopting for new agents; existing Console-created agents cannot be adopted and would be duplicated.
Engineer
What to change, what breaks, what to test Worth knowingUpgrade to ant CLI 1.30.0 and run ant apply <path> to create or update agents, environments, skills, memory stores, and deployments from files; commit claude-lock.json so later runs update rather than duplicate. Use --dry-run to preview, --yes in CI, and Workload Identity Federation instead of a stored API key. It cannot adopt agents made in the Console.
General consumer
Using the Claude apps, not the API No impactNothing to do. This is a developer command-line tool and does not affect the Claude apps.
Version 1.30.0 of the ant CLI adds ant apply. Each Claude API resource is described in a file: an agent as Markdown whose frontmatter is the create-request body and whose prose is the system prompt, an environment or memory store as YAML, a deployment as Markdown whose prose becomes the first message of each scheduled session, and a skill as a directory with a SKILL.md at its root. Running ant apply <path> prints a plan (create or update per file) and, in a terminal, waits for approval; --dry-run prints the detailed plan and exits, and --yes is required where there is no terminal.
The first run writes claude-lock.json in the current directory. It records the organization and workspace, and for each file the resource kind, ID, version, and two hashes fingerprinting what was last sent and what the API returned. Commit it: it is how a later run, on another machine or in CI, updates the same resources rather than creating new ones, and where an agent’s ID is read to start a session. Resources reference each other by relative path wherever the API expects an ID, and ant apply creates them in dependency order. A skill can also be referenced by a GitHub tree URL, pinned to the resolved commit until --upgrade.
Limits worth knowing: ant apply cannot adopt a resource created in the Console or with ant beta:agents create, so applying a file that describes an existing agent creates a second one (the Console’s Export as code download ships its own lockfile to avoid this). A resource edited, archived, or deleted outside the files blocks the plan until --force. Deleting a file leaves the resource in place until --prune. The command refuses credentials that resolve to an organization or workspace other than the one in the lockfile, and Anthropic recommends Workload Identity Federation rather than a stored API key in CI.
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
ant apply | added | no | |
claude-lock.json | added | no |
Topics: Agents and tool use