Files
plugins/packages/wave/README.md
T
atttmin 35468c76d7 wave 0.1.0: Wave Terminal as a magpie agent (#938)
Adds Wave Terminal (waveterm) as a magpie agent. connect writes one whole
"magpie" mode in ~/.config/waveterm/waveai.json (display:name, model,
the gateway's /chat/completions endpoint, openai-chat, the key, and
capabilities with images when the model takes them), so switching off
removes the mode and leaves the user's own modes alone.

Run at 2f08c0df merged with origin/main c27ba5f7, on the Windows box with
a fresh HOME: bun test packages/wave 4 pass, scripts/check.mjs exit 0.
Broken by hand: removing display:name turns the connect test red.
Not tried: a real Wave app run (Electron, not run headless).

Co-authored-by: atttmin <46617048+atttmin@users.noreply.github.com>
2026-11-11 12:39:43 +08:00

38 lines
1.3 KiB
Markdown

# @magpie-community/agent-wave
[Wave Terminal](https://waveterm.dev) as a magpie agent. magpie has no setup of
its own for Wave; with this plugin it is on magpie's Agents page like the agents
magpie ships with.
```sh
magpie plugin add @magpie-community/agent-wave
```
Then pick one of magpie's models in Wave's row. magpie writes one mode,
`magpie`, into `~/.config/waveterm/waveai.json`:
```json
{
"magpie": {
"display:name": "Magpie",
"ai:model": "v2ex/glm-5.3-flash",
"ai:endpoint": "http://127.0.0.1:3425/v1/chat/completions",
"ai:apitype": "openai-chat",
"ai:apitoken": "magpie-wave",
"ai:capabilities": ["tools"]
}
}
```
Your other modes and settings stay. Picking a model of your own again, or
switching Wave off, takes the `magpie` mode out entirely and puts your
settings back as they were. Wave watches its config directory, so the mode
shows up in the dropdown right away — pick **Magpie** there to use it (or set
`"waveai:defaultmode": "magpie"` in `~/.config/waveterm/settings.json`).
Wave reads its AI modes from `~/.config/waveterm` by default; on another setup
it may use `$XDG_CONFIG_HOME/waveterm`, `$WAVETERM_CONFIG_HOME` or the legacy
`~/.waveterm/config`. This plugin targets the default `~/.config/waveterm`.
How agent plugins work: [usemagpie.ai/docs/plugins#agents](https://usemagpie.ai/docs/plugins#agents).