→ Back to Home
Claude

Anthropic Launches 'ant apply' to Bring GitOps and Infrastructure-as-Code to Claude Agents

Anthropic has released version 1.30.0 of its ant CLI, introducing ant apply—a declarative command that manages Claude API resources directly from files inside a source repository. The command allows engineers to define agents, execution environments, tool skills, persistent memory stores, and deployments using structured files such as YAML, Markdown, and JSON. When executed, the CLI parses the project directory, computes dependency order across relative file references, renders a detailed plan diff, and prompts for user approval. The first reconciliation writes a claude-lock.json file capturing assigned resource IDs, workspace metadata, and state hashes, ensuring subsequent runs update existing remote resources and flag external out-of-band drifts rather than producing duplicates. This transition from UI-based agent configuration to declarative repository definitions addresses a critical governance bottleneck in enterprise AI. Until now, managing complex multi-agent architectures required brittle manual adjustments in developer consoles or custom orchestration scripts, leaving configurations vulnerable to silent drift and incomplete auditing. By treating agent definitions as code, platform teams can enforce standard peer reviews, automate diff inspections in pull requests using non-interactive dry-run modes, and guarantee that runtime prompt templates, skill bindings, and tool definitions are promoted consistently across environments. This release reflects the broader convergence of generative AI engineering with established cloud-native DevOps and GitOps practices. As frontier models transition from conversational endpoints into persistent, stateful agent swarms equipped with sandboxes, credentials, and memory, treating an agent merely as an ad-hoc API payload is no longer sufficient. Tooling must provide the same deterministic control planes, lifecycle tracking, and release predictability that developers expect from Terraform, Helm, or Kubernetes manifests. In practice, teams running Claude Managed Agents should begin transitioning manual setups into declarative repositories. Because ant apply requires a valid claude-lock.json mapping and intentionally refuses to adopt untracked resources without explicit export steps, organizations should execute planned migrations rather than running reconciliation against live environments unguided. Deployment pipelines should integrate informational plan checks (ant apply --dry-run .) during pull requests and automated reconciliation (ant apply --yes .) upon merging to default branches, with automated lockfile commits back to source control.
#claude#devops#anthropic#gitops#iac
Read original source