Files
plugins/packages/wave/README.md
T
汤杭运 27ce92fd8f agent-wave 0.1.1: the mode names its model, sets a thinking level, and Wave is found by wsh (#1106)
Wave's magpie mode now carries the picked model's name ("Magpie · <model>"),
display:order 1 and the crow icon, and ai:thinkinglevel from the model's
efforts (medium, then high, then low; left out when it has none). The agent
also detects Wave by the wsh CLI, attributes usage by Wave's User-Agent, and
shows a notice on picking the Magpie mode in Wave. connect still returns one
whole `magpie` object, so a disconnect removes the mode. By aibot88.

Checked against Wave's source (pkg/wconfig/settingsconfig.go): display:order,
display:icon and ai:thinkinglevel (enum low/medium/high) are AIModeConfigType
fields. magpie passes name and efforts to connect (internal/agent/plugged.go),
and bin/ua/notice are agentplug.Desc fields.

Run at the reviewed head 008cd8bb4, HOME=$(mktemp -d):
- packages/wave: bun test 5 pass, 0 fail (mote)
- bun scripts/check.mjs wave: ok
Broken by hand: putting "high" ahead of "medium" turns the thinking-level
test red (4 pass, 1 fail, magpie-desktop WSL); restored.

The author ran it on magpie 0.1.3900 with Wave 0.14.5 on macOS.
Not tried by the reviewer: a real Wave install.
2026-11-14 00:28:26 +08:00

38 lines
1.4 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 · GLM-5.3-Flash",
"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).