GooglePier Paolo Ippolito, Elia SecchiAnnouncement
Powering the Agent Development Lifecycle with any framework, from ADK to LangChain and beyond
Summary
Google Cloud’s Agents CLI introduced an Extension System in version 1.5.0, allowing developers to override or add commands without forking the tool. This addresses the framework lock-in problem where toolchains assume a specific agent framework. Agents CLI 1.8.0 ships a first-party LangChain extension that replaces framework-coupled commands while leaving agnostic commands unchanged. Extensions are defined by a YAML manifest in a Git repository, distributed through Git references, and pinned to exact commit SHAs via a lockfile for reproducibility. The system supports both project-scope and user-scope installations, and enables enterprise platform teams to enforce custom policies like SBOM scans on deploy commands.
Context
Agents CLI was launched at Google Cloud Next ’26 with an opinionated path for ADK agents; the Extension System was added in v1.5.0 to support multiple frameworks and custom commands.
Approach / What changed
The Extension System uses a YAML manifest (agents-cli-extension.yaml) in a Git repository to declare command overrides or new commands. Overrides are implemented as executable scripts that receive the original arguments and can delegate to the built-in command via an environment variable. Extensions are installed by referencing a Git repository and tag/commit, and locked to a specific SHA in a lockfile that must be committed to version control.
Takeaways
The Extension System allows any built-in command to be overridden without forking the CLI, enabling custom workflows like compliance scans.
Agents CLI 1.8.0 includes a first-party LangChain extension that replaces framework-specific commands (playground, run, eval) with LangChain equivalents.
Extensions are distributed via Git repositories and pinned to exact commit SHAs in a lockfile, ensuring deterministic behavior across environments.
FAQ
How do I install the LangChain extension?
Run agents-cli extension add langchain to install the first-party LangChain extension. It overrides framework-specific commands with LangChain equivalents while leaving agnostic commands unchanged.
How can I create a custom deploy policy extension?
Create a directory with an agents-cli-extension.yaml file declaring an override for the deploy command, and a script that runs your policy (e.g., SBOM scan) then delegates to the built-in deploy using AGENTS_CLI_DISABLE_OVERRIDES=1.
How does the lockfile ensure reproducibility?
When installing an extension, the CLI resolves the Git reference to an exact commit SHA and records it in a lockfile. On future checkouts, agents-cli install restores the extension from that SHA, preventing unexpected changes.
Source and freshness
- Source
- developers.googleblog.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.