agents: nanobot gets magpie as a provider of its own (Niapyaya on X)

nanobot (HKUDS/nanobot, pip install nanobot-ai) is now an agent magpie
connects. Its config is read from its own source (5c72ced, 0.4.1):
~/.nanobot/config.json, camelCase or snake_case keys, any extra key under
providers an OpenAI-compatible endpoint whose name is stripped from the
model.

magpie adds providers.magpie (apiBase at the gateway's /v1, its key, and
extraHeaders User-Agent nanobot), and sets agents.defaults provider
magpie, model magpie/<id> and contextWindowTokens when the window is
known. What the user had there, both spellings, and a modelPreset that
would go over magpie's model, is stashed and put back on disconnect,
the window as a number. A file magpie made goes again. Also in WSL
distros, with a notice in every language, the icon (a tile in app.css's
rule), READMEs, site list, docs/reference.md and agent-wiring.md.

Run:
- real nanobot 0.4.1 on mote in a sandbox HOME (~/nbsb), a sandbox
  gateway on 47812 over a fake OpenAI upstream: `magpie nanobot
  magpie/fakeup/m1` wrote the config and kept the user's relay provider
  and channels; `nanobot agent -m ping` answered "pong from fake
  upstream"; the upstream saw POST /v1/chat/completions, model m1,
  UA nanobot; `magpie nanobot default` put relay/glm-4.6 back exactly.
- go test ./internal/agent ./internal/gui ok; ./internal/gateway and
  ./internal/cli -run 'Client|UA|Agent|Empryo' ok; go vet darwin,
  linux -tags nogui, windows ok; gofmt -l clean.
- GUI, chromium 110/110 and webkit 65/65: i18n-keys, i18n-en-no-cjk,
  agent-notice-lang, gui-de, gui-ja, gui-zh-tw, icon-one-tone,
  icon-tile, routing-client-icons, usage-agent-filter-icons,
  agent-connect, agent-models, agent-layout.

Broken by hand, each red in TestNanobot: modelPreset not stashed
(preset left over magpie's model), the made file not removed, and the
window restored as a string.

Not tried: a real vendor behind the gateway (fake upstream only),
nanobot's long-running `nanobot gateway`/WebUI picking the change up
live, and WSL.
This commit is contained in:
yetone
2026-11-10 10:27:05 +08:00
parent 4869d0c966
commit b922e51685
15 changed files with 430 additions and 5 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ magpie finds the subscriptions your agents are signed in to by reading their sig
<table>
<tr><td>
Claude Code · Claude Desktop · Claude Science · Codex · Gemini CLI · Antigravity CLI · OpenCode · OpenChamber · MiMo Code · DevEco Code · Pi · oh-my-pi · StepCode · MothX · PenguinHarness · Aside · OmO · Prime Agent · Goose · Cursor CLI · Cursor Private Inference · Zed · VS Code Chat · VS Code Insiders · VSCodium Chat · Zoo Code · JetBrains Air · Air (JetBrains IDEs) · Copilot (JetBrains) · Copilot CLI · Crush · DeepSeek Harness · Reasonix Studio · Command Code · fx · Devin · Hermes Agent · Mister Morph · Kimi Code · jcode · Qwen Code · Muse Code · Empryo · MiniMax Code · Droid · Cline · Qoder · Qoder CN · Grok Build · Grok App · ZCode · WorkBuddy · WorkBuddy AI · CodeBuddy · Pencil · OpenPencil · OpenBot · NewMax · LiveAgent · Raycast · Kiro Crew · OpenMausBot · T3 Code · OpenHanako · AtomCode · Snow CLI · Alma · Cindy · Lody · AionUi · Cherry Studio · Ante · AstrBot · QwenPaw · OpenClaw
Claude Code · Claude Desktop · Claude Science · Codex · Gemini CLI · Antigravity CLI · OpenCode · OpenChamber · MiMo Code · DevEco Code · Pi · oh-my-pi · StepCode · MothX · PenguinHarness · Aside · OmO · Prime Agent · Goose · Cursor CLI · Cursor Private Inference · Zed · VS Code Chat · VS Code Insiders · VSCodium Chat · Zoo Code · JetBrains Air · Air (JetBrains IDEs) · Copilot (JetBrains) · Copilot CLI · Crush · DeepSeek Harness · Reasonix Studio · Command Code · fx · Devin · Hermes Agent · Mister Morph · Kimi Code · jcode · Qwen Code · Muse Code · Empryo · nanobot · MiniMax Code · Droid · Cline · Qoder · Qoder CN · Grok Build · Grok App · ZCode · WorkBuddy · WorkBuddy AI · CodeBuddy · Pencil · OpenPencil · OpenBot · NewMax · LiveAgent · Raycast · Kiro Crew · OpenMausBot · T3 Code · OpenHanako · AtomCode · Snow CLI · Alma · Cindy · Lody · AionUi · Cherry Studio · Ante · AstrBot · QwenPaw · OpenClaw
</td></tr>
</table>
+1 -1
View File
@@ -82,7 +82,7 @@ magpie 通过读取智能体的登录信息(Claude Code 和 Codex 的文件、
<table>
<tr><td>
Claude Code · Claude Desktop · Claude Science · Codex · Gemini CLI · Antigravity CLI · OpenCode · OpenChamber · MiMo Code · DevEco Code · Pi · oh-my-pi · StepCode · MothX · PenguinHarness · Aside · OmO · Prime Agent · Goose · Cursor CLI · Cursor Private Inference · Zed · VS Code Chat · VS Code Insiders · VSCodium Chat · Zoo Code · JetBrains Air · Air (JetBrains IDEs) · Copilot (JetBrains) · Copilot CLI · Crush · DeepSeek Harness · Reasonix Studio · Command Code · fx · Devin · Hermes Agent · Mister Morph · Kimi Code · jcode · Qwen Code · Muse Code · Empryo · MiniMax Code · Droid · Cline · Qoder · Qoder CN · Grok Build · Grok App · ZCode · WorkBuddy · WorkBuddy AI · CodeBuddy · Pencil · OpenPencil · OpenBot · NewMax · LiveAgent · Raycast · Kiro Crew · OpenMausBot · T3 Code · OpenHanako · AtomCode · Snow CLI · Alma · Cindy · Lody · AionUi · Cherry Studio · Ante · AstrBot · QwenPaw · OpenClaw
Claude Code · Claude Desktop · Claude Science · Codex · Gemini CLI · Antigravity CLI · OpenCode · OpenChamber · MiMo Code · DevEco Code · Pi · oh-my-pi · StepCode · MothX · PenguinHarness · Aside · OmO · Prime Agent · Goose · Cursor CLI · Cursor Private Inference · Zed · VS Code Chat · VS Code Insiders · VSCodium Chat · Zoo Code · JetBrains Air · Air (JetBrains IDEs) · Copilot (JetBrains) · Copilot CLI · Crush · DeepSeek Harness · Reasonix Studio · Command Code · fx · Devin · Hermes Agent · Mister Morph · Kimi Code · jcode · Qwen Code · Muse Code · Empryo · nanobot · MiniMax Code · Droid · Cline · Qoder · Qoder CN · Grok Build · Grok App · ZCode · WorkBuddy · WorkBuddy AI · CodeBuddy · Pencil · OpenPencil · OpenBot · NewMax · LiveAgent · Raycast · Kiro Crew · OpenMausBot · T3 Code · OpenHanako · AtomCode · Snow CLI · Alma · Cindy · Lody · AionUi · Cherry Studio · Ante · AstrBot · QwenPaw · OpenClaw
</td></tr>
</table>
+1
View File
@@ -128,6 +128,7 @@ line; agents connected to magpie lose it when it quits.
| Qwen Code | `~/.qwen/settings.json` (`$QWEN_HOME`) | model (magpie's models as `modelProviders.openai` entries on a `MAGPIE_QWEN_API_KEY` env var; settings.model; `security.auth.selectedType` openai while wired) |
| Muse Code | `~/.config/muse/settings.json` (`$XDG_CONFIG_HOME`) | model (endpoint_transport to the gateway, auth none; magpie's models in Muse's list) |
| Empryo | `~/.empryo/config.json` | defaultModel (a `magpie` provider at the gateway in `providers`) |
| nanobot | `~/.nanobot/config.json` | model (`agents.defaults`: provider `magpie`, model `magpie/<id>` and its context window; a `magpie` provider at the gateway in `providers`. A `modelPreset` that would go over it is stashed and put back on off. Its gateway and WebUI take a change at their next reply) |
| Ante | `~/.ante/catalog.json` and `settings.json` (`$ANTE_HOME`) | provider, model (a `magpie` provider on OpenAiCompatible, with no auth of magpie's: the gateway lets this machine in with any token and Ante counts a provider with none as authenticated; magpie's models in Ante's model picker, and Ante started on magpie, which is what its settings' `provider` decides) |
| AstrBot | `data/cmd_config.json` under `$ASTRBOT_ROOT`, else `~/.astrbot` (the desktop app's) | model (a `magpie` entry in `provider_sources` and magpie's models in `provider`, the user's own entries kept; the default chat model in `agent_runner.config.model.provider_id`, or `provider_settings.default_provider_id` on AstrBot before 4.28's agent runner; restart AstrBot after connecting; Docker installs aren't reached) |
| QwenPaw | each agent's `agent.json` in its workspace (`~/.qwenpaw/workspaces/<agent>`, the agents listed in `config.json`), under `$QWENPAW_WORKING_DIR`, else a legacy `~/.copaw`, else `~/.qwenpaw` | model (a `magpie` custom provider in `providers/custom/magpie.json` under QwenPaw's secret folder, `$QWENPAW_SECRET_DIR` or `~/.qwenpaw.secret`, OpenAI Chat at the gateway with magpie's models; the agent's `active_model` set to it, what was there put back on Disconnect; one row per agent, `qwenpaw` the default and `qwenpaw#<id>` the others; an agent on an ACP backend isn't listed; restart QwenPaw after the first connect), effort (the agent's `thinking_level`; magpie's models with reasoning levels are declared `thinking_param_style: "effort"` so QwenPaw applies it) |
+1
View File
@@ -123,6 +123,7 @@ something else shows up as drift.
- Claude Code's tool search (`ENABLE_TOOL_SEARCH`, `claudeSearchEnv` in [`claude.go`](../../internal/agent/claude.go)) is written `"true"` while Claude Code is routed through magpie. On, MCP tools are named in a reminder and loaded by `ToolSearch` when the model needs them, not sent whole on every request. Claude Code before 2.1.304 keeps it off behind an `ANTHROPIC_BASE_URL` other than Anthropic's, so the MCP router's tools all went on each request (cybercaius on Discord: 245 tools, 124K tokens of a 341K context; 2.1.290 through a sandbox gateway sent 242,346 bytes of tools, 27,443 with it on); 2.1.304 and later turn it on there themselves, and `"true"` also keeps it on in a conversation begun without it. The gateway carries deferred tools to every upstream (`Tool.Deferred`, `withoutDeferredTools`). magpie's value is kept apart in the stash (`claude.tool_search`); a value the user set, an empty one too, is theirs; it goes when Claude Code is taken off magpie (`desktopOnly`, `unroute`; `TestClaudeToolSearchOn`). T3 Code's magpie instance carries `"true"` in its environment unless the user gave it a value there (`TestT3CodeToolSearchOn`).
- Claude Desktop's Code tab gets tool search only with Desktop's own `toolSearchEnabled` policy on (3p only, off by default). Off, Desktop 2.7032 (`Ztr` "off") starts Claude Code with `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1`, and Claude Code (2.1.312, 2.1.316: `oae` returns "standard") then keeps tool search off whatever `ENABLE_TOOL_SEARCH` says, so every MCP tool went whole on each request (bigcat1800 on Discord: 13 MCP servers, ~162K tokens; a sandbox CLI with 60 MCP tools sent 83 tools, 205KB). On, with the gateway provider and a bundled Claude Code of 2.1.247 or later, Desktop hands the CLI `ENABLE_TOOL_SEARCH=force` as a managed setting and the same CLI sent 13 tools, MCP ones behind `ToolSearch`, 56KB, asking only `tool-search-tool-2025-10-19` of the betas. magpie's profile gets `toolSearchEnabled: true` once, on a switch on and from Sync, as `claudeAiImport` is (`desktopSeedToolSearch`, `desktopSeedOnce`, mark `claude-desktop.tool-search`): a value the user set, false too, or took away since, stays theirs (`TestClaudeDesktopTurnsOnToolSearch`). A profile the user applied for magpie's gateway (`desktopAppliedGateway`) is not written.
- OpenMausBot (`openmausbot.go`) runs each bot on an engine from `instances` in `~/.openmausbot/config.json` (`$OMB_DATA_DIR`, `server/config.ts` in its source). magpie writes the `magpie` engine as OpenMausBot's own Claude endpoint (`newClaudeEndpoint`, `claude-endpoints.ts`): driver `claudeAgent`, access `custom`, `config.configDir` under `providers/magpie` so OpenMausBot starts Claude Code with its own `CLAUDE_CONFIG_DIR` and strips account keys the engine doesn't set (`claudeEnvironment`, `claude.ts`), `ANTHROPIC_BASE_URL`, `ANTHROPIC_AUTH_TOKEN` and `ANTHROPIC_API_KEY` at the gateway, and magpie's models as `config.endpointModels`, kept to the ids OpenMausBot's `CLAUDE_MODEL_ID` accepts (one bad id makes it refuse the whole engine). A non-empty `instances` is the whole fleet, so with none saved magpie writes OpenMausBot's `DEFAULT_FLEET` beside it (`ombFleet`, stashed as `openmausbot.fleet`) and takes it out again on off if the user hasn't changed it (`TestOpenMausBotFleetChanged`). The name, a model picked from the list, other env and a `cli` are the user's. OpenMausBot reads the file once at start and writes back the fleet it holds whenever an engine is edited in it, so the switch is refused while it runs (`errOMBRunning`; not checked on Windows) and the notice asks to quit it first. That write-back, and an edit of magpie's engine there (`updateClaudeEndpoint` keeps only the model picked and its tiers), leave `endpointModels` without models picked in magpie, and no catalog change follows to sync it again: while magpie serves, `KeepOpenMausBotListed` runs the sync every 30 seconds when the saved list differs from magpie's (`ombListStale`; maxleebeta on Discord, 11-08: Antigravity's models missing from its search). A copy started before magpie's last change to the engine (`ombPart`: the gateway, the first model and the list) offers the row's Restart (`restartApps`, `OpenMausBot.app` and `OpenMausBot.exe`). Codex bots use `~/.codex`, which magpie's Codex wiring already covers.
- nanobot (`nanobot.go`, HKUDS/nanobot) answers with `agents.defaults.model`, asked of `agents.defaults.provider`, in `~/.nanobot/config.json` (`config/loader.py`), unless `agents.defaults.modelPreset` names a preset, which goes over both (`Config.resolve_preset`). Any key under `providers` that isn't one of nanobot's own is an OpenAI-compatible endpoint, and a model `<key>/<id>` is sent to it as `<id>` (`create_dynamic_spec`). magpie writes `providers.magpie` (`apiBase` at the gateway's `/v1`, its key, and `extraHeaders` with `User-Agent: nanobot`, by which the gateway tells its requests) and sets provider `magpie`, model `magpie/<id>` and `contextWindowTokens` to the window magpie knows. What the user had in those keys and a `modelPreset` (either spelling: nanobot reads camelCase and snake_case alike) are stashed and put back on off, and `providers.magpie` goes then. nanobot's gateway watches the file and takes a change at its next turn (`config/watcher.py`); `nanobot agent` reads it once.
- T3 Code runs a thread on the harness of the provider instance its model is picked under, so magpie writes two instances (karissasel_ on X: only Claude Code could be picked). `magpie` runs Claude Code, as above. `magpie-codex` ("magpie · Codex", `t3CodexJSON` in [`t3code.go`](../../internal/agent/t3code.go)) runs Codex: its `config.launchArgs`, which T3 hands to `codex app-server` and the `-c` pairs of to `codex exec`, are Codex's own overrides, making `magpie` its `model_provider` (the same table `codex.go` writes) and `magpie-codex-models.json`, written beside settings.json from `codexcat`, its `model_catalog_json`. Each value is quoted for T3's `tokenizeCliArgs` (`t3Arg`; `TestT3CodeCodexInstance` reads them back with a port of it). `~/.codex/config.toml` is not written, and a `binaryPath` or `homePath` the user gave T3's own `codex` instance is carried over. The name, on/off and unknown keys are the user's; the launch args and catalog are magpie's, and Check says when the launch args no longer reach the gateway (`t3CodexOff`). An older Claude-only wiring gets the Codex instance on its next Sync once; one the user removed stays removed (`t3code.codex` in the stash) until magpie is turned on for T3 again (`TestT3CodeCodexInstanceAddedOnce`).
- Claude Code takes one window (`CLAUDE_CODE_MAX_CONTEXT_TOKENS`, `claudeContextEnv` in [`claude.go`](../../internal/agent/claude.go)) for every model it doesn't know. Claude Code alone on magpie is told its main model's (`claudeWindow`), and a model picked in its `/model` (magpie's `modelPicker`) runs at that one value. Beside a main that is one of Claude's own models (or a group of them), with no tier that isn't, nothing is told, so a model picked there ran at Claude Code's own 200K: a routing group of a 500K GPT and a 1M Claude did (young02036 on Discord). Then (`pickerApart`) the `/model` rows (`pickerRefs`) count as tiers do in the layout below. While Claude Desktop is on magpie too, its Code tab runs Claude Code on the same `~/.claude/settings.json` with every model Desktop lists, so magpie tells it the largest window of those and of Claude Code's own models (its main, tiers and `/model` rows), and holds each model below it to its own with `modelSettings.<id>.autoCompactWindow` (`claudePlan` in [`claude_budget.go`](../../internal/agent/claude_budget.go), #2025: the least held a 1M model to 131K). A model handed by a `[1m]` id (Desktop's under `DesktopLongest`, or Claude Code's own) counts by its 1M too, so it still runs at 1M when Claude Code stops taking the id for 1M (the 1M beta turned away once, `CLAUDE_CODE_DISABLE_1M_CONTEXT`); left out, a 1M model beside a 272K GPT was told 272K (dumplings on Discord). Claude Code 2.1.296 matches that key by the id it was handed, lowercased and without `[1m]`; it comes before the top-level `autoCompactWindow`, which serves a model without one. `CLAUDE_CODE_AUTO_COMPACT_WINDOW` would take precedence over both, so in this mode magpie's working window goes in the top-level `autoCompactWindow` instead, and an entry is written only where a model's window or its own threshold differs from what it would run at without one. magpie's entries and top-level value are stashed (`claude.model_budgets`, `claude.compact_default`) and go when Desktop leaves magpie; the user's own entries, top-level value and variables stay, a user's entry past its model's window (or `auto`) holds the largest to that window, and with a `CLAUDE_CODE_AUTO_COMPACT_WINDOW` of the user's the least window is told as before. A Code tab session whose environment host is WSL runs on the distro's Claude Code, which reads `${CLAUDE_CONFIG_DIR:-$HOME/.claude}` there (Desktop 4.29.0's remote probe) and not Windows' file, so each `claude@wsl:<distro>` is told the same while Windows' Desktop is on magpie (`desktopOn`), on magpie itself or not; it read 200K for a 500K group before (young02036 on Discord).
- Claude Code is told what each of magpie's models can do in `CLAUDE_CODE_MODEL_CAPABILITIES` (`claudeCapsEnv`, `claudeCapabilities` in [`claude.go`](../../internal/agent/claude.go)): `<model>=effort[,xhigh_effort][,max_effort]` for those it is shown, and, while Claude Desktop is on magpie, for Desktop's `mythos-magpie-<number>` ids its Code tab hands it. A Claude model Claude Code knows gets no more than Claude Code gives it (Opus and Sonnet 4.6: no xhigh), and one with no known levels isn't named. A model that reaches max without xhigh (GLM-5.3 at low/high/max, DeepSeek V4 at high/max) is said to have xhigh too: the gateway runs xhigh at max for it (`fitEffort`), and Claude Code 2.1.299 turns Ultracode down without `xhigh_effort` ("Ultracode isn't available on …"), which in Desktop is the Ultracode level and dynamic workflows (leesunrise2364 on Discord; `TestClaudeModelCapabilities`). A value of the user's is left alone.
+1
View File
@@ -293,6 +293,7 @@ func onMachine(home, cfg string) []*Agent {
qwen(home),
muse(cfg),
empryo(home),
nanobot(home),
ante(home),
astrbot(home),
qwenpaw(home),
+1 -1
View File
@@ -139,7 +139,7 @@ func TestPiConnectedBeforeStaysConnected(t *testing.T) {
// a provider magpie didn't put there as the user's, as Pi does.
func TestHandWiredMagpieProviderSiblings(t *testing.T) {
ids := []string{"agy", "opencode", "openchamber", "mimocode", "deveco", "pi", "aside", "omo", "prime-agent", "goose", "zed", "vscode",
"crush", "dsh", "ds-bot", "commandcode", "fx", "omp", "hermes", "morph", "kimi", "empryo", "minimax-code", "droid",
"crush", "dsh", "ds-bot", "commandcode", "fx", "omp", "hermes", "morph", "kimi", "empryo", "nanobot", "minimax-code", "droid",
"qoder", "qoder-cn", "grok", "atomcode", "cline", "snow"}
for _, id := range ids {
t.Run(id, func(t *testing.T) {
+267
View File
@@ -0,0 +1,267 @@
package agent
// nanobot (HKUDS/nanobot, `pip install nanobot-ai`; Niapyaya on X) is a
// personal AI assistant that answers in chat apps, its CLI and its WebUI.
// It keeps its settings in ~/.nanobot/config.json (config/home.py,
// config/loader.py; read at 5c72ced, 0.4.1), plain JSON its pydantic models
// read with camelCase or snake_case keys alike (config_base.Base).
//
// The model it answers with is agents.defaults.model, asked of
// agents.defaults.provider ("auto" picks one by the model's name), unless
// agents.defaults.modelPreset names one of modelPresets, which then goes
// over both (Config.resolve_preset). Any key under providers that isn't one
// of its own is an OpenAI-compatible endpoint of the user's
// (ProvidersConfig.convert_extra_providers) at its apiBase, sent apiKey and
// extraHeaders, and a model "<that key>/<id>" is sent to it as <id>
// (create_dynamic_spec's strip_model_prefixes).
//
// So magpie adds providers.magpie at the gateway's /v1, with its key and a
// User-Agent of nanobot's name (the OpenAI SDK's otherwise, which tells it
// from no one), and sets agents.defaults to provider magpie, model
// magpie/<catalog id> and the window magpie knows the model to take. What
// the user had there, and a modelPreset that would go over it, is stashed
// and put back when magpie steps out; providers.magpie goes again then.
// The user's other providers, presets and keys stay as they are.
//
// nanobot's gateway (`nanobot gateway`, the WebUI's) watches the file and
// takes a change at its next turn (config/watcher.py,
// AgentLoop.invalidate_runtime_config); `nanobot agent` reads it once.
import (
"strconv"
"strings"
"github.com/tidwall/gjson"
"github.com/yetone/magpie/internal/edit"
)
// nanobotUA is the User-Agent magpie has nanobot send, in its provider's
// extraHeaders.
const nanobotUA = "nanobot"
// nanobotDefaults are the keys under agents.defaults magpie writes or takes
// out, by the name nanobot writes them with (camelCase), and their
// snake_case spellings, which nanobot reads as well.
var nanobotDefaults = []struct{ key, snake string }{
{"provider", "provider"},
{"model", "model"},
{"contextWindowTokens", "context_window_tokens"},
{"modelPreset", "model_preset"},
}
func nanobot(home string) *Agent { return nanobotAt(here(home)) }
// nanobotIn is nanobot in a WSL distro (see wsl.go).
func nanobotIn(at place) *Agent { return nanobotAt(at) }
// nanobotAt is nanobot with its home at at.home, reaching the gateway as at
// does.
func nanobotAt(at place) *Agent {
dir := at.join(".nanobot")
path := at.join(".nanobot", "config.json")
key := "nanobot:" + path + ":"
// keyNew marks a file magpie made, which goes again once magpie's
// provider and model are taken out of it and nothing is left
keyNew := key + "new"
// get is a key of agents.defaults as written, either spelling
get := func(k, snake string) (string, bool) {
raw, err := edit.Read(path)
if err != nil {
return "", false
}
d := gjson.GetBytes(raw, "agents.defaults")
for _, n := range []string{k, snake} {
if r := d.Get(gjson.Escape(n)); r.Exists() {
return r.String(), true
}
}
return "", false
}
model := func() string { v, _ := get("model", "model"); return v }
provider := func() string { v, _ := get("provider", "provider"); return v }
// ours is magpie's provider entry, "" where there is none
ours := func() string {
raw, err := edit.Read(path)
if err != nil {
return ""
}
return gjson.GetBytes(raw, "providers."+magpieID).Raw
}
// on: magpie's — the model one of magpie's, asked of its provider
on := func() bool {
ref, ok := strings.CutPrefix(model(), magpieID+"/")
return ok && isMagpie(ref) && provider() == magpieID
}
// window is the context magpie knows ref to take, 0 when unknown
window := func(ref string) int {
for _, m := range sharedModels("nanobot") {
if m.ID == ref {
return m.Context
}
}
return 0
}
// dels are the paths of agents.defaults' keys, both spellings
dels := func() []string {
var out []string
for _, k := range nanobotDefaults {
out = append(out, "agents.defaults."+k.key)
if k.snake != k.key {
out = append(out, "agents.defaults."+k.snake)
}
}
return out
}
// prune takes out agents.defaults, agents and providers where magpie
// left them empty, and the file where magpie made it and left nothing
prune := func(made bool) error {
raw, err := edit.Read(path)
if err != nil {
return nil
}
var del []string
if d := gjson.GetBytes(raw, "agents.defaults"); d.IsObject() && len(d.Map()) == 0 {
del = append(del, "agents.defaults")
if a := gjson.GetBytes(raw, "agents"); len(a.Map()) == 1 {
del = append(del, "agents")
}
}
if p := gjson.GetBytes(raw, "providers"); p.IsObject() && len(p.Map()) == 0 {
del = append(del, "providers")
}
if len(del) > 0 {
if err := edit.DelJSON(path, del...); err != nil {
return err
}
}
if made {
if raw, err := edit.Read(path); err == nil && len(gjson.ParseBytes(raw).Map()) == 0 {
return edit.Remove(path)
}
}
return nil
}
// restore takes magpie out: its provider, and agents.defaults back to
// what the user had; then v, if any, as the model
restore := func(v string) error {
made := unstash(keyNew) != ""
var kvs []edit.KV
for _, k := range nanobotDefaults {
was := unstash(key + k.key)
switch {
case was == "":
case k.key == "contextWindowTokens":
if n, err := strconv.Atoi(was); err == nil {
kvs = append(kvs, edit.KV{Path: "agents.defaults." + k.key, Value: n})
}
default:
kvs = append(kvs, edit.KV{Path: "agents.defaults." + k.key, Value: was})
}
}
if v != "" {
kvs = append(kvs, edit.KV{Path: "agents.defaults.model", Value: v})
}
if !isFile(path) {
return nil
}
if err := edit.DelJSON(path, append(dels(), "providers."+magpieID)...); err != nil {
return err
}
if len(kvs) > 0 {
if err := edit.SetJSON(path, kvs...); err != nil {
return err
}
}
return prune(made)
}
return atomic(&Agent{
ID: "nanobot", Name: "nanobot", Icon: "nanobot-color", Aliases: []string{"nanobot-ai"}, Spelled: prefixed, NoNames: true,
UA: []string{nanobotUA},
// no Bin: nanobot is other tools' name too; ~/.nanobot is made by
// `nanobot onboard` and its first run
Dir: dir, Path: path,
Notice: func() string {
if Running(`(^|/)nanobot( |$)`) {
return noticeNanobot.String()
}
return ""
},
Check: func() string {
if !on() {
return ""
}
raw := ours()
if raw == "" {
return "nanobot's magpie provider (config.json) is gone, so it no longer reaches magpie"
}
return wiringOff("nanobot", path, func(k string) (string, bool) {
r := gjson.Get(raw, k)
return r.String(), r.Exists()
}, "apiBase", at.v1())
},
Fields: []Field{{
Key: "model", Label: "model",
Get: model,
Set: func(v string) error {
if ref, ok := strings.CutPrefix(v, magpieID+"/"); ok && isMagpie(ref) {
if !on() && ours() == "" {
// what the user had, unless magpie stashed it already
kv := map[string]string{}
for _, k := range nanobotDefaults {
forget(key + k.key)
kv[key+k.key], _ = get(k.key, k.snake)
}
forget(keyNew)
if !isFile(path) {
kv[keyNew] = "1"
}
stash(kv)
}
if err := edit.DelJSON(path, dels()...); err != nil && isFile(path) {
return err
}
kvs := []edit.KV{
{Path: "providers." + magpieID, Value: map[string]any{
"apiKey": at.gwKey(),
"apiBase": at.v1(),
"extraHeaders": map[string]string{"User-Agent": nanobotUA},
}},
{Path: "agents.defaults.provider", Value: magpieID},
{Path: "agents.defaults.model", Value: v},
}
if n := window(ref); n > 0 {
kvs = append(kvs, edit.KV{Path: "agents.defaults.contextWindowTokens", Value: n})
}
return edit.SetJSON(path, kvs...)
}
if on() || ours() != "" {
return restore(v)
}
if v == "" {
if !isFile(path) {
return nil
}
return edit.DelJSON(path, "agents.defaults.model")
}
return edit.SetJSON(path, edit.KV{Path: "agents.defaults.model", Value: v})
},
Options: func(cur map[string]string) []Option {
var own []Option
if c := cur["model"]; c != "" && !usesMagpie(c) {
id := c
if _, rest, ok := strings.Cut(c, "/"); ok {
id = rest
}
own = append(own, Option{Value: c, Icon: modelIcon("", id)})
}
return withVia(group("nanobot", own), "nanobot", magpieID+"/")
},
}},
}, path)
}
// what nanobot says after a change (notice.go)
var (
noticeNanobot = newNotice("nanobot's gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.")
)
+139
View File
@@ -0,0 +1,139 @@
package agent
import (
"encoding/json"
"os"
"path/filepath"
"reflect"
"strings"
"testing"
)
func TestNanobot(t *testing.T) {
home, _ := museHome(t)
path := filepath.Join(home, ".nanobot", "config.json")
os.MkdirAll(filepath.Dir(path), 0o755)
// a user's own, as nanobot's onboard writes it: an endpoint of theirs
// named with a slash in its model, a preset that would go over the
// model, the window in snake_case (nanobot reads both), and a channel
orig := `{
"agents": {"defaults": {"workspace": "~/.nanobot/workspace", "model": "relay/glm-4.6", "provider": "relay", "context_window_tokens": 65536, "modelPreset": "fast"}},
"modelPresets": {"fast": {"model": "openai/gpt-5-mini", "provider": "openai"}},
"providers": {"relay": {"apiKey": "sk-relay", "apiBase": "https://relay.example/v1"}},
"channels": {"telegram": {"enabled": true}}
}
`
os.WriteFile(path, []byte(orig), 0o644)
read := func() map[string]any {
t.Helper()
var m map[string]any
b, _ := os.ReadFile(path)
if err := json.Unmarshal(b, &m); err != nil {
t.Fatalf("%v\n%s", err, b)
}
return m
}
var want map[string]any
json.Unmarshal([]byte(orig), &want)
a := nanobot(home)
if a.Path != path {
t.Fatalf("path: %s", a.Path)
}
f := a.Field("model")
if f.Get() != "relay/glm-4.6" || a.Check() != "" {
t.Fatalf("own: %q %q", f.Get(), a.Check())
}
var vals []string
for _, o := range f.Options(a.Values()) {
vals = append(vals, o.Value)
}
if !strings.Contains(strings.Join(vals, " "), "relay/glm-4.6 magpie/deepseek/pro") {
t.Fatalf("options: %v", vals)
}
for range 2 { // twice: what the user had is stashed once
if err := f.Set("magpie/deepseek/pro"); err != nil {
t.Fatal(err)
}
}
m := read()
ps := m["providers"].(map[string]any)
if !reflect.DeepEqual(ps["relay"], want["providers"].(map[string]any)["relay"]) {
t.Fatalf("user's provider: %v", ps)
}
mp, _ := ps["magpie"].(map[string]any)
if mp["apiBase"] != gatewayV1() || mp["apiKey"] == nil ||
!reflect.DeepEqual(mp["extraHeaders"], map[string]any{"User-Agent": "nanobot"}) {
t.Fatalf("magpie provider: %v", mp)
}
d := m["agents"].(map[string]any)["defaults"].(map[string]any)
if d["model"] != "magpie/deepseek/pro" || d["provider"] != "magpie" || d["workspace"] != "~/.nanobot/workspace" {
t.Fatalf("defaults: %v", d)
}
// neither the preset nor the user's window may go over magpie's model
for _, k := range []string{"modelPreset", "model_preset", "context_window_tokens"} {
if _, ok := d[k]; ok {
t.Fatalf("%s left: %v", k, d)
}
}
if !reflect.DeepEqual(m["modelPresets"], want["modelPresets"]) || !reflect.DeepEqual(m["channels"], want["channels"]) {
t.Fatalf("other keys: %v", m)
}
if f.Get() != "magpie/deepseek/pro" || a.Check() != "" {
t.Fatalf("on: %q %q", f.Get(), a.Check())
}
// magpie's provider pointed elsewhere
b, _ := os.ReadFile(path)
os.WriteFile(path, []byte(strings.Replace(string(b), gatewayV1(), "http://elsewhere/v1", 1)), 0o644)
if !strings.Contains(a.Check(), "apiBase") {
t.Fatalf("check: %q", a.Check())
}
os.WriteFile(path, b, 0o644)
// stepping out puts back what the user had; the window comes back as a
// number, under the camelCase name nanobot writes
if err := f.Set(""); err != nil {
t.Fatal(err)
}
m = read()
d = m["agents"].(map[string]any)["defaults"].(map[string]any)
if d["model"] != "relay/glm-4.6" || d["provider"] != "relay" || d["modelPreset"] != "fast" ||
d["contextWindowTokens"] != float64(65536) || d["workspace"] != "~/.nanobot/workspace" {
t.Fatalf("restore defaults: %v", d)
}
if _, ok := m["providers"].(map[string]any)["magpie"]; ok {
t.Fatalf("magpie provider left: %v", m["providers"])
}
// a model of the user's own while magpie's is on steps magpie out too
f.Set("magpie/deepseek/flash")
if err := f.Set("relay/glm-4.5"); err != nil {
t.Fatal(err)
}
m = read()
d = m["agents"].(map[string]any)["defaults"].(map[string]any)
if d["model"] != "relay/glm-4.5" || d["provider"] != "relay" || d["modelPreset"] != "fast" {
t.Fatalf("own over magpie: %v", d)
}
if _, ok := m["providers"].(map[string]any)["magpie"]; ok {
t.Fatalf("magpie provider left: %v", m["providers"])
}
// a file magpie made goes again
os.Remove(path)
if err := f.Set("magpie/deepseek/flash"); err != nil {
t.Fatal(err)
}
if f.Get() != "magpie/deepseek/flash" {
t.Fatalf("new: %q", f.Get())
}
if err := f.Set(""); err != nil {
t.Fatal(err)
}
if _, err := os.Stat(path); !os.IsNotExist(err) {
b, _ := os.ReadFile(path)
t.Fatalf("made file left: %s", b)
}
}
+1 -1
View File
@@ -13,7 +13,7 @@ import (
// own deepseek/deepseek-v4-pro).
func TestOwnProviderNamedAsMagpies(t *testing.T) {
ids := []string{"agy", "opencode", "openchamber", "mimocode", "deveco", "pi", "aside", "omo", "prime-agent", "goose", "zed", "vscode",
"crush", "dsh", "ds-bot", "commandcode", "fx", "omp", "hermes", "morph", "kimi", "empryo", "minimax-code", "droid",
"crush", "dsh", "ds-bot", "commandcode", "fx", "omp", "hermes", "morph", "kimi", "empryo", "nanobot", "minimax-code", "droid",
"qoder", "qoder-cn", "grok", "atomcode", "cline", "snow", "qwenpaw"}
for _, id := range ids {
t.Run(id, func(t *testing.T) {
+3
View File
@@ -683,6 +683,9 @@ var wslKinds = []wslKind{
}},
{id: "empryo", name: "Empryo", dir: ".empryo", bin: "empryo", in: empryoIn,
restart: newNotice("{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.")},
// no bin: nanobot is other tools' name too
{id: "nanobot", name: "nanobot", dir: ".nanobot", in: nanobotIn,
restart: newNotice("{agent} in WSL {distro}: its gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.")},
// Ante ships macOS and Linux builds alone, and suggests WSL on Windows,
// so a Windows machine's Ante is usually this one
{id: "ante", name: "Ante", dir: ".ante", bin: "ante", in: anteIn,
+1 -1
View File
@@ -187,7 +187,7 @@ code { font: var(--code-style, normal) var(--code-weight, 400) 11.5px var(--code
they read a size bigger than a line logo beside them, so they are drawn at
the size Alma's and Cindy's tiles have of their own. icon-tile.test.cjs
measures every file in icons/ and keeps this list whole. */
.ic:is([data-icon="aihubmix-color"], [data-icon="atomcode"], [data-icon="cherryin-color"], [data-icon="codebuddy-color"], [data-icon="codex-color"], [data-icon="crush"], [data-icon="geminicli-color"], [data-icon="hanako"], [data-icon="hunyuan-color"], [data-icon="kilo"], [data-icon="kimi-code-desktop"], [data-icon="kiro-color"], [data-icon="lody"], [data-icon="mistermorph-color"], [data-icon="mlx-serve"], [data-icon="monica-color"], [data-icon="penguin-color"], [data-icon="phala-color"], [data-icon="pipellm-color"], [data-icon="qoder"], [data-icon="snow"], [data-icon="targon-color"], [data-icon="typesafe"], [data-icon="workbuddy-color"], [data-icon="yuanbao-color"], [data-icon="zcode"], [data-icon="zoo-code"]) > * { width: 82%; height: 82%; }
.ic:is([data-icon="aihubmix-color"], [data-icon="atomcode"], [data-icon="cherryin-color"], [data-icon="codebuddy-color"], [data-icon="codex-color"], [data-icon="crush"], [data-icon="geminicli-color"], [data-icon="hanako"], [data-icon="hunyuan-color"], [data-icon="kilo"], [data-icon="kimi-code-desktop"], [data-icon="kiro-color"], [data-icon="lody"], [data-icon="mistermorph-color"], [data-icon="mlx-serve"], [data-icon="monica-color"], [data-icon="nanobot-color"], [data-icon="penguin-color"], [data-icon="phala-color"], [data-icon="pipellm-color"], [data-icon="qoder"], [data-icon="snow"], [data-icon="targon-color"], [data-icon="typesafe"], [data-icon="workbuddy-color"], [data-icon="yuanbao-color"], [data-icon="zcode"], [data-icon="zoo-code"]) > * { width: 82%; height: 82%; }
.ic.generic { color: var(--muted); }
/* maskSpan's shelf: a hidden user of every mask picture loaded, so a logo drawn again paints at once (#1847) */
.mask-shelf { position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
+10
View File
@@ -4578,6 +4578,7 @@ const I18N = {
"Devin reads its model at start-up — restart open Devin sessions to use this.": "Devin 启动时读取模型,需重启已打开的 Devin 会话才会生效。",
"Droid reads its settings at start-up — restart open droid sessions to use this.": "Droid 启动时读取设置,需重启已打开的 droid 会话才会生效。",
"Empryo reads its config at start-up — restart open empryo sessions to use this.": "Empryo 启动时读取配置,需重启已打开的 empryo 会话才会生效。",
"nanobot's gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.": "nanobot 的 gateway 和 WebUI 会在下一次回复时用上它;已打开的 `nanobot agent` 对话需重启才会生效。",
"Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.": "Gemini CLI 启动时读取设置,需重启已打开的 gemini 会话才能看到。",
"Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.": "Goose 启动时加载供应商,需退出并重新打开 Goose(以及已打开的 goose 会话)才能使用 magpie 的模型。",
"Grok Build reads its settings at start-up — restart open grok sessions to use this.": "Grok Build 启动时读取设置,需重启已打开的 grok 会话才会生效。",
@@ -4647,6 +4648,7 @@ const I18N = {
"{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取模型目录,需重启已打开的 ante 会话才会生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取配置,需重启已打开的 dsh 会话才会生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取配置,需重启已打开的 empryo 会话才会生效。",
"{agent} in WSL {distro}: its gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.": "WSL {distro} 中的 {agent}:它的 gateway 和 WebUI 会在下一次回复时用上它;已打开的 `nanobot agent` 对话需重启才会生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取配置,需重启已打开的 mimo 会话才会生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this.": "WSL {distro} 中的 {agent} 启动时读取配置,需重启已打开的 opencode 会话才会生效。",
"{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "WSL {distro} 中的 {agent} 在会话开始时读取模型,需重启已打开的 codebuddy 会话或在其中运行 /clear 才会生效。",
@@ -9387,6 +9389,7 @@ const I18N = {
"Devin reads its model at start-up — restart open Devin sessions to use this.": "Devin 啟動時讀取模型,需重啟已打開的 Devin 會話才會生效。",
"Droid reads its settings at start-up — restart open droid sessions to use this.": "Droid 啟動時讀取設定,需重啟已打開的 droid 會話才會生效。",
"Empryo reads its config at start-up — restart open empryo sessions to use this.": "Empryo 啟動時讀取設定,需重啟已打開的 empryo 會話才會生效。",
"nanobot's gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.": "nanobot 的 gateway 和 WebUI 會在下一次回覆時用上它;已開啟的 `nanobot agent` 對話需重啟才會生效。",
"Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.": "Gemini CLI 啟動時讀取設定,需重啟已打開的 gemini 會話才能看到。",
"Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.": "Goose 啟動時載入供應商,需退出並重新打開 Goose(以及已打開的 goose 會話)才能使用 magpie 的模型。",
"Grok Build reads its settings at start-up — restart open grok sessions to use this.": "Grok Build 啟動時讀取設定,需重啟已打開的 grok 會話才會生效。",
@@ -9456,6 +9459,7 @@ const I18N = {
"{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取模型目錄,需重啟已打開的 ante 會話才會生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 dsh 會話才會生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 empryo 會話才會生效。",
"{agent} in WSL {distro}: its gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.": "WSL {distro} 中的 {agent}:它的 gateway 和 WebUI 會在下一次回覆時用上它;已開啟的 `nanobot agent` 對話需重啟才會生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 mimo 會話才會生效。",
"{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this.": "WSL {distro} 中的 {agent} 啟動時讀取設定,需重啟已打開的 opencode 會話才會生效。",
"{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "WSL {distro} 中的 {agent} 在會話開始時讀取模型,需重啟已打開的 codebuddy 會話或在其中執行 /clear 才會生效。",
@@ -14198,6 +14202,7 @@ const I18N = {
"Devin reads its model at start-up — restart open Devin sessions to use this.": "Devin は起動時にモデルを読み込みます。反映するには開いている Devin セッションを再起動してください。",
"Droid reads its settings at start-up — restart open droid sessions to use this.": "Droid は起動時に設定を読み込みます。反映するには開いている droid セッションを再起動してください。",
"Empryo reads its config at start-up — restart open empryo sessions to use this.": "Empryo は起動時に設定を読み込みます。反映するには開いている empryo セッションを再起動してください。",
"nanobot's gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.": "nanobot の gateway と WebUI は次の返信からこれを使います。開いている `nanobot agent` のチャットは再起動すると反映されます。",
"Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.": "Gemini CLI は起動時に設定を読み込みます。反映するには開いている gemini セッションを再起動してください。",
"Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.": "Goose は起動時にプロバイダを読み込みます。magpie のモデルを使うには Goose(と開いている goose セッション)を終了して開き直してください。",
"Grok Build reads its settings at start-up — restart open grok sessions to use this.": "Grok Build は起動時に設定を読み込みます。反映するには開いている grok セッションを再起動してください。",
@@ -14267,6 +14272,7 @@ const I18N = {
"{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.": "WSL {distro} の {agent} は起動時にカタログを読み込みます。反映するには開いている ante セッションを再起動してください。",
"{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている dsh セッションを再起動してください。",
"{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている empryo セッションを再起動してください。",
"{agent} in WSL {distro}: its gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.": "WSL {distro} の {agent}:gateway と WebUI は次の返信からこれを使います。開いている `nanobot agent` のチャットは再起動すると反映されます。",
"{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている mimo セッションを再起動してください。",
"{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this.": "WSL {distro} の {agent} は起動時に設定を読み込みます。反映するには開いている opencode セッションを再起動してください。",
"{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "WSL {distro} の {agent} はセッション開始時にモデルを読み込みます。反映するには開いている codebuddy セッションを再起動するか、その中で /clear を実行してください。",
@@ -19009,6 +19015,7 @@ const I18N = {
"Devin reads its model at start-up — restart open Devin sessions to use this.": "Devin liest sein Modell beim Start – offene Devin-Sitzungen neu starten, damit es gilt.",
"Droid reads its settings at start-up — restart open droid sessions to use this.": "Droid liest seine Einstellungen beim Start – offene droid-Sitzungen neu starten, damit es gilt.",
"Empryo reads its config at start-up — restart open empryo sessions to use this.": "Empryo liest seine Konfiguration beim Start – offene empryo-Sitzungen neu starten, damit es gilt.",
"nanobot's gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.": "nanobots Gateway und WebUI übernehmen das bei der nächsten Antwort; einen offenen `nanobot agent`-Chat neu starten, damit es dort gilt.",
"Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.": "Gemini CLI liest seine Einstellungen beim Start – offene gemini-Sitzungen neu starten, um es zu sehen.",
"Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.": "Goose lädt seine Anbieter beim Start – Goose (und offene goose-Sitzungen) beenden und neu öffnen, um magpies Modelle zu nutzen.",
"Grok Build reads its settings at start-up — restart open grok sessions to use this.": "Grok Build liest seine Einstellungen beim Start – offene grok-Sitzungen neu starten, damit es gilt.",
@@ -19078,6 +19085,7 @@ const I18N = {
"{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.": "{agent} in WSL {distro} liest seinen Katalog beim Start – offene ante-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this.": "{agent} in WSL {distro} liest seine Konfiguration beim Start – offene dsh-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.": "{agent} in WSL {distro} liest seine Konfiguration beim Start – offene empryo-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro}: its gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.": "{agent} in WSL {distro}: Gateway und WebUI übernehmen das bei der nächsten Antwort; einen offenen `nanobot agent`-Chat neu starten, damit es dort gilt.",
"{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this.": "{agent} in WSL {distro} liest seine Konfiguration beim Start – offene mimo-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this.": "{agent} in WSL {distro} liest seine Konfiguration beim Start – offene opencode-Sitzungen neu starten, damit es gilt.",
"{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.": "{agent} in WSL {distro} liest sein Modell beim Start einer Sitzung – offene codebuddy-Sitzungen neu starten oder darin /clear ausführen, damit es gilt.",
@@ -19287,6 +19295,7 @@ const NOTICES = [
"Devin reads its model at start-up — restart open Devin sessions to use this.",
"Droid reads its settings at start-up — restart open droid sessions to use this.",
"Empryo reads its config at start-up — restart open empryo sessions to use this.",
"nanobot's gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.",
"Gemini CLI reads its settings at start-up — restart open gemini sessions to see this.",
"Goose loads its providers at start-up — quit and reopen Goose (and open goose sessions) to use magpie's models.",
"Grok Build reads its settings at start-up — restart open grok sessions to use this.",
@@ -19353,6 +19362,7 @@ const NOTICES = [
"{agent} in WSL {distro} reads its catalog at start-up — restart open ante sessions to use this.",
"{agent} in WSL {distro} reads its config at start-up — restart open dsh sessions to use this.",
"{agent} in WSL {distro} reads its config at start-up — restart open empryo sessions to use this.",
"{agent} in WSL {distro}: its gateway and WebUI take this at their next reply; restart an open `nanobot agent` chat to use it there.",
"{agent} in WSL {distro} reads its config at start-up — restart open mimo sessions to use this.",
"{agent} in WSL {distro} reads its config at start-up — restart open opencode sessions to use this.",
"{agent} in WSL {distro} reads its model when a session starts — restart open codebuddy sessions, or run /clear in them, to use this.",
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-2 -22 763 763" fill="none" role="img" aria-label="nanobot"><path d="M229.029 127.134C308.64 112.113 354.143 106.879 379.029 108.134V716.634L272.029 715.634C251.029 715.634 243.029 702.634 201.529 678.134L54.5291 581.634C30.0291 565.134 23.9802 560.075 13.0291 549.134C3.52914 537.634 -1.97086 526.634 3.52914 481.634L28.0291 340.634L29.5291 27.1337C31.0291 -2.36625 53.0291 -6.86625 77.0291 12.6337L229.029 127.134Z" fill="#F4A949" stroke="#F4A949"/><path d="M529.842 126.817C450.231 111.796 404.728 106.562 379.842 107.817V716.317L486.842 715.317C509.342 714.317 570.342 661.817 611.842 637.317L704.342 581.317C728.842 564.817 734.891 559.759 745.842 548.817C755.342 537.317 760.842 526.317 755.342 481.317L730.842 340.317L729.342 26.817C727.842 -2.68287 705.842 -7.18287 681.842 12.3171L529.842 126.817Z" fill="#EF8E30" stroke="#EF8E30"/><path d="M143.342 497.317H1.84164C-6.15857 550.317 22.8417 557.817 56.3419 582.817L143.342 497.317Z" fill="#E27223" stroke="#DF6E22"/><path d="M615.342 496.817H757.001C765.002 549.817 735.842 557.317 702.342 582.317L615.342 496.817Z" fill="#D96016" stroke="#D45F16"/><path d="M379.342 716.317V517.817H288.342C239.842 517.817 243.342 531.817 144.842 640.817L233.342 698.817C245.302 707.847 260.342 717.317 275.342 715.817L379.342 716.317Z" fill="#FBCB89" stroke="#FBCB8A"/><path d="M566.842 382.817C561.842 348.817 509.842 341.317 501.342 382.817V439.317C509.842 477.317 559.342 478.317 566.842 439.317V382.817Z" fill="#B94D0B" stroke="#B5490B"/><path d="M379.342 716.317V517.817H470.342C518.842 517.817 513.342 528.317 611.842 637.317L522.842 698.817C510.881 707.847 495.342 715.817 483.342 715.817L379.342 716.317Z" fill="#F7B066" stroke="#F8B166"/><path d="M258.842 383.199C253.842 349.199 201.842 341.699 193.342 383.199V439.699C201.842 477.699 251.342 478.699 258.842 439.699V383.199Z" fill="#B94D0B" stroke="#B94D0B"/><path d="M439.342 517.817H318.342L379.842 583.317L439.342 517.817Z" fill="#C85513" stroke="#C85513"/><path d="M379.342 583.317V517.817H438.842L379.342 583.317Z" fill="#BA470A" stroke="#B94D0B"/><path d="M367.842 304.817L339.842 109.817C369.864 107.082 387.219 106.437 420.842 109.817L391.342 304.817C382.555 322.184 376.628 321.255 367.842 304.817Z" fill="#D35E14" stroke="#D35E14"/><path d="M446.412 112.822C473.271 116.662 491.893 119.703 529.928 126.325L530.604 126.442L530.284 127.05L529.842 126.817L530.283 127.051C530.283 127.051 530.282 127.054 530.281 127.055C530.279 127.059 530.276 127.064 530.273 127.071C530.265 127.085 530.254 127.107 530.239 127.135C530.209 127.193 530.164 127.279 530.105 127.391C529.986 127.617 529.81 127.951 529.581 128.387C529.122 129.261 528.449 130.543 527.59 132.177C525.872 135.444 523.413 140.12 520.448 145.753C514.519 157.018 506.565 172.113 498.471 187.426C490.377 202.738 482.142 218.27 475.65 230.412C469.165 242.538 464.401 251.316 463.262 253.088C460.97 256.653 457.712 259.067 454.529 259.067C451.263 259.067 448.386 256.547 446.859 250.949C446.467 249.511 446.169 246.271 445.938 241.776C445.705 237.256 445.537 231.406 445.42 224.701C445.186 211.289 445.154 194.441 445.217 177.94C445.279 161.438 445.436 145.281 445.576 133.249C445.647 127.233 445.713 122.248 445.762 118.767C445.786 117.027 445.806 115.662 445.82 114.733C445.827 114.268 445.832 113.912 445.836 113.673C445.838 113.553 445.839 113.462 445.84 113.401C445.84 113.371 445.841 113.348 445.841 113.333C445.841 113.325 445.842 113.319 445.842 113.315C445.842 113.313 445.842 113.311 445.842 113.31C445.845 113.31 445.882 113.31 446.342 113.317L445.842 113.309L445.851 112.742L446.412 112.822Z" fill="#D35E14" stroke="#D35C15"/><path d="M311.842 251.317C314.842 240.317 313.842 112.817 313.842 112.817C281.05 117.181 262.657 120.321 229.842 126.817C229.842 126.817 291.842 246.317 296.342 253.317C300.842 260.317 308.842 262.317 311.842 251.317Z" fill="#DF6E23" stroke="#DA6D1F"/><path d="M562.842 166.317L686.842 67.8171V278.317L562.842 166.317Z" fill="#D66114" stroke="#D86116"/><path d="M196.342 166.317L72.3416 67.8171V278.317L196.342 166.317Z" fill="#E17125" stroke="#E27326"/><path d="M752.342 465.817L625.342 432.817L737.497 377.487L752.342 465.817Z" fill="#D66015"/><path d="M737.842 377.317L737.497 377.487M737.497 377.487L625.342 432.817L752.342 465.817L737.497 377.487Z" stroke="#D66115"/><path d="M6.34164 464.817L134.342 432.004L21.3031 376.986L6.34164 464.817Z" fill="#E06B1F"/><path d="M20.9558 376.817L21.3031 376.986M21.3031 376.986L134.342 432.004L6.34164 464.817L21.3031 376.986Z" stroke="#DF6E1E"/><path d="M379.842 317.775C376.246 317.475 372.636 313.145 368.342 305.112L340.342 110.112C355.495 108.732 367.422 107.884 379.842 107.817V317.775Z" fill="#E16D22" stroke="#E27225"/></svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-2 -22 763 763" fill="none" role="img" aria-label="nanobot"><path d="M229.029 127.134C308.64 112.113 354.143 106.879 379.029 108.134V716.634L272.029 715.634C251.029 715.634 243.029 702.634 201.529 678.134L54.5291 581.634C30.0291 565.134 23.9802 560.075 13.0291 549.134C3.52914 537.634 -1.97086 526.634 3.52914 481.634L28.0291 340.634L29.5291 27.1337C31.0291 -2.36625 53.0291 -6.86625 77.0291 12.6337L229.029 127.134Z" fill="#F4A949" stroke="#F4A949"/><path d="M529.842 126.817C450.231 111.796 404.728 106.562 379.842 107.817V716.317L486.842 715.317C509.342 714.317 570.342 661.817 611.842 637.317L704.342 581.317C728.842 564.817 734.891 559.759 745.842 548.817C755.342 537.317 760.842 526.317 755.342 481.317L730.842 340.317L729.342 26.817C727.842 -2.68287 705.842 -7.18287 681.842 12.3171L529.842 126.817Z" fill="#EF8E30" stroke="#EF8E30"/><path d="M143.342 497.317H1.84164C-6.15857 550.317 22.8417 557.817 56.3419 582.817L143.342 497.317Z" fill="#E27223" stroke="#DF6E22"/><path d="M615.342 496.817H757.001C765.002 549.817 735.842 557.317 702.342 582.317L615.342 496.817Z" fill="#D96016" stroke="#D45F16"/><path d="M379.342 716.317V517.817H288.342C239.842 517.817 243.342 531.817 144.842 640.817L233.342 698.817C245.302 707.847 260.342 717.317 275.342 715.817L379.342 716.317Z" fill="#FBCB89" stroke="#FBCB8A"/><path d="M566.842 382.817C561.842 348.817 509.842 341.317 501.342 382.817V439.317C509.842 477.317 559.342 478.317 566.842 439.317V382.817Z" fill="#B94D0B" stroke="#B5490B"/><path d="M379.342 716.317V517.817H470.342C518.842 517.817 513.342 528.317 611.842 637.317L522.842 698.817C510.881 707.847 495.342 715.817 483.342 715.817L379.342 716.317Z" fill="#F7B066" stroke="#F8B166"/><path d="M258.842 383.199C253.842 349.199 201.842 341.699 193.342 383.199V439.699C201.842 477.699 251.342 478.699 258.842 439.699V383.199Z" fill="#B94D0B" stroke="#B94D0B"/><path d="M439.342 517.817H318.342L379.842 583.317L439.342 517.817Z" fill="#C85513" stroke="#C85513"/><path d="M379.342 583.317V517.817H438.842L379.342 583.317Z" fill="#BA470A" stroke="#B94D0B"/><path d="M367.842 304.817L339.842 109.817C369.864 107.082 387.219 106.437 420.842 109.817L391.342 304.817C382.555 322.184 376.628 321.255 367.842 304.817Z" fill="#D35E14" stroke="#D35E14"/><path d="M446.412 112.822C473.271 116.662 491.893 119.703 529.928 126.325L530.604 126.442L530.284 127.05L529.842 126.817L530.283 127.051C530.283 127.051 530.282 127.054 530.281 127.055C530.279 127.059 530.276 127.064 530.273 127.071C530.265 127.085 530.254 127.107 530.239 127.135C530.209 127.193 530.164 127.279 530.105 127.391C529.986 127.617 529.81 127.951 529.581 128.387C529.122 129.261 528.449 130.543 527.59 132.177C525.872 135.444 523.413 140.12 520.448 145.753C514.519 157.018 506.565 172.113 498.471 187.426C490.377 202.738 482.142 218.27 475.65 230.412C469.165 242.538 464.401 251.316 463.262 253.088C460.97 256.653 457.712 259.067 454.529 259.067C451.263 259.067 448.386 256.547 446.859 250.949C446.467 249.511 446.169 246.271 445.938 241.776C445.705 237.256 445.537 231.406 445.42 224.701C445.186 211.289 445.154 194.441 445.217 177.94C445.279 161.438 445.436 145.281 445.576 133.249C445.647 127.233 445.713 122.248 445.762 118.767C445.786 117.027 445.806 115.662 445.82 114.733C445.827 114.268 445.832 113.912 445.836 113.673C445.838 113.553 445.839 113.462 445.84 113.401C445.84 113.371 445.841 113.348 445.841 113.333C445.841 113.325 445.842 113.319 445.842 113.315C445.842 113.313 445.842 113.311 445.842 113.31C445.845 113.31 445.882 113.31 446.342 113.317L445.842 113.309L445.851 112.742L446.412 112.822Z" fill="#D35E14" stroke="#D35C15"/><path d="M311.842 251.317C314.842 240.317 313.842 112.817 313.842 112.817C281.05 117.181 262.657 120.321 229.842 126.817C229.842 126.817 291.842 246.317 296.342 253.317C300.842 260.317 308.842 262.317 311.842 251.317Z" fill="#DF6E23" stroke="#DA6D1F"/><path d="M562.842 166.317L686.842 67.8171V278.317L562.842 166.317Z" fill="#D66114" stroke="#D86116"/><path d="M196.342 166.317L72.3416 67.8171V278.317L196.342 166.317Z" fill="#E17125" stroke="#E27326"/><path d="M752.342 465.817L625.342 432.817L737.497 377.487L752.342 465.817Z" fill="#D66015"/><path d="M737.842 377.317L737.497 377.487M737.497 377.487L625.342 432.817L752.342 465.817L737.497 377.487Z" stroke="#D66115"/><path d="M6.34164 464.817L134.342 432.004L21.3031 376.986L6.34164 464.817Z" fill="#E06B1F"/><path d="M20.9558 376.817L21.3031 376.986M21.3031 376.986L134.342 432.004L6.34164 464.817L21.3031 376.986Z" stroke="#DF6E1E"/><path d="M379.842 317.775C376.246 317.475 372.636 313.145 368.342 305.112L340.342 110.112C355.495 108.732 367.422 107.884 379.842 107.817V317.775Z" fill="#E16D22" stroke="#E27225"/></svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

+1
View File
@@ -518,6 +518,7 @@ footer a:hover { color: var(--ink); }
<li><img class="bird" src="/icons/kimi.svg" alt="">Kimi Code</li>
<li><img src="/icons/meta-color.svg" alt="">Muse Code</li>
<li><img src="/icons/empryo-color.svg" alt="">Empryo</li>
<li><img src="/icons/nanobot-color.svg" alt="">nanobot</li>
<li><img src="/icons/minimax-color.svg" alt="">MiniMax Code</li>
<li><img class="bird" src="/icons/factory.svg" alt="">Droid</li>
<li><img class="bird" src="/icons/xai.svg" alt="">Grok Build</li>