agents-cli icon indicating copy to clipboard operation
agents-cli copied to clipboard

Support post clone hooks

Open msteiner-google opened this issue 4 months ago • 2 comments

What is your feature suggestion?

I am trying to build a template with different variants (for Googlers, code is available at go/msteiner-adk-template ).

My specific use case While I managed to do it through symlinks, each template "variant" that uses the shared logic has to resort to relative imports, which, many linters don't like. If there was a way to run a script after the setup was done to sed the relative imports to absolute ones that would be amazing.

What will this enable you to do?

Having access to a hook to perform custom actions after the template has been "initiazlied" (ie after everything else is done, cloning, setting up,...) it would be amazing and solve my use case, but potentially open a lot of possibilities.

For instance, I am also working on a use case where the agents are deployed to GKE and the codebase is in a git "monorepo". I would like to express the logic that when someone adds an agent to the repo I can trigger a script to modify the kustomize definitions automatically to include the new agent or similar things.

Additional context

No response

msteiner-google avatar Jul 31 '26 07:07 msteiner-google

Thanks a lot for raising this! We are very close to establish an "extension model", for which you will be able to override commands and skills in Agents CLI. Essentially controlling in detail the behaviour you want to obtain in Agents CLI.

eliasecchig avatar Aug 19 '26 22:08 eliasecchig

We just released 1.5.0 which includes Extensions 🥳 https://google.github.io/agents-cli/guide/extensions/

Let us know if that works for the use case you have in mind and feel free to open a bug in case

eliasecchig avatar Sep 07 '26 13:09 eliasecchig