diff --git a/README.md b/README.md
index 272a66bcb..615734438 100644
--- a/README.md
+++ b/README.md
@@ -82,7 +82,7 @@ magpie finds the subscriptions your agents are signed in to by reading their sig
diff --git a/docs/reference.md b/docs/reference.md
index c8d341820..d0fcdbd88 100644
--- a/docs/reference.md
+++ b/docs/reference.md
@@ -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/` 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/`, 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#` 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) |
diff --git a/docs/subsystems/agent-wiring.md b/docs/subsystems/agent-wiring.md
index ccb5296ba..a52d4fb82 100644
--- a/docs/subsystems/agent-wiring.md
+++ b/docs/subsystems/agent-wiring.md
@@ -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 `/` is sent to it as `` (`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/` 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..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:` 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)): `=effort[,xhigh_effort][,max_effort]` for those it is shown, and, while Claude Desktop is on magpie, for Desktop's `mythos-magpie-` 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.
diff --git a/internal/agent/agents.go b/internal/agent/agents.go
index 5a4964e6d..acf278c2d 100644
--- a/internal/agent/agents.go
+++ b/internal/agent/agents.go
@@ -293,6 +293,7 @@ func onMachine(home, cfg string) []*Agent {
qwen(home),
muse(cfg),
empryo(home),
+ nanobot(home),
ante(home),
astrbot(home),
qwenpaw(home),
diff --git a/internal/agent/handwired_test.go b/internal/agent/handwired_test.go
index 753e47ca5..b9e47baa8 100644
--- a/internal/agent/handwired_test.go
+++ b/internal/agent/handwired_test.go
@@ -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) {
diff --git a/internal/agent/nanobot.go b/internal/agent/nanobot.go
new file mode 100644
index 000000000..62f21cdf8
--- /dev/null
+++ b/internal/agent/nanobot.go
@@ -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 "/" is sent to it as
+// (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/ 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.")
+)
diff --git a/internal/agent/nanobot_test.go b/internal/agent/nanobot_test.go
new file mode 100644
index 000000000..a77219933
--- /dev/null
+++ b/internal/agent/nanobot_test.go
@@ -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)
+ }
+}
diff --git a/internal/agent/spelled_test.go b/internal/agent/spelled_test.go
index 05aea284b..81ebb5971 100644
--- a/internal/agent/spelled_test.go
+++ b/internal/agent/spelled_test.go
@@ -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) {
diff --git a/internal/agent/wsl.go b/internal/agent/wsl.go
index f03806694..35807ecf9 100644
--- a/internal/agent/wsl.go
+++ b/internal/agent/wsl.go
@@ -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,
diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css
index e7c2d0486..591bcbff3 100644
--- a/internal/gui/assets/app.css
+++ b/internal/gui/assets/app.css
@@ -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; }
diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.js
index a9380ccb3..fb6b957b1 100644
--- a/internal/gui/assets/i18n.js
+++ b/internal/gui/assets/i18n.js
@@ -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.",
diff --git a/internal/gui/assets/icons/nanobot-color.svg b/internal/gui/assets/icons/nanobot-color.svg
new file mode 100644
index 000000000..be40a1f5b
--- /dev/null
+++ b/internal/gui/assets/icons/nanobot-color.svg
@@ -0,0 +1 @@
+
diff --git a/site/public/icons/nanobot-color.svg b/site/public/icons/nanobot-color.svg
new file mode 100644
index 000000000..be40a1f5b
--- /dev/null
+++ b/site/public/icons/nanobot-color.svg
@@ -0,0 +1 @@
+
diff --git a/site/public/index.html b/site/public/index.html
index 5eedad0d5..451967637 100644
--- a/site/public/index.html
+++ b/site/public/index.html
@@ -518,6 +518,7 @@ footer a:hover { color: var(--ink); }