Files
plugins/packages/agent-agy/README.md
T
yetone ebcff86606 agent-agy 0.2.0: magpie's own settings file, passed with --settings
As magpie's built-in agy does since 0cc91af3d: the plugin's config is
~/.gemini/antigravity-cli/magpie-settings.json, handed to agy with
--settings, and agy's own settings.json is only read (base) for the
user's own model and custom models. remote-control runs plain, as agy
is. Needs magpie with agentplug's base, launch.args and launch.plain.

Run: bun test packages/agent-agy (4 pass, on mote), and magpie's
internal/agent TestAgyPlugin against this file.
2026-11-11 16:11:22 +08:00

42 lines
1.5 KiB
Markdown

# @magpie-community/agent-agy
[Antigravity CLI](https://antigravity.google) (`agy`) as a magpie agent.
```sh
magpie plugin add @magpie-community/agent-agy
```
Pick one of magpie's models in the Antigravity CLI row. magpie writes a file
of its own, `~/.gemini/antigravity-cli/magpie-settings.json`, and leaves
your `settings.json` alone:
```json
{
"model": "magpie/deepseek/pro",
"modelProvider": "gemini",
"customModelsConfig": {
"customModels": {
"magpie/deepseek/pro": { "apiProvider": "API_PROVIDER_GOOGLE_GEMINI", "modelName": "deepseek/pro" }
}
}
}
```
Your own custom models from `settings.json` are carried in beside magpie's.
agy takes the address and key of a Gemini endpoint only from how it is
started, so magpie adds a function `agy` to your shells' profiles: it runs
`magpie agy run`, which starts the agy on your PATH with `GEMINI_API_KEY`,
`GOOGLE_GEMINI_BASE_URL`, `--settings magpie-settings.json` and `--model`
while its model is one of magpie's, and as it is otherwise.
`agy remote-control` always runs as it is, on your Google sign-in.
`magpie agy env` prints what it starts agy with.
Picking agy's own model again, or switching it off, takes
`magpie-settings.json` and the function away. agy in a WSL distro is set up
the same way, from Windows.
This plugin takes the place of the Antigravity CLI magpie shipped with: what
that one set up is handed over as it is.
How agent plugins work: [usemagpie.ai/docs/plugins#agents](https://usemagpie.ai/docs/plugins#agents).