ReneXiong: Codex showed the "proxied" drift, "through the proxy at
http://127.0.0.1:7890, set in HTTP_PROXY", while Codex went direct. The
value was fish's universal http_proxy from an old Clash setup, never
exported (`set -S` says "unexported"), so no program fish starts has it.
shellEnv asks fish beside the login shell (zsh), and shellProbe printed
"$http_proxy" in the shell itself, which expands unexported variables too;
mergeShellEnv then filled zsh's empty value with fish's.
Fix at the shared reader: every shell is now asked to run
/bin/sh -c 'printf ... "$PATH" "$CODEX_HOME" ...', the form nushell already
used (still with its ^). A child sees only exported variables, so each
value is what an agent started from that shell gets. This covers every
reader of the probe: Codex's proxy (codexEnv), Claude Code's provider
switches (claudeShellEnv), and agentenv.Vars such as CODEX_HOME and
CLAUDE_CONFIG_DIR that magpie takes into its own environment; an
unexported zsh or bash variable no longer counts either, which matches what
an agent run from that terminal sees. Proxy variables are still merged from
fish when the login shell has none: a fish user who exports one runs Codex
with it from fish, so taking proxies from the login shell only (the
report's other suggestion) would miss that case.
codexProxyFor named HTTP_PROXY (or HTTPS_PROXY, ALL_PROXY) for a value in
the lowercase variable. It now names the one it read, in both the reqwest
and respect_system_proxy paths, and the detail's NO_PROXY advice matches a
lowercase name too (and not "the system's proxy settings").
Other proxy readers checked: the daemon's carried env, wslrun's proxyVars,
netproxy and the plugin host read magpie's own environment, not a shell;
the WSL probe scripts ask for no proxy variable.
Tests: TestLoginEnvUnexportedNotCounted, a login shell with the reporter's
literal values unexported beside an exported NO_PROXY; TestShellEnvRealFish
now writes the reporter's literal fish_variables lines and checks that
http_proxy, https_proxy and all_proxy read empty;
TestCodexProxyNamesItsVariable. Broken by hand, each went red: the old
in-shell printf (unexported values read back, in the fake shell and in real
fish 3.7.1), and env() naming keys[0].
Run: go test ./internal/proc and the codex proxy tests on darwin;
TestShellEnvRealFish, TestShellEnvFishLogin and
TestLoginEnvUnexportedNotCounted on real fish 3.7.1 in an alpine container
(linux/arm64), green with the fix and red without it; gofmt -l clean; go vet
-tags nogui ./... for darwin, linux and windows; the full go test -tags
nogui -timeout 45m ./... under pipefail, both fixes together on
origin/main ec6454395: exit 0, 66 packages ok, no FAIL.
Not tried: the reporter's Mac with fish itself, and nushell (not installed
here; TestShellEnvNushell's real-nu part skipped, its probe-shape check
passes).
82 KiB
Agent wiring
magpie connects a coding agent to its gateway by editing the agent's own
config. That covers the endpoint, the key magpie-<agent> and the model,
in the agent's own format. When the agent is disconnected, magpie puts back
what the agent had before. Package internal/agent describes every
supported agent: where its config lives, which fields matter and which
values to offer. It also records what magpie set, so a later change made by
something else shows up as drift.
Responsibilities and sources of truth
| Part | Responsibility | Source |
|---|---|---|
| Agent description | Agent has an id, name, icon, Bin and Dir for detection, Path, Fields and Native. It also has optional hooks: Notice, UA, ListsModels, Sync, Unwire, Join/Joined, Routed, Follow, RenameRefs, Check, LastUsed, Reached, Import/Added, Launch, SplitSuffix, Spelled and ModelAliases. Each hook's comment says which agents need it. |
agent.go |
| Fields and options | A Field has Get, Set and Options. Set("") returns the field to the agent's default and takes magpie's wiring out. Quiet fields follow another field until set (Follows, such as Claude Code's tiers). An Option carries the picker's facts: Direct, Via, Same, Alias, Rate and Context. The GUI's and TUI's pickers list Agent.Picks: with the agent in settings' ownModelsHidden (the switch at the top of its model list, #1642), a field that offers catalog models (Ref) leaves out the agent's own (no Ref), but for its default and the value it is set to. The CLI still takes an own model by name. |
agent.go, route.go |
| The list of agents | All lists every agent magpie knows, then the WSL agents (wslAgents). Clients lists every agent whose requests the gateway knows by name, which usage.Agents reads. One file per agent: claude.go, codex.go, opencode in agents.go, and so on. |
agents.go |
| Connect | ConnectHow picks the model an agent starts on and reports how. How is one of: kept, again, joined, magpie, same, alike, default or first (#726). With no models to give, it returns NoModelsError (code no_models). |
applied.go |
| What magpie set | Apply sets a field and records it in applied.json. Wired says whether magpie is in the config. Drift reports unwired, replaced, unreachable, proxied or bypassed. Reapply sets the record again. Keep accepts the config as it is now. |
applied.go |
| What came before | The stash (stash.json) remembers what the config said before magpie pointed it at the gateway, so Disconnect restores it rather than guessing. |
stash.go |
| Disconnect and preview | Disconnect runs Unwire, then returns each field still on magpie to its default. Last it runs Restore: Pi and its kin (piLike: Pi, OmO, Prime Agent; and MothX, its one settings.json) copy settings.json and models.json aside (*.before-magpie, beforeMagpie) before magpie's first write, and put that copy back byte for byte where what Disconnect left is the same JSON; a file that wasn't there goes again when only empty objects are left in it. DisconnectPreview runs the real Disconnect on a copy under a temporary home, in a subprocess (DryRunArg), and diffs the files. The preview is never a second account of what Disconnect does. |
applied.go, preview.go |
| Keeping configs current | Reseat moves agents off a model magpie no longer serves (#200). OnGateway and Rewire write the new gateway address into every connected agent when the port changes. Source and Stale say what an unconnected agent runs on, and whether running copies still use the old list. |
reseat.go, rewire.go, connectinfo.go |
| Codex background compaction | Settings › Long conversations' Codex background compaction (CodexAsyncCompact, CodexAsyncCompactPercent, #2490) writes [features.async_compaction] enabled = true and model_async_compact_threshold_percent (Codex 0.163 reads it only in that table) into each Codex config magpie routes, on every Sync. Codex starts a background compaction only on a provider whose capabilities.remote_compaction is "v2", which it gives OpenAI and Azure alone, so [model_providers.magpie] gets capabilities = { remote_compaction = "v2" } too, also when the user turned the feature on by hand (#2493); putProvider carries the table's capabilities over when it writes it again. What magpie wrote is in the stash under codex.async: a value the user set, or changed since, is never written over and stays when the switch goes off; a bare async_compaction = true, an inline or dotted table is the user's as written. |
codex_async.go |
| Named omp profiles | omp keeps a profile's settings under ~/.omp/profiles/<name> (or under PI_CONFIG_DIR), each with its own config.yml and models.yml. Every such profile is an agent of its own — omp#<name> on Windows, omp#<name>@wsl:<distro> in a distro — so each can be connected, drifted and disconnected on its own. They share omp's model lists (ListsFor), and the default omp row is the folder ompDir/ompIn already pick, so an OMP_PROFILE that row is already pointed at is not listed twice. A name omp refuses is not a row: default, a trailing dot, or a Windows reserved device name (aux, nul, com1, lpt9.x, con.work), on every platform (ompProfileOK). A distro's profile names come from its probe and are kept in wsl.json; a stopped distro is never started to list them, its profile rows showing what was last seen (asleep). |
omp.go, wsl.go |
| WSL twins | On Windows each running distro is probed once, without starting a stopped one. The wslKinds agents found there become agents of their own, <id>@wsl:<distro>, edited through \\wsl.localhost\<distro>. A kind is found by its folder under the distro's home or by its command there (not one on a Windows drive). Where another tool shares one of them, the kind leaves it out: Gemini CLI is found by its command alone, because Antigravity keeps ~/.gemini too. Goose is found by its folder alone, because a goose command can be pressly's migration tool. Reasonix also needs the version its command gives (accept), because the old npm client is named reasonix too. The gateway address and key follow the distro's networking: mirrored or NAT (place, keyAt). ListsFor keeps a twin's model picks under the Windows twin's id (#927). |
wsl.go, gatewaykey.go |
| Settings tuned from use | Usage › Context's "Tuned for you" advises, per agent, the settings that would have spent the fewest tokens on the user's own calls of the range, and puts one in on a click. Package tune replays the calls sessions.Calls reads from the agents' session files under each candidate value (Compact, CacheTTL); tuneOf picks the agents and models (Claude Code per model, Codex pooled). TuneRead, TuneApply and TuneUndo know where each setting lives: Claude Code's modelSettings.<model>.autoCompactWindow (where its /autocompact saves), promptCacheTtl and subagentPromptCacheTtl in ~/.claude/settings.json; Codex's top-level model_auto_compact_token_limit. The advice is weighed by tokens alone: it is labelled "Fewest tokens", and a compaction window it would change says it doesn't measure how well the agent keeps the task after a compaction, and that a lower window compacts more often (#1854, context-tune.test.cjs). A compaction row's "Other window…" opens the app menu with every value of the curve, each with its estimated extra tokens over the fewest and about how many compactions it would have made (Point.compacts, from the same replay), and puts the one picked in like Use (#1860). An agent whose files time its compactions also has their wait weighed (HirotaNagai on X): Claude Code's compact_boundary line says compactMetadata.durationMs, which sessions puts on the first call after it, and Codex compacts by a call of its own (the record a compacted line names, in rollouts since 2026-09), whose time is the compaction's (Call.Compact; an older rollout's compaction has no call and stays untimed). With 3 or more timed for a model (minTimed), Facts.took is their median seconds, each window says its wait (Point.wait, its compactions × took), and the row says what a compaction took, the wait at the advice against the window now, and the cheaper window the advice passed over for waiting longer (Compaction.cheapest, wait_cheapest) when it saves 3% or more; the advice is labelled "Tokens + wait", its caveat says tokens and waiting only, and the picker says each window's wait with "Fewest tokens" on the cheapest (context-tune.test.cjs). An agent or model with fewer timed reads and is advised as before. |
internal/tune, tune.go, internal/gui/tune.go |
| Agents a plugin adds | A plugin's magpie.agent module (or a *.agent.js file) says where an agent magpie has no setup of its own keeps its model (config, format, model, prefix), and its connect returns the other keys to write. One with no model is connect only (#2374): its one field is provider, magpie or nothing, as an app whose one setting is magpie as its provider; connect is called without a model, must return keys, and is called again on a catalog change (Sync); ListsModels is set, so its list is the models picked for it. agentplug compiles each in moejs (via jsmod, as gateway middleware is), reloads it when plugins.json or the file changes, and keeps why one didn't load. plugged makes each an Agent with Plugin set, listed after magpie's own; an id one of magpie's own agents has is refused (PluginErrors). |
agentplug.go, plugged.go |
| Environment-only agents | Agents that read the gateway only from the environment get a Launch command. Cursor Private Inference instead gets user-level variables (cursorLocalOn, KeepCursorLocalEnv), and magpie writes none of Cursor's own files. It is found by its product.json in the apps folders, in the folder Windows' list of installed programs names (cursorLocalInstalls, any folder picked in its installer), or as its Linux AppImage (Cursor_Private_Inference-…AppImage) in the folders downloads are kept in (#1254). Its effort field is kept in magpie (provider.AgentEffort) and asked by the gateway, its levels those of the models it lists (cursorLocalEfforts, #1003). |
cursorlocal.go |
| Claude Science | Its daemon (claude-science) reads the API's address only from its environment's ANTHROPIC_BASE_URL and has no setting for it. Connect restarts the daemon with that variable set to the gateway (scienceOn: stop, then serve --detached --no-browser on the port status said it was on) and notes the daemon in claude-science.json (url, pid, port); Disconnect restarts it without the variable, one in magpie's own environment taken out too. No variable is set for the user and no file of the app's is written. Setting it again while magpie's daemon runs on this gateway does nothing (Pick sets the field after connect). KeepClaudeScience starts it again on the gateway, on its port, when it isn't running (a restart of the computer), each minute while magpie serves; it never stops one running. Check reads the daemon's operon.lock, not status (seconds for a 130 MB Bun program), and calls a daemon with another pid drift: the app's window, opened while none ran, starts its own without the variable. It is found in the Mac app's bundle (Claude Science.app/Contents/Resources/bin), %LOCALAPPDATA%\Programs\ClaudeScience on Windows, ~/.local/bin, else on PATH. The app still needs its own Claude sign-in; the gateway never passes it on (see gateway-routing). |
claudescience.go, science.go |
Runtime path
- Connect. The Agents page's switch calls
ConnectHow(POST /api/agents/{action}/{id}ininternal/gui/api.go). It stashes the current values (<id>.connect.was). It brings back the models used before a switch-off (reconnect), or callsJoinwhere the agent keeps its own model (Codex signed in with ChatGPT). Otherwise it picks a model by the orderConnectHowdocuments and sets it throughApply. - Pick.
Picksets a field from the model picker. Picking one of magpie's models on an agent that isn't connected connects it first. - Notice. After a change the page shows
Noticewhen the agent reads its config only at start-up and needs a restart. A field that isLive(Field.Live: magpie's own setting, which the gateway reads on each request, Claude Desktop'ssubagent_modelandsubagent_effort) needs no restart, soPOST /api/setandmagpie <agent> <field> <value>leave the Notice out after it, unless the pick connected the agent too (Pickon an agent not connected). A stopped WSL distro's copy of a field keeps the flag (asleep). - Drift. As the Agents page is drawn,
Driftcompares the config withapplied.json. It runsCheckfirst, then each field. An agent pointed at magpie through a reverse proxy is still on magpie (#1985, davisjiahao: a company's nginx athttps://ai.corp.example/magpie).wiringOff, where most agents'Checkcompares a URL, and the checks of their own (Claude Code's managed settings, Reasonix's provider) take a URL that isn't magpie's when it ends with magpie's path, the rest is an http or https address on another machine (onAnotherMachine) or one on this machine's loopback with a path of its own (loopbackWithPath: the reporter's compliance proxy athttp://127.0.0.1:8788/claude-code-anthropic/<route>;proxyBase), andGET <rest>/there answers as the gateway's ownGET /does ({"name":"magpie"},magpieAtinreach.go, tried in the background likereachProbe). Something else there (a relay CC Switch put in) isunwired, as is an address on this machine's loopback without a path, which is magpie's on an older port and is never tried. Until the answer is known it isn't drift, so Reconnect isn't offered and doesn't write the proxy away; port moves (OnGateway,Rewire) re-set onlyunwiredagents, so they leave it too. Codex keeps such an address by magpie's key, as for #816 (codexKeptGateway: http or https, any port, a path before magpie's, loopback with a path). A model picked in Claude Code keeps it too once magpie has answered there (surelyMagpie;routedandgwAtinclaude.go), so a proxy every request must go through isn't bypassed; before that, or at a relay, a pick points Claude Code at this magpie. Tests stubmagpieAtinTestMainas known and not magpie. When the config is right and points at an address off loopback (a WSL twin under NAT, or this machine's Codex at an address the user kept, #816), it tries that address (reach.go): in the background, at most every 20 s, never waited for. When nothing answers there while the gateway answers on loopback, the drift isunreachable(#1013), with what has to listen there: Share on local network, the user's portproxy, Windows' firewall. Then it checks whether the agent's latest use (LastUsed,Reached) reached the gateway: a request Codex's log says went to the host its config keeps magpie at, or one the gateway saw from it after (lastSeen), reached it. - Disconnect.
Disconnectputs back what the stash kept and forgets the record. It also marks the agent disconnected (<id>.disconnectedin the stash,Disconnected) until the user connects it again (connect, or anApplythat leaves it wired): nothing magpie does by itself puts magpie back in meanwhile, neither a start'sSyncnor Codex's account failover nor #701's magpie API wiring (paynezhuang on Discord: Codex hadopenai_base_urlback after every update).
Constraints and failure behavior
- magpie only removes what it wrote. Anything else in an agent's config stays as it was.
- A sync brings magpie's models up to date, not where the agent reaches magpie. Every
SyncthatSyncCatalogruns (each start and update of magpie, a provider added, and a plugin signed in to, out of or renewed, or listing other models than the last time:plugin.OnChangeandplugin.OnListedcallcatalog.Touched, #2373) goes throughsynced, which passes each file written throughkept.away(edit.Filtered,keptaway.go). The filter sees every file written througheditwhile it is on, from any goroutine and under whatever lock the writer holds, so it takes none a writer may hold: the gateway's address and the LAN key are read before it is on (keeping), and magpie's own files (magpieFile: its folder as named or where its links lead, such as a~/.configlinked into a dotfiles repo) are left as they are (ylorn on Discord:settings.Saveunder the settings' lock reached a filter that read the settings, and the app hung ~10s after every start;TestOwnWritesDuringASyncWithALinkedConfig). In a file without the gateway's own address, whose magpie the user pointed at an address on another machine (a NAS's, or this machine's LAN address), and with no address a WSL distro was seen at, that address stays in place ofgateway.URL(), with the path before magpie's every URL at it had (awayPath: a reverse proxy's/magpie; on loopback, a local proxy's route where magpie answered or hasn't been asked), and so does the key that went with it in place of magpie's own (coeo91 on Discord: the base URL went back to 127.0.0.1 after an update or restart). An address on this machine's loopback follows the gateway; with more than one address or key gone, the write is left as it is. Picking a model in magpie still points the agent at this magpie, but for Claude Code at a proxy to it (above). ZCode and WorkBuddy keep such an address in their own writers too (zcodeAddress,buddyWriteAt). SyncCatalogholds the catalog it builds (provider.Hold), the plugins' providers and sign-ins among it, for up to a second. Thosecatalog.Toucheddrops are told in the background, so a plugin change also drops what is held at once (plugin.OnChangeNow,hold.go): the host's "auth" event is read before its reply to the sign-in that saved it, and a look at the accounts once the sign-in returns sees it (#2449:magpie plugin loginfound no account while a sync ran;TestHeldGoesWithAPluginChange).- JetBrains Air's
magpie-opencode.jsonkeeps user-added fields inprovider.magpie, including nested options, on sync and model picks (airinair.go, usingtheirsKeptinsync.go). The gateway fields and complete model list are still replaced, so removed models leave the list. - In every OpenCode-shaped config (OpenCode, DevEco, Air, OpenChamber;
openCodeKeptinagents.go), a variant the user put on one of magpie's models stays through a sync, and so does one they wrote over under a name of magpie's. A variant exactly as magpie writes it under its name (openCodeVariant) is magpie's, so one the model no longer has goes (#2379,TestOpenCodeCodexFastVariants). - OpenCode has no
/fast. A ChatGPT account's owngpt-*model, not a routing group (catalog.Model.CodexFast, set inmagpieModels), gets each reasoning level again as<level>-fast(orfastalone with no levels), askingservice_tier: "priority"as Codex's/fastdoes. The tier is written twice: as an option, which OpenCode 1's@ai-sdk/openai-compatiblesends as it is, and inextraBody, which OpenCode 2 sends while it drops an option it doesn't know (checked with OpenCode 2.0.25 against a fake server). The gateway drops OpenCode 1's strayextraBodyfield when it rebuilds the request as Responses for the ChatGPT backend (TestOpenCodeFastVariantReachesCodex). - Every sync and pick that writes magpie's own block into an agent's config lays it over what is there, so keys magpie doesn't write stay (#2030, then its siblings). Each block was checked against the app's own schema or source. magpie's parts are named; a key it no longer writes goes with them.
- Qoder's
providers.magpiekeepsrouting, the timeouts,type,authType,anthropicand a non-emptydisplayName(qoderKept). - fx keeps
reviewer_modeland atool_choice_modeofomit. Itsauthis magpie's whole, since fx refuses anenvbesidetype: none(fxKept). - Hermes keeps the
default_modelthathermes modelwrites there,key_cmd, the timeouts,extra_body, a name and headers beside magpie's (hermesKept). This holds in every profile. - omp's
models.ymlkeepsmodelOverrides,discovery,disableStrictTools, headers and compat flags (ompKept). ItsauthandapiKeyare magpie's, or gone. - Kimi Code's
[providers.magpie]has magpie's three keys set in place, socustom_headers,envanddefault_modelstay (kimiProvider). - Cline's
models.jsonkeeps the provider's other keys, and on each model magpie lists what magpie doesn't write, such as a VS Code override (clineKept). - Goose's custom provider file keeps a name,
timeout_seconds,toolshim, headers and the like (gooseProviderKept). - ZCode's provider rule keeps its name, logo, visibility, API headers and the key's management link (
zcodeRules). - The YAML ones go through
yamlKeptandmergeKeptinsync.go. Each is tested by aTest<Agent>KeepsTheUsersSettings.
- Qoder's
- Copilot in JetBrains IDEs keeps its Bring Your Own Key providers in the Copilot language server's
byok.json, shared with Xcode's and Eclipse's Copilot (copilotJetBrainsincopilotjetbrains.go). magpie writes its own three keys there,magpie-provider-config,magpie-api-keyandmagpie-models-config, in the bytes the server itself writes, and only when they differ; the user's providers and keys stay. A magpie model the user hid in Manage Models (isRegistered: false) stays hidden through a sync. A new file is made 0600 in a 0700 folder, as the server makes it. - dsh (DeepSeek Harness) sets one API per llm-pi-ai route, so magpie writes a route per protocol (
dshKindsindsh.go; 01huadalang on Discord):magpie(Chat Completions) for most models,magpie-responses(openai-responses) for a model served on Responses,magpie-anthropic(anthropic-messages, the gateway root,forceAdaptiveThinkingwhereAdaptiveThinking) for one served on Messages, by the model'sAPIs(dshRouteOf). A model'sAPIsis the one its provider serves it on best (Provider.Native, inmagpieModels,route.go), and Pi, omp and droid read it the same way. A routing group hasresponseswhen every member is best on Responses (allResponses, #1594), so its tool-call arguments are relayed as they stream; any other group has none and stays on Chat, a Messages-only group too, as a Claude member's thinking is known by its own model. A route with no models is taken out. An api the user picked for a route in dsh's Models page is kept, and so are keys they added there. The start (agent-default-model) names its model's route, and Sync moves a start on one of magpie's routes to the route its model is now on (dshStartOnItsRoute), its effort and marks kept. Check asks the route the start names to list its model. A dsh session resumed on a model that has since moved routes asks for the model to be picked again, since dsh finds a model by route and id. - DeepSeek Harness Desktop (macOS arm64 and Windows x64; no Linux build) reads the same
$DSH_HOMEor~/.dshas the CLI, as its own profileprofiles/desktop(resolveDshHomeandresolveDesktopPathsin the app'slib/main.js), so it takes magpie's routes with no wiring of its own (#2279, liangjinyuan-sihan). It is found by/Applications/DeepSeek Harness.app, by%LOCALAPPDATA%\Programs\DeepSeek Harness, or by the folder its current-user installer records underHKCU\Software\1bf39983-50d0-5fe0-9ef4-cece76f67c5e(InstallLocation), whose Uninstall key gives the version (registeredindesktopapp.go), so a user who picked another folder is found. With the app installed but never opened there is no~/.dsh: the row is still listed, and connecting writesprofiles/desktop/cordis.patch.ymlfrom dsh's own template (dshProfileTemplate) with magpie's routes, which the app keeps on its first start, since it writes only the files that are missing. The notice says the app starts on it the first time it opens (noticeDsh5). Disconnect before that first start removes the profile magpie made when nothing else is in it (dshTidyUnopened); once the app has opened it, the profile stays and only magpie's entries go (TestDshDesktopNeverOpened,TestDshDesktopRegisteredFolder). - Ante's
catalog.jsonkeeps user-added fields inproviders.magpiethe same way (anteinante.go); itsauth,http_headers,extra_bodyandstream_idle_timeout_secsare what a gateway shared on the local network or reached from WSL needs to send a key. Ante starts a session on theproviderandmodelofsettings.json, not on what its catalog holds (#1210), so magpie sets that pair and puts back what it found there; a pick the user makes in Ante while magpie is wired is theirs and stands. - AstrBot keeps its providers in
data/cmd_config.jsonunder its root ($ASTRBOT_ROOT, else~/.astrbot, the desktop app's, else~/astrbot), written with a UTF-8 BOM, which magpie keeps (astrbotinastrbot.go). magpie adds amagpieentry toprovider_sourcesand onemagpie/<model>entry per model toprovider, keeps the user's own entries byte for byte and keeps what the user changes in magpie's (timeout, proxy, enable), and sets the default chat model (agent_runner.config.model.provider_id, orprovider_settings.default_provider_idbefore the agent runner), putting back what it found there. A pick the user makes while magpie is wired is theirs and stands. The first connect copies the file tocmd_config.json.before-magpie. AstrBot reads the file only at start-up and its WebUI writes it back whole on save, so the agent's notice says to restart AstrBot before saving in the WebUI. A Docker install's root is inside its container, which magpie doesn't reach. - jcode keeps its settings in
config.tomlin$JCODE_HOME, else~/.jcode(jcodeinjcode.go). magpie adds a named profile,[providers.magpie], asjcode provider addwrites one:type = "openai-compatible", the gateway's/v1, an inlineapi_keynaming jcode (jcode sends nothing else that tells it apart) andrequires_api_key = true, since jcode sends no key to a loopback URL without it. Itsmodelslist has one entry per model, withcontext_window,inputandreasoningfor a model with effort levels. Areasoning_effortthe user set on one stays while the model has that level. The model jcode starts on is[provider] default_provider = "magpie"anddefault_model. What was there is stashed and put back on Disconnect. A model of jcode's own picked while it is on magpie takes magpie out. Each key is set alone, so the user's other keys and tables stay, and the[[providers.magpie.models]]tables jcode writes when it saves the file itself are replaced by the one list. A sync with nothing to change doesn't write. Disconnect drops the profile whole, its sub-tables included. jcode reads the file when it starts, so the notice says to restart open sessions. - Raycast AI reads Custom Providers from
~/.config/raycast/ai/providers.yamlin the user's folder, on Mac and Windows alike (raycastinraycast.go; manual.raycast.com/ai/custom-providers). magpie adds one entry to itsproviderslist,id: magpie, at the gateway's/v1with anapi_keysalias holding a key that names Raycast (its User-Agent isn't known), and one model per catalog model withcontextand all fiveabilitiessaid, since Raycast assumes tools and vision off when one isn't. The list is edited as a node (EditYAMLNode), so the user's other entries, thetoolsblock (anchors too) and comments stay. A key the user adds to magpie's entry or to one of its models (include_user_email, adescription) is kept on a sync (mergeYAMLKept), and a sync with nothing to change doesn't write. Disconnect takes the entry out, the list when it was the only one, and a file left with nothing in it. Raycast watches the file, so there is no restart notice. The model is picked in Raycast, so the field is whether magpie is in its picker (ListsModels). Detected byRaycast.appon a Mac or the~/.config/raycastfolder. - OpenPencil (ZSeven-W/openpencil, the
openpencil-desktopapp) keeps the builtin agents its chat runs on insettings.jsonin Rust'sdirs::config_dir()joined withopenpencil:~/Library/Application Support/openpencilon a Mac,$XDG_CONFIG_HOMEor~/.configon Linux,%APPDATA%on Windows (openPencilinopenpencil.go; itssettings_io.rsandsettings_payload.rs). magpie adds one entry tobuiltin_agents,id: magpie,kind: openai-compatat the gateway's/v1with a key naming OpenPencil (its User-Agent isn't known),preset: custom, the picked models as OpenPencil writes a list: the first asmodel,modelsonly for two or more, at most 64 (v0.8.4 readsmodelalone). The user's other entries and settings stay, and so do thedisplay_nameandenabledthey give magpie's entry; a sync with nothing to change doesn't write. OpenPencil needs"version": 1(a file without it is set aside as corrupt and saving stops), so magpie writes it in a file it makes and leaves a file with any other version, or none, alone. Disconnect takes the entry out, and the file when only the version and an empty list are left. OpenPencil reads the file once at start and writes it back whole when it quits, so a change is refused whileopenpencil-desktopruns (Windows can't be asked, so the notice says to quit it first). The model is picked in OpenPencil's chat, so the field is whether magpie is in its picker (ListsModels). Detected by its settings folder,~/.openpencil(its CLI's),OpenPencil.app(com.zseven-w.openpencil), or%ProgramFiles%\OpenPencil. open-pencil/open-pencil, the other app of the name, keeps its providers in its webview's localStorage, so it is not a row: it reaches magpie through Pi or an ACP agent magpie wires. - DevEco Code (Huawei's OpenCode fork, #1885) is wired as OpenCode is (
devecoinagents.go): magpie's provider goes into the first ofdeveco.jsonc,deveco.jsonandconfig.jsonin~/.config/deveco(the one DevEco merges last, so the one that wins), or in$DEVECO_CONFIG_DIRwhen that is absolute, read after them. 0.2.3 sendsdeveco/0.2.3 ai-sdk/…to a provider of its config, but much of the OpenCode code it keeps still sends OpenCode's own User-Agent (opencode/<version>), so its provider's key ismagpie-deveco(openCodeKeyAt), not the plainmagpieOpenCode and MiMo Code send, and Check asks for that key. Its npm package has no Linux binary, so no install command is offered there (cliSpec.only). - Grok App (RongleCat/grok-app, a desktop front end that starts Grok Build over ACP) keeps its provider channels in
agent-home/config.tomlunder its data folder:$GROK_APP_HOME, else where itsdirectoriescrate puts it, or its~/.grok-appfallback when that is the one there (grokAppingrokapp.go). Its composer lists only Grok Build's official catalog, never the[model."magpie/…"]tables of Grok Build's row, so magpie adds itself as a channel,[model.magpie], with the keys the App's Providers page writes: the gateway's/v1, a key naming Grok App,api_backend = "chat_completions",app_provider_mode = "generic", andapp_models, a JSON list of magpie's models withcontextWindow,supportsVisionand their effort levels (nonone; a default the user marks in the App stays, else medium). The picked model'scontext_window(a bare integer) andsupports_reasoning_effort(a bare bool, Grok Build's gate for--reasoning-effort) are on the channel, as the App puts them there when a model is picked in its composer.[models] defaultis the route, and magpie does not set it: setting it to"magpie"makes the App drop its own sign-in (ensure_independent_for_custom_route). The route stays whatever the App had. Pressing Use on magpie under Accounts is what switches it. A magpie that already set the route puts the old one back once, on the next sync or connect (grokAppReleased); a Use after that stays. Disconnect drops only the channel, and puts the route back only when it is still"magpie": the one stashed at connect, else the oneconnect.washolds. One of the App's own routes picked in magpie's model field is written as the route and takes magpie's channel out, as picking another provider does elsewhere. A sync with no channel and a route other than"magpie"writes nothing, magpie's stash included, and Check says so when the route is"magpie"with the channel gone. A model picked in the App's composer since is the user's and stays through a sync, and a sync with nothing to change doesn't write. Shared mode keepsGROK_HOMEat~/.grok(Grok Build's library row). Independent mode, which Use turns on, reads agent-home: the Library writesAGENTS.md,[mcp_servers]in the sameconfig.toml, andskills/there, and Grok App also reads~/.agents/skills. RTK has no Grok hook, so the Library lists Grok App with the switch off. The notice, while the App runs, says magpie is a custom provider in Settings › Account, a chat can pick its models in the model picker, and the App stays on its current route until Use. - JSON/JSONC config edits and their previews reject malformed input rather than editing a partially parsed document. Object edits and VS Code's model-group array edits leave the original file untouched on a parse error; valid comments and trailing commas remain supported (
internal/edit). - A config that starts with a UTF-8 byte order mark (a Windows
settings.jsonorconfig.tomlsaved by PowerShell, Notepad or a channel switcher, #1534) is read without it (edit.Read), and a write keeps it (keepBOMinWriteAtomic): the user's file keeps the encoding it was saved in. That covers every formatinternal/editwrites (JSON/JSONC and its arrays, TOML, YAML, env); Codex reads a TOML file through a BOM too, so magpie no longer refuses one. A file read some other way trims it withedit.TrimBOM(the Claude Code and CC Switch imports). A line an edit takes out of a CRLF file goes with its\r\n. - Codex signed in to ChatGPT stays beside its sign-in (
openai_base_url) unless the user picks magpie API. magpie becomes its provider only while the Codex app holds the active account, which it sends nothing for:/wham/usagesays it isn't allowed, and it has no credits and isn't a workspace still within its overage (codexHeld, read byprovider.CodexUsedUp). Where the app goes by what usage can't show (an experiment's gate, a reserve, a Team plan's overage under the reserve experiment), it counts as held: a wrong move costs ChatGPT extras, a missed one every turn. A saved reading kept through a failed read stops saying held once its used-up window has started again; a hold with no window used up stays till a fresh read. The app then loses its ChatGPT state (durable threads, remote control), so a window at 100% alone, which credits get past, doesn't move it (codex.outmarks the move, and Sync undoes it once the account has room). - Moving a field from one of magpie's models to another (the agent's own picker) is not drift. Moving it off magpie is.
- A field that follows another while empty (
Follows: Claude Code's tiers and subagents on its main model) is read byDriftas on that field's model. The main model moved, in Claude Code's own/model, onto the model magpie had set a tier to is not drift (#1050). The tier keeps that model as its own through the move and the next one (tier_ownin the stash), whatever it would follow on the new main model: fable, which follows no model that is no Fable, and haiku, which follows a Claude model on its Haiku, read as following and lost their model on the next move (#2257). - A Claude Code tier or its subagents given a model of their own keep it when the main model moves onto that model and on again (
ownKeyinclaudeIn), whether the main model is picked in magpie or in Claude Code's/model. Same as model, picked for them, has them follow again. - While this machine's Claude Desktop is on magpie, Claude Code's shared settings get
CLAUDE_CODE_DISABLE_EXPLORE_INHERIT_CAP="1"(writeExploreinclaudeIn,claude.go). Claude Code 2.1.295's Explore inherit cap can otherwise replace Desktop'smythos-magpiecompatibility alias with Opus. This disables that cap, not the model choices of all subagents. It applies with Desktop alone or beside a connected Claude Code, including model picks and Sync; WSL twins do not get it. A user's existing value, including an empty string, stays. The stash (claude.explore_inherit_cap) marks only magpie's value: taking Claude Code off magpie leaves it while Desktop is on, and taking Desktop off removes it only if the user has not changed it. Since the settings file is shared, other Claude Code sessions reading it see the flag while Desktop is connected too. - Claude Code's tier and subagent models the user had set for their own endpoint (
claudeOwnEnv) are stashed with that endpoint and token when magpie is wired in, and come back with them when magpie steps out, by Disconnect or by Claude Code's own model (#1050). So does their main model in the env (ANTHROPIC_MODEL, a Bedrock model id besideCLAUDE_CODE_USE_BEDROCKfor one), which magpie takes out while wired in because it outranks a pick in/model. - Claude Code's provider switches (
agentenv.ClaudeProviders:CLAUDE_CODE_USE_BEDROCK,_VERTEX,_FOUNDRY,_ANTHROPIC_AWS,_ANTHROPIC_GOOGLE_CLOUD,_MANTLE, Claude Code 2.1.300) send it to that cloud's own endpoint and passANTHROPIC_BASE_URLover, so with one on it never reaches magpie (jw1dev on X: Bedrock refused magpie's model, and magpie showed nothing). Claude Code reads 1, true, yes and on as on (claudeSwitchOn). One that is on in the settings magpie writes is taken out on every route that writes the wiring (dropCloudsinwriteTiersandSync), its raw value stashed (claude.cloud.<var>, under the distro's id for a WSL twin), and put back as written when magpie steps out (putCloudsinunroute), unless the user set it again since. The cloud's own variables (AWS_*,ANTHROPIC_VERTEX_PROJECT_ID, …) and a switch that is off stay. Where magpie doesn't write it, Check says so, naming the variable, the cloud and where (claudeCloud): the managed settings, which win over the user's;~/.claude.json's env, under the user's settings; and, for this machine's Claude Code, the login shell's environment (proc.LoginEnv, read but never set in magpie's), under every settings file. A project's.claude/settings.jsonisn't read: magpie doesn't know which folders Claude Code runs in. T3 Code's Check says the same of the user's~/.claudesettings, which are put over its magpie instance's environment, and a switch put on that instance goes at its next write; that Check first says when the instance'sANTHROPIC_BASE_URLno longer reaches the gateway (t3EnvOf), as every agent's Check does, so a port move rewrites it too. The drift's detail is shown in the row's line and its pill throughtNotice(claude-cloud-drift.test.cjs). Claude Desktop's Code tab runs withCLAUDE_CODE_PROVIDER_MANAGED_BY_HOST, under which Claude Code ignores a switch in settings files, so Desktop needs neither. - Claude Code's sign-in (
login) is magpie's key ("", the default) or claude.ai (claudeai). claude.ai writesANTHROPIC_AUTH_TOKENempty, which Claude Code reads as no key: it keeps its claude.ai login and sends that to magpie, which never passes it on (claudeSignInin the gateway). Every later write keeps the token empty (wiredKey), and a key put there by hand is reported by Check, not taken for magpie's. It's offered only where the gateway takes any key (gwKey() == gateway.Token: loopback, a WSL distro mirrored), not from a distro under NAT while magpie is shared on the network, where only the sharing key gets in. The choice is stashed, so it survives Disconnect and a port move. An empty token counts as magpie's only beside the address magpie last wrote (claude.wired_atin the stash, which Rewire carries to the new port,keyOurs): an endpoint of the user's own with an empty token stays theirs when the model goes back to Claude Code's own. - Claude Code's auto mode review (
CLAUDE_CODE_AUTO_MODE_SERVER,claudeReviewEnvinclaude.go) is written"0"while Claude Code is routed through magpie and none of the models it can reach there is one Anthropic reviews (claudeReviewed, bygateway.AutoModeReviewed): those it is shown (and Claude Desktop's while Desktop is on magpie), a shown group's members, those providers' fallbacks, and the models it is set to. Off, it classifies locally from the start, as it does anyway behind a gateway that doesn't answer, without the "isn't eligible because your requests go through 127.0.0.1:3425" notice (1EFLOPS on X). Any reviewed model leaves it unset, since/modelcan take the session there; a model hidden from Claude Code doesn't count. It is rewritten on every model set andSync, so adding a Claude provider turns the review back on. magpie's value is kept apart in the stash (claude.auto_mode_server), a user's own is left alone, and it goes when Claude Code is taken off magpie (desktopOnly,unroute). T3 Code's magpie instance, which runs Claude Code on the gateway through its own environment, carries the same"0"there by the models it lists (t3InstanceJSONint3code.go); a value in the user's~/.claudesettings comes after it. - Claude Code takes one window (
CLAUDE_CODE_MAX_CONTEXT_TOKENS,claudeContextEnvinclaude.go) for every model it doesn't know. Claude Code alone on magpie is told its main model's (claudeWindow). While Claude Desktop is on magpie too, its Code tab runs Claude Code on the same~/.claude/settings.jsonwith every model Desktop lists, so magpie tells it the largest window of those and of Claude Code's own models, and holds each model below it to its own withmodelSettings.<id>.autoCompactWindow(claudePlaninclaude_budget.go, #2025: the least held a 1M model to 131K). Claude Code 2.1.296 matches that key by the id it was handed, lowercased and without[1m]; it comes before the top-levelautoCompactWindow, which serves a model without one.CLAUDE_CODE_AUTO_COMPACT_WINDOWwould take precedence over both, so in this mode magpie's working window goes in the top-levelautoCompactWindowinstead, 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 (orauto) holds the largest to that window, and with aCLAUDE_CODE_AUTO_COMPACT_WINDOWof the user's the least window is told as before. - Claude Code is told what each of magpie's models can do in
CLAUDE_CODE_MODEL_CAPABILITIES(claudeCapsEnv,claudeCapabilitiesinclaude.go):<model>=effort[,xhigh_effort][,max_effort]for those it is shown, and, while Claude Desktop is on magpie, for Desktop'smythos-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 withoutxhigh_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. - MiniMax Code takes a model ref with one slash in the whole (a SubAgent's
modelmust match^[^/\s]+\/[^/\s]+$, #1387), and magpie's refs there arecustom_provider:magpie/<model>. So a model undercustom_provider.magpieis written with~for each slash of its catalog id (bb-codex~gpt-6.1-sol,provider.FlatID), only when that spelling stands for one served id (provider.Flattened); the gateway takes it back. A config an older magpie wrote moves over on the next sync: the user's keys on a model go to its new key,defaultModel,defaultLightModelandmemory.captureModel/consolidationModelfollow (mcodeRefs), and the slashed key stays, switched off (enabled: false), so a session begun on it still resumes. magpie never edits the user's ownagents/<name>/agent.md. No other agent was found with this limit (minimax.go). - Claude Code's
/modellist (modelPickerin its settings.json) is magpie's while it is marked in the stash (claude.model_picker,claude@wsl:<distro>.model_pickerfor a WSL distro) or while every row's description ends "via magpie", as every row magpie writes does (magpiesPickerinclaude.go). magpie keeps its own list up to date on every model set andSync, and removes it when Claude Code is taken off magpie; a list the user wrote is left alone. The fingerprint covers a list whose mark an older magpie's stash lost, which otherwise stayed without every model added since (#2046). - Claude Code 2.1.296 reads a Claude model whose version has a dot (
relay/claude-opus-4.6-us) as Claude Opus 4: a retired warning, budget thinking, 32000 output tokens, no effort. With dashes (relay/claude-opus-4-6-us) it knows the model (misteer_ti. on Discord). So every model magpie writes into its settings (model, the tier envs,ANTHROPIC_SMALL_FAST_MODEL,CLAUDE_CODE_SUBAGENT_MODEL,modelPicker), T3 Code's Claude slugs and Claude Desktop's Code-tab ids (claudeLooking) spell a dotted Claude version with dashes (provider.ClaudeSpelled), only when that spelling stands for one served id. A Claude model listed to Desktop with reasoning levels is given asmagpie-<n>.anthropic.<model>, its dotted version dashed as well (claudeModel: Copilot'sclaude-opus-5.5is…anthropic.claude-opus-5-5, which Claude Code knows; it wasmythos-magpie-<n>, an unknown model, and Haiku 4.5 got an effort Copilot refuses, #1819); a request for it is served by<n>alone (aliased), so that spelling needn't be unique. Mythos counts as Claude here too: Claude Code matchesclaude-mythos-5-1by substring, soclaude-mythos-5.1would read as Mythos 5. Every read of those keys takes it back (provider.ClaudeRead:claudeIn'senv,claudeMain,claudeStandInAt), so magpie's fields, applied state and Drift keep the dotted id. The user's own values are stashed and given back as written. Values an older magpie wrote dotted are rewritten on the next Sync. Other vendors' ids are never respelled (claudedash.go). - Codex's "subagents" field is
[agents] default_subagent_model: only the model a subagent starts on when its lead names none inspawn_agent(codex-rscore/src/agent/child_config.rs). Unset, it isn't "same as model": the lead may still name another, so the GUI calls it the lead's pick, else the model (leadPicksin app.js), and its title points at the "subagent model" field. - Codex's "subagent model" field writes nothing to Codex's config: its lead names each subagent's model in
spawn_agent, which[agents]can't overrule. It is magpie's setting (settings.CodexSubagentModel,codex_subagent.go), and the gateway moves the subagent's request onto it (see gateway routing). Its options are every model and routing group Codex's own lists show (CatalogFor("codex"), so a model taken out of them or not picked is left out here too), ChatGPT accounts' first (#1633: a lead on a chat provider wants its subagents there too). A task a ChatGPT-backed lead sealed opens only on a ChatGPT account, so the gateway keeps such a subagent on its own model when the one set is another provider's. Its setter takes anyprovider/modelorgroup/<id>, also one magpie doesn't serve now, so a profile or backup put back on another computer still applies (ApplyFieldsstops at the first failed Set), and refuses one of Codex's own bare names. - Claude Desktop's "subagent model" field (
subagent_model,desktopSubagentFieldinclaudedesktop.go) writes nothing to Desktop's config: Desktop runs its Code tab's Claude Code withCLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1, under which Claude Code ignoresCLAUDE_CODE_SUBAGENT_MODEL,CLAUDE_CODE_SUBAGENT_MODEL_FORCEand the tier variables in its settings files'env("Ignoring … this session's provider routing is managed by the host", Claude Code 2.1.295), and the env Desktop builds for the Code tab has no key for it (Desktop 2.31226). It is magpie's setting (settings.DesktopSubagentModel,desktop_subagent.go), and the gateway moves each subagent's turn onto it (see gateway routing). It is labelled as Codex's, so the Agents page gives it the same square. Its options are magpie's models and groups as Desktop's list shows them (viaMagpie("claude-desktop")), while Desktop is on magpie, as for the tiers. A Desktop alias picked is kept by its catalog id (DesktopCatalogID). Like Codex's, its setter takes anyprovider/modelorgroup/<id>, also one magpie doesn't serve now, so a profile or backup still applies, and refuses a bare name. It isLive: the gateway reads it on each request. - Claude Desktop's "subagent effort" (
desktopSubagentEffortField,settings.DesktopSubagentEffort) is also Quiet and Live. Default keeps the effort the request asks for, including disabled thinking; it never selects a new default. A picked level works independently of the subagent model: no model pick, the same model and an unavailable model pick all still take the effort. While wired, the field offers the selected model's levels, or the standard levels when its model is inherited or unavailable; a model marked reasonless offers none. The stored pick survives model changes. A disconnected preference can be saved or cleared without connecting Desktop or showing restart advice, so profile restoration and Disconnect can restore a value saved before connecting; reconnect returns to the last live pick.subEffortTitlegives Desktop the Claude Code default explanation; Codex's default meaning is unchanged. The gateway fits each attempt to its actual model and preserves fixed group-member efforts (see gateway routing). - Codex's
spawn_agenttool names only the first five models of its catalog to the lead (codex-rsMAX_SPAWN_AGENT_MODEL_OVERRIDESinchild_config.rs,spawn_agent_models_description), Codex's own ahead of magpie's, though it takes any catalog model by name (find_spawn_agent_model_name). So a lead could put its subagents on none of magpie's models (Gearclickist on Discord). The gateway adds the rest of the catalog Codex was handed to that tool's description, after Codex's own list, at most 200 (spawnAgentModelsincodex_spawn_models.go). A model that can search tools (supports_search_tool) isn't handed it in the request's tools: Codex defers its multi-agent V1 tools behindtool_search(codex-rscore/src/tools/spec_plan.rs), and the lead getsspawn_agentin thetool_search_outputCodex puts in the conversation and sends again every turn, so that one is widened too. That text goes upstream with the prompt, to OpenAI too for a ChatGPT lead, so its header (spawnMore) stays neutral: it names neither magpie nor Codex's limit. AtCodexPaththat is Codex's own listed models less the hidden ones, thenCodexListedunless Codex is held to its own. At/v1it isCodexCatalogunder the key's allowance. A lead the ChatGPT backend answers in multi-agent V2 seals its subagents' tasks for a ChatGPT account (#619), so it gets Codex's own only. The model catalog Codex puts in context undermodel_catalog_in_context(under development, off by default) is capped at five too, and isn't widened. - Snow CLI runs on one profile at a time (
profiles/<name>.jsonin~/.snowor$SNOW_CONFIG_DIR, named inactive-profile.json) and copies the active one overconfig.jsonat every start,snow --asktoo (snow.go). magpie writes amagpieprofile, makes it the active one, and copies it toconfig.jsonitself, so a Snow already running and Snow App's "Sync Snow CLI API config" see the same. It is made from the profile the user was on, their settings kept and its OAuth sign-in left out. A vision model of that profile comes along only with an endpoint and key of its own (snowOwnVision), since one on the profile's would now go to the gateway.maxContextTokens,maxTokensandsupportsVisionfollow the model from the catalog (snowSynced;supportsVisionas every agent is told, true while magpie's Vision describes images); what magpie last wrote of them is stashed, and one the user changed since in Snow's own settings is kept through later picks and syncs. The small field is magpie's profile'sbasicModel, Snow's light model for summaries, compaction and file search: empty while it follows the main model, a model through magpie of its own kept through new main models and syncs; on a profile of the user's it offers nothing and is hidden. The thinking field is magpie's profile'schatThinking({enabled: true, reasoning_effort}), the only thinking setting Snow reads on the chat protocol; empty deletes it, Snow's default, which sends thinking disabled. A chatThinking the user brought from their profile is shown, not written over. The profile they were on (or that there was noactive-profile.json) and amagpie.jsonof their own are stashed and put back by Disconnect. A Snow from before profiles (config.jsonalone) gets thedefault.jsonSnow itself would have made of it, so its next start doesn't take magpie's for the user's. Picking a model of another of the user's profiles switches Snow to that profile. On magpie's profile, a value that is neither a model through magpie nor the model of one of the user's profiles is refused and changes nothing (#1457:magpie snow --helpused to take magpie out and write--helpas the model of the profile it went back to). Gemini CLI's auth field refuses an auth it doesn't know before it unroutes, for the same reason. On the CLI,-h/--helpafter any command or agent only prints its usage, beforerunreads or moves anything, and any other flag given tomagpie <agent> …is refused (help_cli.go;TestHelpOnEveryCommandDoesNothingwalksrun's switch and every agent). - omp's
enabledModelsinconfig.ymlis the list it holds its default role to: a model left out of it isn't used, whatevermodelRoles.defaultsays (#1769). So a model picked for the default role is added to a list that is there and doesn't take it in already, by name or by one of omp's globs (*not crossing/, asBun.Glob), and once nothing inconfig.ymlis on magpie its plainmagpie/…entries are taken out (a list left empty goes, never[]); a renamed provider's entries are renamed once, and folder-scoped entries are left alone (ompScope*inomp_scope.go). No list, no change: omp then takes every model. A list that leaves the default role's model out is drift, which Reapply mends. - Pi's
enabledModelsinsettings.json(and OmO's and Prime Agent's,piLike) is the Ctrl+P list a new session starts from. A picked model the list doesn't take in is added (piScopeWithinpi.go), and a renamed provider'smagpie/<old>/entries are renamed with it, a glob or a thinking level included, the copy the pick just added dropped (renameRefListinrename.go, #1919,TestPiEnabledModelsFollowRename). The user's other entries stay; a list naming none of the provider's models isn't rewritten. - After the catalog sync, an entry in Pi's (and its forks'), StepCode's or omp's
enabledModelsthat names one of magpie's models outright (no glob; a thinking level read off) whose model magpie no longer gives the agent is taken out: Pi warned "No models match pattern" for each one at every start (#2055). It may be the user's own, so it is remembered instash.json(<agent>.scope.gone) and goes back on the list's end when the model is offered again; a rename moves the remembered entries too, and a disconnect forgets them. Globs, other providers' entries and omp's folder-scoped entries stay. A list left empty is removed and made again when its entries come back, with the model picked meanwhile; one the user removed isn't. When magpie's model list in the agent's file can't be read, nothing is taken out (scope_gone.go,TestPiEnabledModelsLoseDeselected). For StepCode, the wiring state's last-written scope follows, so a disconnect still puts the user's own list back. - A value an agent spells as its own provider's model is never taken for one of magpie's, even when magpie has a provider of the same name (
Spelled, #835). - The other way round, a value that names one of magpie's models the agent isn't shown (kept from it by
magpie visibleor a model not ticked for it), a model of one of magpie's providers that isn't on its list (a remote magpie's group added there since the list was fetched), or agroup/…magpie has no group for, is refused bySpell(notOffered), and nothing changes. It used to be written as the agent's own: Pi readremote/group/smartas its own providerremoteand modelgroup/smart, and was taken out of magpie (#2376). A model shown the agent that a field offers fewer of (Claude Desktop's tiers) is still taken, and so is a value whose provider part one of the agent's own models goes by (openai/…in Pi) (agent.go,TestSpellRefusesMagpieModelNotOffered). Reapplyonunwiredsets again every field on one of magpie's models and every field set to magpie itself (magpieID, asWiredtakes it): Claude Desktop's drift shows on a tier, and itsproviderfield is what writes the gateway back (dumplings on Discord). Claude Desktop'sCheckjudges only the set of folders whose Claude-3p it ran in last (desktopRead, bydesktopdir.LastRun), every set when it ran in none: magpie writes both of an MSIX install's sets, and 2.31226 reads the real%LOCALAPPDATA%\Claude-3p, so the package's copy being emptied is not Desktop off magpie.unreachablenever sets anything: the config is right, and the page's pill only says what has to listen. The exception is an address a WSL distro reached Windows at before (distro.Was, kept inwsl.json) while it reaches Windows at another now: the pill offers that one, andReapplymoves the config there (Agent.move, Codex'scodexMoveGateway). An address no distro was seen at is the user's own and is never moved. An unknown answer (no probe yet) and a gateway down on loopback too are not drift. Tests stubreachProbeinTestMain.proxied(Muma102kMichael on X: every project and every new chat 502 after magpie took Codex over) is this machine's Codex sending its requests for the gateway through a proxy that doesn't pass them on, while the gateway answers here (codex_proxy.go). Codex's reqwest takesHTTP_PROXY, else the system's proxy forhttp://(macOS' HTTP entry alone, never its HTTPS or SOCKS one; Windows'ProxyServeronly when it is one address for every protocol), elseALL_PROXY, and lets only an exact IP or a CIDR inNO_PROXY(on Windows, with noNO_PROXY, the bypass list with*.taken out) keep 127.0.0.1 off it:127.*andlocalhostdon't, and macOS' exceptions aren't read. With[features] respect_system_proxyit asks the system alone, matching its list itself, wildcards and<local>included, and goes direct when no proxy is set there; a macOS SOCKS entry alone it can't use, and takesHTTP_PROXY/ALL_PROXYthen (codex-rsoutbound_proxy; tried with codex-cli 0.162.1). Its reqwest has no SOCKS, so asocks5://proxy is spoken to as an HTTP one, and the probe does the same. The environment is Codex's: the login shell's*_PROXY(proc.LoginEnv, which a terminal's Codex and the ChatGPT app's both have; only exported ones, as the probe asks a child/bin/shfor them, so fish's unexported universalhttp_proxydoesn't count, #2627) over magpie's own, which a magpie opened from the Dock lacks (liu_dyj on X: aNO_PROXY=127.0.0.1in the profile, or a macOS proxy with no HTTP entry, warned while Codex went direct).codexProxyForworks out that proxy the same way, and aGET /through it must come back as magpie's (proxyProbe), tried asreachableis. Its pill says how to fix it, asunreachable's does, naming the proxy and the variable it was read from,http_proxyorHTTP_PROXYas it is (Addr,Detail), throughnetproxy.Redact, without its user and password (#1886), while the probe goes through it whole, and the dialog has Disconnect from magpie. Account failover, which magpie writes uninvited, waits for that probe (codexProxyOK) and isn't written while the proxy doesn't pass Codex on, and one it wrote goes again. Tests stub the env, the system proxy andproxyProbeinTestMain.- Listing never starts a stopped WSL distro. A stopped distro's agent shows what was last seen there (
asleep,wsl.json); setting one of its fields writes its files, which starts the distro. - Codex's sign-in (
login) is ChatGPT ("", the default), Always ChatGPT (chatgpt) or magpie API (api). With ChatGPT, magpie's models join Codex's own beside the sign-in (openai_base_url), and while the Codex app holds the ChatGPT account Codex is signed in to (codexUsedUp,provider.CodexUsedUp: OpenAI no longer allows the account and it has no credits left, a workspace still within its overage excepted), magpie is made Codex's provider (codex.out): the Codex app sends nothing at all on an account it holds, a magpie model's turn included (#540), and as a provider of its own magpie is past that. A window at 100% with credits left doesn't count, and Codex stays signed in. Sync puts it back beside the sign-in once the account has room. Always ChatGPT never does that: Codex stays in its ChatGPT state, and the Codex app may send nothing till the account has room, while Codex CLI's turns still reach magpie by the base URL, and its routing and other accounts serve them. With magpie API, Codex'sgetAuthStatusreturns no token (its provider has norequires_openai_auth), so its Chrome control turns away; the option's note says to pick ChatGPT to keep it (#1824). While magpie is Codex's provider (magpie API, orcodex.out),Joinedreports false although thecodex.joinedmark stays for Sync's way back: the Agents row said Codex's own models stay in/modelbeside magpie's, the ChatGPT state the Codex app blocks sending in, and the app only leaves that state once it is restarted (#2267,TestCodexProviderIsNotJoined). A Codex that reaches the gateway from another machine (a WSL distro under NAT, orMAGPIE_ADDRpinned beyond loopback,onAnotherMachine(at.gw())) is wired as one with no ChatGPT sign-in (chatGPT()is false there): never joined or beside, since beside its sign-in it would send its ChatGPT token to/backend-api/codex, and from there the gateway takes a named key alone, so every request was a 401 (#2145,TestCodexBeyondLoopbackNotJoined). magpie is its provider and it sendsgwKey(), the LAN sharing key; one of its own models picked goes straight to OpenAI on its sign-in. - Codex signed in to ChatGPT and not connected still gets
openai_base_urlwhile more of its ChatGPT accounts are on in magpie (failover, stashcodex.failover; with a CC Switch mirror as its provider, the mirror'sbase_urlandcodex.mirror_failover), so a turn its own account has no allowance for goes on to the next — never for a Codex that reaches the gateway from another machine, where that path takes a named key alone and the failed-over turn came back a 401 (#2145,TestCodexFailoverBeyondLoopbackNotWritten); Sync takes one it wrote before off again. That Codex isFailingOver: notWired, yet its requests go through magpie. The Agents row says so and what turns it off (FailoverSaidin the CLI and TUI,failoverin/api/state, a button to Providers › Codex in the GUI), and the gateway hands it only its own models from/backend-api/codex/models(CodexOwnOnly, set ongateway.CodexOwnOnlyby main; its ETag carriesprovider.CodexOwnListTag, and Sync ages amodels_cache.jsonwithout it). A connected WSL Codex shares the gateway path, so while one is connected every Codex gets magpie's models (#1385). A base URL the user wrote by hand (#856) isn't failover's and stays a plain not-connected row. A Codex the user disconnected gets no failover till they connect it again. The app serving the gateway takes failover out as it quits (EndFailover,EndCodexFailoverinOnShutdown), so a Codex left on its own goes straight to OpenAI rather than retrying a gateway that's gone (Leon920717 on X); the next start's Sync writes it again. Codex's app-server read the old base URL as it started and keeps it, andKeepCodexDaemonCurrentends with magpie, soEndCodexFailoverrestarts it there when no codex session is on it (codexDaemonCheck); with one on it, it stays on the gone gateway until the user restarts it (thisisvainxx on X: "several restarts"). A connected Codex keeps magpie as it quits: its model is one of magpie's, and Disconnect is what puts its own config back. A magpie that ends without quitting (killed, a crash,magpie serve) leaves failover in place. - A Codex thread keeps the provider it was started on. While a magpie model is on, CC Switch's provider tables go through magpie too (
takeTables), and get their own base URL back when Codex steps off magpie (giveTables, stashcodex.tables). CC Switch's OpenAI mirror (a table of another id,name = "OpenAI",requires_openai_auth, nobase_url) isn't reached byopenai_base_url, which takes only the built-in provider to magpie: a thread started on it and reopened went straight to ChatGPT, which refused the magpie model picked in it, and magpie never saw the request (#1796). While Codex goes to magpie by the base URL,takeMirrorsgives each such mirror magpie's ChatGPT backend as itsbase_url(stashcodex.mirrors), andgiveMirrorstakes it off again; a mirror a profile names, or one whosebase_urlwas changed since, stays as it is. Moving the threads onto another provider is the Sessions page's Move (#887). - An agent's config is written in the form the installed version reads, taken from what that version declares, not the latest one. VSCodium has no Copilot Chat of its own, and the Marketplace's last one (0.48.1) has no Custom Endpoint provider, only OpenAI Compatible (
customoai, #1014). magpie reads the provider list in the package.json of thegithub.copilot-chatinstalled under~/.vscode-oss/extensions(vscodeChatOf). It writes its group forcustomendpointwhen that is declared, forcustomoaiwhen only that is, with each model's window asmaxInputTokens+maxOutputTokensand the token asx-api-key(that version drops an Authorization inrequestHeaders). A missing or unreadable extension keepscustomendpoint. Sync rewrites a group written for the other provider, and Check reports it, as it does a Copilot Chat declaring neither. That Copilot Chat registers its providers only while signed in to GitHub with a personal Copilot plan, which the Notice says. - Tuned settings are written only on the user's click, never by Sync or Connect. The value there before is stashed once (
tune.<agent>.<knob>[.<model>]instash.json), so Undo puts it back, or takes the key out (and amodelSettingsentry left empty). A value the user changed after the click is theirs: Undo then only forgets the stash. A variable that comes before the setting (CLAUDE_CODE_AUTO_COMPACT_WINDOW,FORCE_PROMPT_CACHING_5M,CLAUDE_CODE_PROMPT_CACHE_TTL,CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL, in settings.json'senvor magpie's own) is shown aslockedand Apply refuses, since the setting would change nothing. Claude Code compacts at the smaller of the window set and the model's own (its/autocompactsays "capped to 200k by model"), so advice starts from that, and a model that isn't Claude's has no window here (magpie's own compact wiring serves it). Codex's window is the one magpie's catalog lists for each model it ran (typed, or the vendor's), and with none in config.toml it runs now at what magpie tells Codex (provider.CompactFor, else Settings › Long conversations, ascodexcatwrites it); a model of magpie's whose window isn't known caps nothing short of 1M (or the user's own larger value), never the largest prompt seen (zhemu on Discord: a 1M model at 750K was offered up to 410K), and only Codex's own models, outside the catalog, keep 272K or the largest prompt (codexWindow,TestTuneWindowsAreTheUsers). Advice changes a value only when the replay saves 3% or more, and of the windows within 1% of the cheapest takes the largest; with the compactions timed, it never advises a window that compacts more often than the one now, so never a longer wait: of the windows that compact no more often it takes the cheapest, and of those within 3% of that (sameCost, the same bar as changing at all) the one that compacts least, the larger of two that compact as often. Tokens and seconds share no unit the files measure, so the advice doesn't trade one for the other at a guessed rate; a cheaper window that waits longer is said with its wait in the row and the picker, for the user to choose. The wait per compaction is taken as the same at every window: the files time compactions only near the window the user ran with, too narrow to fit how it grows with the prompt. Tokens are weighed as billed: cache reads 0.1, 5-minute writes 1.25, hour writes 2, output 5 for Claude; reads 0.1, writes 1, output 8 otherwise. - A plugin's agent writes each key in place (JSON, YAML or env), the user's comments and other keys kept. An object or array
connectreturns is taken as its JSON text (agentplug.keys), so it is written in the order the plugin gave it, not sorted as a Go map would be: Kilo lists its effort variants in key order (#1890,TestPluggedKeepsPluginOrder). What each key held before the first write is stashed underplugin:<id>:<path>, typed, and its own model or Disconnect puts every key back and takes out the ones that weren't there; the file is never written whole. Aconnectthat throws or takes over a second writes nothing and says why. Its gateway key ismagpie-<id>(agentKeyAt), and usage names its requests by that key or by itsuawords (usage.PluginAgents). Itsagent.library(instructions,mcpwithmcpFormat, skills) gives it the Library's three as well, written byinternal/libraryas any agent's are (library); amcpFormatoutsideagentplug.MCPFormats, or anmcpwithout one, keeps the plugin from loading. - StepCode config root resolves to the parent of an absolute
STEP_CODING_AGENT_DIR(agent resources directory differs from config root; relative values ignored), orSTEPCODE_CONFIG_DIRunder home when native, defaulting to~/.stepcode(stepcode.go). Project configs override global configs in StepCode, but magpie manages global configuration only (config.tomlandmodels.json). Detection is strictly directory-only viaagentDir, avoiding collision with Smallstep's barestepcommand onPATH. Wiring performs an atomic two-file edit (models.jsonprovider block andconfig.tomltop-level defaults/scope) backed bystash.json. Custom fields withinproviders.magpieare preserved during sync, and the original provider block is restored on disconnect. A renamed provider'smagpie/<old>/entries inenabledModelsfollow it, a glob or a thinking level included, and the scope remembered for disconnect follows too; the user's other entries stay. Disconnect restores original defaults, preserves user native changes and custom scope edits, and removes newly created files only when empty. - MothX's folder is
$MOTHX_DIRas it is (no~), else%APPDATA%\mothxon Windows, else~/.mothx; a WSL distro's is its~/.mothx(mothx.go). ItsthinkingFormatisopenaiunless the user set one: with it empty, MothX picks Qwen'senable_thinking, DeepSeek'sthinkingor Doubao's levels by the model id, which for magpie's ids says nothing of the vendor that serves them. MothX's/modeland/statusline … globalrewrite the whole file, so Disconnect after one takes out magpie's provider, the pick and aprovidersleft empty (MothX omits an empty one), and keeps the rest. - An agent is detected by its config file, its folder, or its command on magpie's PATH (
Detected). That PATH is the login shell's plus the folders users' tools go in (proc.UserPath:~/.local/bin, npm's prefixes, the Node nvm's default alias resolves to (the highest installed when it names none), bun, Homebrew, ...), so a CLI a terminal doesn't find can still be found and listed: an npm install under a Node the terminal no longer uses./api/agents/clithen gives where it is (path) andoffPathwhen the login shell's PATH (proc.LoginPath) lacks its folder, and the Agents row says "Not on your terminal's PATH", its tip naming the file (悠悠哥 on Discord: Codex 0.162.1 listed with no codex on PATH and no~/.codex). An unknown login PATH says nothing. A folder another tool writes too doesn't count (dirShared): Pi's for omp,~/.copilotfor the Copilot CLI, which GitHub Copilot's JetBrains and VS Code plugins also write, and Qoder's and Qoder CN's, which Qoder's JetBrains plugin fills, and~/.cursorfor Cursor CLI, which the Cursor editor makes on its own (TestCursorFolderFromTheEditorIsNotTheCLI, @G_Z_Y on X); onlycli-config.jsonorcursor-agentfinds Cursor CLI. A config file another tool writes first counts only whenpathOwnsays it is the agent's: Qoder'ssettings.jsonholdingenabledPluginsalone is the plugin's (qoderPluginOnly; #1495,TestCopilotFolderFromAnIDEPluginIsNotTheCLI,TestQoderSettingsFromAnIDEPluginIsNotTheCLI). The Qoder app (the desktop app, which runs Qoder's CLI as its agent with the same folder) is found by the.qoder-app-status.jsonit writes there (sign,qoderApp; #2138,TestQoderAppIsQoder), as itssettings.jsoncan be its bundled plugin'senabledPluginsalone. Only the GUI anddaemon installwiden the PATH so;magpie serve,web,tuiand the CLI keep the one they were started with, so an agent's CLI (cliBin, which its version andomp's max effort are read from) is looked for in those folders (proc.FindTool) on every system when it isn't on the PATH, not only on Windows (whqtian on Discord: omp under~/.bun/binon Ubuntu read as no version and offered xhigh in place of max;TestOmpVersionOffPath). - Detection goes by an agent's folder, which an uninstall leaves behind, so an agent found by that alone is shown as gone (
CLIMissing; #843, #2177, #2173): its CLI is on no PATH and in none ofproc.FindTool's folders nor where its own installer puts it (~/.claude/local,~/.codex/packages/standalone,~/.opencode/bin, Hermes'hermes-agentcheckout), and nothing else that reads the folder is here (cliHeld): its desktop app (HasApp), an editor's extension (~/.<editor>/extensions/<id>-*:anthropic.claude-code,openai.chatgpt,saoudrizwan.claude-dev), Claude.app, OpenCode.app and Goose.app on a Mac, a JetBrains IDE's settings (its AI Assistant's agents and Cline's plugin) or Zed'sexternal_agents(its Claude Code and Codex adapters). Where magpie can't tell (every shared folder,cliShared, on Windows, whose readers can be a Store app, a portable editor or a PATH only a shell profile sets, #1482, and there too one a desktop app of the agent's reads,desktopApps: DeepSeek Harness Desktop installs to any folder and puts itsdsh.cmdin one the user picks, #2300, #2304; OpenCode and Goose off a Mac, Gemini, an agent detected its own way or by a command name other tools share, one with no install command butcliOnly's Hermes), it is never gone. A gone row in the GUI shows "CLI not found" and none of its settings, nor Apply again; while connected it keeps its switch and Disconnect, and it folds under Not set up once not. Get started never offers it (connectKindis "no"). The TUI leaves it out andmagpie lssays "CLI not found" (TestCLIMissing*,agent-cli-missing.test.cjs,getting-started.test.cjs). - Tests never touch the real machine.
TestMainusestestenv, which points HOME, USERPROFILE, the XDG folders and APPDATA into a temporary folder, clearsagentenv.Varsand puts failing stand-ins for keychain tools and agent CLIs on PATH. Agent-specific side effects (Aside, the Zed keychain, Codex's usage check) are also stubbed inTestMain.
Verification
go test -tags nogui ./internal/agent -run '^TestStepCode'
go test -tags nogui ./internal/agent -run '^TestMothX'
go test -tags nogui ./internal/agent -run 'TestClaudeAutoModeReview|TestT3CodeAutoModeReview|TestConnect|TestDisconnect|Drift|TestKeptAddress|TestWSLAgentAddress|TestReachProbe|TestDryRunKnowsTheAskersProviders|TestReseat|TestPort|TestWSL|TestClaudeKeepsItsClaudeAISignIn|TestClaudeSignIn|TestClaudeOwnEndpointWithAnEmptyKey|TestClaudeAtAnOlderGatewayAddress'
go test -tags nogui ./internal/agent
go test -tags nogui ./internal/agent -run '^TestAir'
go test -tags nogui ./internal/agent -run 'TestReverseProxy|TestClaudeManagedProxyIsStillMagpie|TestMagpieProbe|TestCodexBehindReverseProxy|TestCodexSignedInBehindReverseProxy|TestAwayPath|TestClaudeBehindLocalProxyKeepsIt'
go test -tags nogui ./internal/agent ./internal/edit -run 'TestSyncKeepsAnAddressOnAnotherMachine|TestKeptAwayOnlyWhatIsSure|TestKeyValuesFormats|TestFilteredWrites|TestOwnWritesDuringASyncWithALinkedConfig'
go test -tags nogui ./internal/edit -run 'BOM|CRLF'
go test -tags nogui ./internal/agent ./internal/proc -run 'ClaudeCloud|TestT3CodeSaysAClaudeCloudSwitch|TestLoginEnvClaudeProvidersNotSet'
go test -tags nogui ./internal/agent -run '^TestAnte'
go test -tags nogui ./internal/agent -run '^TestAstrBot'
go test -tags nogui ./internal/agent -run '^TestJcode'
go test -tags nogui ./internal/agent -run '^TestRaycast'
go test -tags nogui ./internal/agent -run '^TestOpenPencil'
go test -tags nogui ./internal/agent -run '^TestGrokApp'
go test -tags nogui ./internal/agent -run 'ClaudeScience'
go test -tags nogui ./internal/gateway -run 'TestClaudeScience'
go test -tags nogui ./internal/agent -run '^TestPlugged'
go test -tags nogui ./internal/agent -run 'TestCodexFailoverOnlyKeepsOwnModels|TestCodexOwnModelThroughMagpieWhileAccountsOn|TestCodexHandWrittenBaseURLStays|TestCodexProxyFor|TestRealProxyProbe|TestCodexEnvTakesLoginShell|TestCodexFailoverHeldWhileProxyDoesNotPassOn|TestCodexProxiedDrift|TestCodexFailoverEndsWithMagpie|TestCodexMirrorFailoverHeldAndEndsWithMagpie'
go test -tags nogui ./internal/agent -run 'TestDisconnectStaysThroughSync|TestCodexDisconnectStaysWithAccountsOn|TestCodexAPIDisconnectStays'
go test -tags nogui ./internal/tune ./internal/agent -run 'TestCompact|TestCacheTTL|TestTune'
go test -tags nogui ./internal/sessions -run 'CompactTook'
node --test internal/gui/tests/context-tune.test.cjs
node --test internal/gui/tests/agent-connect.test.cjs internal/gui/tests/agent-disconnect-preview.test.cjs internal/gui/tests/claude-signin.test.cjs internal/gui/tests/agent-failover.test.cjs internal/gui/tests/agent-proxied.test.cjs internal/gui/tests/plugin-agent.test.cjs
Lody import handoff
lody.go detects Lody by its home folder
(~/.lody, ~/.lody-oss) only when it holds an entry Lody makes there
(workspace-catalog.json, loro-repo, agent-binaries or
code-collab-v2), so a bare folder of that name another tool made isn't
Lody; by its Electron data folder under the OS's config folder (Lody, Lody
OSS, Lody Nightly: ~/Library/Application Support, %APPDATA%,
~/.config); or by a macOS bundle whose id starts ai.lody. (the real app
is ai.lody.desktop). A Windows or Linux install that has never been
opened has no data folder yet and isn't shown. Its row opens
lody://provider/import?v=1&data=<base64url JSON> with the Magpie envelope
and seven runtime targets. Only loopback HTTP gateways are offered; the key
is always the public attribution token magpie-lody, never a LAN secret.
With MAGPIE_ADDR pinned beyond loopback there is no link: the row has no
button, and magpie lody add says why and opens nothing
(TestLodyLinkCarriesNoSecret). The OS chooses the installed Lody handler. A compatible Lody build must
implement this import route.
Lody asks which Providers to add, names them with -magpie, and writes only
to the current desktop's local machine after confirmation. Magpie does not
read or write Lody's private document store, select models there, or claim
that opening the link completed the import. Lody exposes no public status
reader: Agent.Added remains nil and the JSON row omits added. The GUI
shows a confirmation hint for this unknown state; Cindy still reports its
known true/false status. Reopening the link lets Lody handle duplicates.
Bub requires its separately installed ACP plugin.