The agent plugin magpie's built-in agy moves onto. It names agy's settings.json, where magpie's models go beside the user's own (merge: customModelsConfig.customModels), and how agy is started: GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL from magpie's gateway and --model, given by the agy function magpie puts in the user's shells. own() lists the user's own custom models by their provider. Run: bun test in packages/agent-agy (3 pass) and bun scripts/check.mjs (ok) on mote. magpie's TestAgyPlugin, TestAgyHandedToPlugin and TestAgyHandedOverUnwire load this file and pass against the magpie change that reads launch, merge, effort, wsl and aliases. A magpie without that change keeps agy its built-in's, so this package does nothing there.
39 lines
1.3 KiB
Markdown
39 lines
1.3 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 into
|
|
`~/.gemini/antigravity-cli/settings.json`:
|
|
|
|
```json
|
|
{
|
|
"model": "magpie/deepseek/pro",
|
|
"modelProvider": "gemini",
|
|
"customModelsConfig": {
|
|
"customModels": {
|
|
"magpie/deepseek/pro": { "apiProvider": "API_PROVIDER_GOOGLE_GEMINI", "modelName": "deepseek/pro" }
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
Your own custom models stay 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` and
|
|
`--model` while its model is one of magpie's, and as it is otherwise.
|
|
`magpie agy env` prints what it starts agy with.
|
|
|
|
Picking agy's own model again, or switching it off, puts every key back as
|
|
it was and takes the function out. 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).
|