diff --git a/docs/subsystems/library.md b/docs/subsystems/library.md index 5577d0517..2d90f6966 100644 --- a/docs/subsystems/library.md +++ b/docs/subsystems/library.md @@ -42,7 +42,7 @@ Pi's extensions and packages. | RTK | `SetRTK` runs rtk's own installer (`rtk init -g …`) for an agent being switched on. For one being switched off, it removes exactly what the installer wrote, using magpie's own code, which works even with rtk gone. An rtk.exe in one of winget's folders that winget has no record of (`winget list` says so, or its records name another folder; netube99 on X, 0x8A150014) is upgraded from rtk's own Windows release over the file a `WinGet\Links` link points to, not by `winget upgrade`. `ReadRTK` reads each agent's files to say which have the hook. An agent gone for its CLI (`CLIMissing`, #2254) isn't offered rtk, but one that still has the hook is listed so it can be taken out. `rtkSpec.blocked` stops the installer where it would break an agent. `rtkSpec.env` tells the installer the agent's folder where rtk would pick another: Hermes Agent's is `appdir.HermesHome` (`%LOCALAPPDATA%\hermes` on Windows), which rtk is given as `HERMES_HOME`, since rtk 0.51 knows only `$HERMES_HOME` and `~/.hermes`. Antigravity CLI (`agy`, #2202) gets rtk 0.51's own plugin for Antigravity, `plugins/rtk` in its global customization folder `~/.gemini/config` (`plugin.json`, `hooks.json` with `PreToolUse` → `rtk hook antigravity`, `rules/AGENTS.md`), which `agy plugin list` lists; switching it off takes that one folder out. rtk 0.50 knows Antigravity only per project and fails `rtk init -g --agent antigravity`, so an older rtk is `blocked` (`agyBlocked`) and the row says to update RTK. OpenCode 2 loads only the plugin rtk 0.52 on writes (one default object with `id` and `setup()`, rtk-ai/rtk#4187); an older rtk's plugin is for OpenCode 1 and OpenCode 2 refuses it, so with an OpenCode 2 here an older rtk is `blocked` (`openCodeBlocked`) and the row says to update RTK (#2295). Under OpenCode 2, an old plugin left from before an rtk update counts as off once the rtk here can write the new one (`openCodeHas`), so switching it on writes the new one over it; with an older rtk it counts as on, so it can be switched off. Factory's Droid (lml0664 on Discord) gets rtk's own `rtk init -g --agent droid`, given Droid's folder as `FACTORY_HOME_OVERRIDE`; rtk puts its `Execute` group (`rtk hook droid`) in the root `hooks.json`, or in `settings.json`'s `hooks.PreToolUse` where Droid's hooks already are, so `droidHookFiles` reads and switches off all three places rtk 1.1.0 may use (`hooks.json`, `hooks/hooks.json`, `settings.json`), leaving the user's own hooks. rtk before 0.44 has no Droid agent, so it is `blocked` (`droidBlocked`). A detected agent RTK has no hook for at all is still listed, from `rtkNoHook`, with the reason and a switch that can't be turned on (dsh: its hooks can allow or deny a command but not rewrite it, and `rtk init` has no `--agent dsh`; Grok Build and Grok App: `rtk init` has no Grok or Grok App agent, so both are listed with the switch off; Qoder and Qoder CN: rtk 1.1.0 has no Qoder agent; Cline and Kimi Code: `rtk init --agent cline|kimi` writes only one project's `.clinerules` or `AGENTS.md`, instructions with no hook, and Kimi's refuses `-g`). RTK 1.1.0's Trae, Windsurf, Kilo Code and Mistral Vibe have no magpie agent. The page's No RTK hook tag gives each agent's own reason and rtk-ai/rtk issue (`rtkNoHookWhy` in plugins/library/client.js: dsh #3847, Grok Build and Grok App #2136, Qoder and Qoder CN #1327, Cline #3841), and an agent with no entry gets no link; `TestRTKNoHookIssuesAreEachAgents` fails when the page and `rtkNoHook` cite different issues, or two agents cite the same ones without a reason in `sharedRTKIssues`. | [`rtk.go`](../../internal/library/rtk.go) | | RTK in WSL | An agent in a WSL distro (`claude@wsl:Ubuntu`) is listed by its kind (`rtkKind`), and its hook runs in the distro, where Windows' rtk.exe is no command, so it gets the distro's own rtk (lex on Discord). `rtkDistroOf` asks the distro with `wsl.exe -d -e sh -lc` where rtk is (a login or interactive shell's PATH; else `~/.local/bin` or `~/.cargo/bin`, `offPath`), kept 15s; `ReadRTK` lists one `RTKDistro` for each distro its agents are in. Install RTK in WSL `` (`InstallRTKIn`, `POST /api/library/rtk/install` with `distro`, `magpie library rtk install `) runs RTK's own Linux installer in the distro (`curl -fsSL …/install.sh \| sh`, wget where there's no curl). Switching an agent on runs the distro's rtk there (`rtkInstallWSL`: `rtk init -g …` with its folder on PATH, Claude Code pointed at a folder of its own for the OpenCode and Cursor installers), and reads and edits its files under the distro's home as magpie opens it (`rtkClaudeDir`, `rtkCodexDir`, `rtkHome`). A distro that isn't running is never started (#3896): `rtkWSLLive` and `rtkDistroOf` check `agent.WSLRunning` first, its agents are listed `asleep` with the switch off, and switching or installing says to start it (`TestRTKWSLAsleep`). The page gives each distro a card (`rtkDistroCard` in plugins/library/client.js; library-rtk-wsl.test.cjs). | [`rtk_wsl.go`](../../internal/library/rtk_wsl.go) | | billion-context | `SetBili` runs bili's own `bili plugin install ` for an agent switched on and `bili plugin remove ` for one switched off; `ReadBili` reads `bili plugin list` (the agent column, then the status; `installed…` is on, `not installed` off, anything else shown as it is). `InstallBili` runs its README's `npm install -g billion-context --prefix=~/.local` (`npm install -g billion-context` on Windows), and `biliPath` finds bili there when it isn't on PATH. Offered only where bili's plugin works with magpie in front (`biliLanes`): Pi, omp and OpenCode load it in process and still send to magpie, and Claude Code goes through bili's proxy, which forwards to the gateway (`ANTHROPIC_BASE_URL` `…/bili/`). Codex's lane is an MCP server only, ZCode's routes only its own provider, Kimi Code's renames `default_model` to `bili-kimi` at every start and dsh's install failed through dsh's pnpm, so none of those is offered; neither is an agent in WSL. bili's remove doesn't restore a file: it leaves `"packages": []` in Pi's settings and `extensions:` in omp's config, and after magpie rewrote Claude Code's settings.json it deleted `ANTHROPIC_BASE_URL` (Claude Code then went to Anthropic) and put back its own `DISABLE_AUTO_COMPACT`. So switching on keeps each file it writes as it was before and after (`bili-plugins.json` in magpie's config folder), and `biliRestore` after the remove writes the file before back byte for byte when nothing changed it since, else merges JSON (`biliMergeJSON`): what the install changed and is still as installed goes back, a value changed since stays, and what the remove changed beyond the install is put back. Without a record (bili installed outside magpie), only a Claude Code `ANTHROPIC_BASE_URL` the remove took out goes back to the address bili forwarded to. The `.bili-bak` and `.bili-last` files bili leaves beside each file go with it. bili's Claude Code install also writes `DISABLE_AUTO_COMPACT` "1" into the shared settings.json, so a session bili doesn't fold (the Claude desktop app's Code tab, which sets its own `ANTHROPIC_BASE_URL`, bili's #2290, or a window larger than the one magpie serves) has no compaction left and Claude Code answers every message with "Prompt is too long" without sending it. `biliKeepCompact` writes "0" in its place after the install (bili's own reinstall keeps a value that isn't "1"), unless the file had a `DISABLE_AUTO_COMPACT` of the user's own before; `keepBiliCompact`, from `KeepLinked` at start, does the same for a plugin installed before and has the record say "0", so switching off still takes it away. Zed has no plugin of bili's; bili's README lists it through the launcher (`bili zed`, Linux only, which leaves a provider on loopback direct, so it never passes magpie's gateway) and, on every system, the `/bili/` prefix its docs give for a client whose model address can be edited. So Zed is a URL lane (`biliURLLanes`, [`bili_url.go`](../../internal/library/bili_url.go)): switched on, `biliServe` has `bili start --port 8787` answer (`GET /__bili/health` says `{"ok":true}`; one the user runs is used as it is, else magpie runs its own under `KeepLinked`'s context, logging to `bili-start.log`), then `agent.ZedThrough` puts the magpie provider's `api_url` at `http://127.0.0.1:8787/bili//v1` and saves the key for that address in the system's credential store, where Zed looks it up by the address. Zed must be on magpie first. A pick and a sync keep the prefix while magpie answers through it (`zedReach`, the proxy recognition of #1985); switched off, `api_url` goes back to the gateway and magpie's `bili start` ends when no agent goes through the prefix. `keepBiliServe`, from `KeepLinked`, starts it again at magpie's start while Zed is on. `TestBiliZedThroughPrefix`, `TestZedThroughBili`. Hermes is a URL lane too: bili's Hermes plugin (`bili plugin install hermes`, `hermes-plugin/__init__.py` `apply_env`) routes Hermes by setting `HTTPS_PROXY` in its process and nothing else, so magpie's provider at `http://127.0.0.1` never passes it and nothing would fold. Switched on, `agent.HermesThrough` puts the `base_url` of magpie's entries (`magpie`, `magpie-anthropic`) behind the prefix in the connected config and every profile that has them; `hermesEntries` keeps a prefix on loopback with a path (`hermesPrefix`) across a pick and a sync, and `wiringOff` takes it as magpie's (`reachesMagpie`). A profile that gets magpie's entries later goes to the gateway until Hermes is switched on again. `TestBiliHermesThroughPrefix`, `TestHermesThroughBili`. dsh is a URL lane too, for the same reason (`dsh plugin add billion-context` rides dsh's process proxy settings, which a route at `http://127.0.0.1` never takes): `agent.DshThrough` runs `dshSyncFresh` with the gateway's address behind the prefix, so magpie's route in every profile and the home layer has its `baseURL` there, and `dshReach` reads the prefix back from the profiles' routes (a loopback path before the gateway's address) so a sync, a pick, `Check` and the serving round (`dshWiredWith`) keep it. A profile dsh makes later gets it with its route. `TestDshThroughBili`, `TestBiliDshThroughPrefix`. What bili saved is its own count ([`bili_saved.go`](../../internal/library/bili_saved.go)): bili 0.1.213 has no command that prints it, and its running proxy serves its dashboard's numbers at `GET /__bili/overview`, summed over every session in its one store for every agent and lane. `readBiliSaved` asks the bilis registered in `/instances/.json` (`$XDG_STATE_HOME` or `~/.local/state`, then `billion-context`, on every system), newest `startedAt` first, loopback `http` origins only, within 3s in all; a file a crashed bili left behind just fails. The first answer is `BiliView.Saved` (`netSavedTotal` as `net`, only with `hasFoldData`; `grossSavedTotal`, which bili calls an upper bound; `foldsTotal`, `sessions`, `requests`) and is kept in `bili-saved.json` in magpie's config folder, shown with `live: false` and its time when no bili answers. magpie never starts a bili to ask (it would auto-update and start watchers). `TestBiliSavedFromRunningBili` (the literal overview in `testdata/bili`), `TestBiliSavedNoFolds`, `TestBiliSavedNoneYet`, `TestBiliSavedOnThePage`, `TestBiliLoopback`. `TestBiliClaudeKeepsAutoCompact`, `TestBiliOnOffExact`, `TestBiliClaudeKeepsMagpiesRoute`, `TestBiliOffWithoutRecord`; the page's tab is `renderBili` (library-bili.test.cjs). | [`bili.go`](../../internal/library/bili.go) | -| billion-context.json | The tab's Settings (@Luxzinw on X) change bili's own config, found by bili's `src/paths.ts`: `BILI_CONFIG_FILE`, else `$XDG_CONFIG_HOME` (or `~/.config`, `%USERPROFILE%\.config` on Windows) then `billion-context/billion-context.json` (`BiliConfigFile`). `ReadBiliSettings` reads it as JSONC; `SetBiliSettings` changes four of its `compress` keys and nothing else, through `edit.PatchJSON` (comments, BOM and every other key kept) and a temporary file renamed in: `nudgeGrowthTokens` (1000 to 10,000,000; empty takes it out, bili's 50000), `requireNudge` (off takes it out), `externalSummary` (`enabled` with `targets`, the picked one first, at most 16) and `prompts.compressPhilosophy` with `acknowledgePromptsRisk`, which bili needs before it reads a prompt override (under Advanced). bili turns off the whole compress section on one bad value, so magpie writes only values bili accepts and refuses a summary with no target. A model of magpie's is a recipe `providers.magpie` (`api: openai`, the gateway's `/v1`, `credentialRef: magpie`), its key the gateway's for the agent `billion-context` saved in bili's own credential store `.summary-credentials.json` the way bili writes it (0600, an `O_EXCL` `.lock`, a temporary file renamed in); a user's own `providers.magpie` is never taken over. A file bili can't read is said so and left alone. After a change every running bili (`biliOrigins`, loopback only) is asked `POST /__bili/config/reload`; bili reloads routes and compress there, and the page says when none did. The file is carried in the library part (see [sync and backup](sync-backup.md)), the credential store never. `TestBiliConfigFileWhereBiliLooks`, `TestBiliSettingsChanged`, `TestBiliSettingsRefused`, `TestBiliKeyStoreKeptPrivate`, `TestBiliSettingsRoute`; the page is `biliSettings` (library-bili-settings.test.cjs). | [`bili_config.go`](../../internal/library/bili_config.go) | +| billion-context.json | The tab's Settings (@Luxzinw on X) change bili's own config, found by bili's `src/paths.ts`: `BILI_CONFIG_FILE`, else `$XDG_CONFIG_HOME` (or `~/.config`, `%USERPROFILE%\.config` on Windows) then `billion-context/billion-context.json` (`BiliConfigFile`). `ReadBiliSettings` reads it as JSONC; `SetBiliSettings` changes five of its `compress` keys and nothing else, through `edit.PatchJSON` (comments, BOM and every other key kept) and a temporary file renamed in: `nudgeGrowthTokens` (1000 to 10,000,000; empty takes it out, bili's 50000), `requireNudge` (off takes it out), `externalSummary` (`enabled` with `targets`, the picked one first, at most 16) and `prompts.compressPhilosophy` with `acknowledgePromptsRisk`, which bili needs before it reads a prompt override (under Advanced). `visibilityMarkers` (@JamesYu32 on X, under Advanced): bili's 📦/❌ lines after a compress, decompress or search_context call, on by default; off writes `false`, on takes the key out, and a provider's or model's own `compress.visibilityMarkers` is left as it is. bili turns off the whole compress section on one bad value, so magpie writes only values bili accepts and refuses a summary with no target. A model of magpie's is a recipe `providers.magpie` (`api: openai`, the gateway's `/v1`, `credentialRef: magpie`), its key the gateway's for the agent `billion-context` saved in bili's own credential store `.summary-credentials.json` the way bili writes it (0600, an `O_EXCL` `.lock`, a temporary file renamed in); a user's own `providers.magpie` is never taken over. A file bili can't read is said so and left alone. After a change every running bili (`biliOrigins`, loopback only) is asked `POST /__bili/config/reload`; bili reloads routes and compress there, and the page says when none did. The file is carried in the library part (see [sync and backup](sync-backup.md)), the credential store never. `TestBiliConfigFileWhereBiliLooks`, `TestBiliSettingsChanged`, `TestBiliSettingsRefused`, `TestBiliMarkersSwitch`, `TestBiliKeyStoreKeptPrivate`, `TestBiliSettingsRoute`; the page is `biliSettings` (library-bili-settings.test.cjs). | [`bili_config.go`](../../internal/library/bili_config.go) | | Pi extensions | Each Pi here, this computer's and each WSL distro's (`piPlaces`), with the extensions and packages it loads, read by Pi's own rules (`@earendil-works/pi-coding-agent` 1.4: `resolveExtensionEntries`, `isEnabledByOverrides`, `applyPatterns`). An extension is a `.ts`/`.js` file or a folder (package.json `pi.extensions`, else `index.ts`, else `index.js`) in `/extensions`, or a path its settings.json `extensions` lists; a package is an entry of settings.json `packages`. Built-in extensions (`builtin:mcp` and the rest) aren't listed: `builtin:mcp` carries the MCP servers magpie gives Pi. `SetPiExtension` writes what `pi config` writes (`-path` off; the `-` taken out and `+path` only where still excluded, on); `SetPiPackage` sets a package's four filters to `[]` (off) or takes them out (on), and refuses an entry that already picks some parts (`filtered`, changed in `pi config`). `CopyPi` gives a package to another Pi as its settings.json entry, which Pi installs itself when it next starts (npm into `/npm`, git into `/git`), never as copied files; it refuses a local package, and one the other Pi has already by Pi's identity (npm name, git host/path). An extension is copied as its file or folder into the other's `extensions`, leaving out `node_modules`, `.git` and symlinks, never over one of the same name, and the page says to run `npm install` there when it has dependencies (leokon3 on Discord). A settings.json that can't be parsed lists nothing and is never written; a stopped distro is never started (`asleep`); every write is backed up first. `GET`/`POST /api/library/pi`, `POST /api/library/pi/copy`; the Library's Pi packages tab, shown while a Pi is here (`renderPi` in plugins/library/client.js; library-pi-extensions.test.cjs). | [`piext.go`](../../internal/library/piext.go) | | Pi market | `MarketPiPackages` lists npm's packages with the keyword `pi-package`, the way pi.dev's gallery finds them: the 500 most downloaded (two pages of npm's search, sorted by last month's downloads), cached 6h in memory and on disk, else the bundled `market_pi.json`; a search of two or more characters adds npm's own `keywords:pi-package ` search, and a search npm doesn't answer keeps the popular matches with a `SearchError` (the page says so). Every name is held to npm's rules (`piNameRe`), and a repository link is https only. `InstallPiPackage` runs `pi install npm:` with `PI_CODING_AGENT_DIR` set to that Pi's folder (`piRun`), then checks settings.json lists it; `RemovePiPackage` runs `pi remove `, which drops every entry of the same identity and uninstalls it. A Pi with no `pi` here (a WSL distro's, or this computer's with no CLI on PATH) gets the settings.json entry written, or taken out, instead, and Pi installs it when it next starts (`pending`). Both refuse an unreadable settings.json, install refuses a package the Pi has by Pi's identity, and each write is backed up first. `GET /api/library/market/pi`, `POST /api/library/pi/install`, `POST /api/library/pi/remove`; Discover under the Pi packages tab (`piCard`, `installPi`, `confirmRemovePi` in plugins/library/client.js; library-pi-market.test.cjs) marks a package every running Pi has Installed, and Install asks which Pi when several lack it (nineruiing on X). | [`pimarket.go`](../../internal/library/pimarket.go) | diff --git a/internal/gui/assets/plugins/library/client.js b/internal/gui/assets/plugins/library/client.js index 92135172a..172569cb0 100644 --- a/internal/gui/assets/plugins/library/client.js +++ b/internal/gui/assets/plugins/library/client.js @@ -2013,6 +2013,17 @@ magpie.plugin("library", (ctx) => { const more = el("details", "lib-more lib-bili-more"); more.append(el("summary", "", t("Advanced"))); + // compress.visibilityMarkers: the 📦/❌ lines after a fold, which + // some models imitate (@JamesYu32 on X) + const marks = el("div", "list lib-list lib-bili-marks"); + const mk = toggle(s.markers !== false, t("Show compression markers"), (v) => biliChange({ markers: v })); + mk.disabled = biliSetBusy; + const mr = el("div", "row lib-row"); + const mw = el("div", "who"); + mw.append(el("div", "name", t("Show compression markers"))); + mr.append(mw, el("span", "grow"), mk); + marks.append(mr); + more.append(marks); const ph = el("div", "lib-bili-phil"); ph.append(el("div", "name", t("Compression philosophy"))); const ta = el("textarea", "lib-text small"); diff --git a/internal/gui/assets/plugins/library/i18n.js b/internal/gui/assets/plugins/library/i18n.js index 3379595ae..493b79889 100644 --- a/internal/gui/assets/plugins/library/i18n.js +++ b/internal/gui/assets/plugins/library/i18n.js @@ -997,6 +997,7 @@ magpie.strings({ "Fold only when nudged": "仅在提示后折叠", "Nudge every": "提示间隔", "Compression philosophy": "压缩理念", + "Show compression markers": "显示压缩标记", "billion-context's own": "billion-context 自带的", "Replaces billion-context's guidance on what a fold keeps. Setting it also tells billion-context you accept the risk of changing its prompts.": "替换 billion-context 关于折叠时保留什么的指引。设置后也会告诉 billion-context 你接受修改其提示词的风险。", "billion-context.json can't be read, so magpie leaves it alone. Fix it or take it out to change these here.": "billion-context.json 无法读取,magpie 不会改动它。修好或删掉它后才能在这里修改。", @@ -2035,6 +2036,7 @@ magpie.strings({ "Fold only when nudged": "僅在提示後折疊", "Nudge every": "提示間隔", "Compression philosophy": "壓縮理念", + "Show compression markers": "顯示壓縮標記", "billion-context's own": "billion-context 內建的", "Replaces billion-context's guidance on what a fold keeps. Setting it also tells billion-context you accept the risk of changing its prompts.": "取代 billion-context 關於折疊時保留什麼的指引。設定後也會告訴 billion-context 你接受修改其提示詞的風險。", "billion-context.json can't be read, so magpie leaves it alone. Fix it or take it out to change these here.": "billion-context.json 無法讀取,magpie 不會改動它。修好或刪除它後才能在這裡修改。", @@ -3073,6 +3075,7 @@ magpie.strings({ "Fold only when nudged": "ナッジ後にのみ折りたたむ", "Nudge every": "ナッジ間隔", "Compression philosophy": "圧縮の方針", + "Show compression markers": "圧縮マーカーを表示", "billion-context's own": "billion-context の既定", "Replaces billion-context's guidance on what a fold keeps. Setting it also tells billion-context you accept the risk of changing its prompts.": "折りたたみで何を残すかについての billion-context の指針を置き換えます。設定すると、プロンプト変更のリスクを受け入れることも billion-context に伝えます。", "billion-context.json can't be read, so magpie leaves it alone. Fix it or take it out to change these here.": "billion-context.json を読み込めないため、magpie は変更しません。ここで変更するには、修正するか削除してください。", @@ -4111,6 +4114,7 @@ magpie.strings({ "Fold only when nudged": "Nur nach einem Anstoß falten", "Nudge every": "Anstoß alle", "Compression philosophy": "Komprimierungsleitlinie", + "Show compression markers": "Komprimierungsmarker anzeigen", "billion-context's own": "Die von billion-context", "Replaces billion-context's guidance on what a fold keeps. Setting it also tells billion-context you accept the risk of changing its prompts.": "Ersetzt die Leitlinie von billion-context dazu, was eine Faltung behält. Damit sagst du billion-context auch, dass du das Risiko geänderter Prompts in Kauf nimmst.", "billion-context.json can't be read, so magpie leaves it alone. Fix it or take it out to change these here.": "billion-context.json lässt sich nicht lesen, daher lässt magpie sie unverändert. Repariere oder entferne sie, um das hier zu ändern.", diff --git a/internal/gui/assets/plugins/library/library.css b/internal/gui/assets/plugins/library/library.css index 764c1b86e..69abe9fb8 100644 --- a/internal/gui/assets/plugins/library/library.css +++ b/internal/gui/assets/plugins/library/library.css @@ -950,6 +950,7 @@ input.lib-memq:focus, input.lib-memtags:focus, input.lib-memwhy:focus { border-c .lib-bili-more > summary:hover { color: var(--fg); } .lib-bili-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } @media (prefers-reduced-motion: reduce) { .lib-bili-more > summary, .lib-bili-more > summary::before { transition: none; } } +.lib-bili-more > .lib-bili-marks { margin: 8px 0 0 15px; } .lib-bili-phil { display: grid; gap: 6px; padding: 8px 0 0 15px; } .lib-bili-phil > .name { font-size: 12.5px; color: var(--fg-2); } .lib-bili-phil .lib-acts { justify-content: flex-end; } diff --git a/internal/gui/tests/library-bili-settings.test.cjs b/internal/gui/tests/library-bili-settings.test.cjs index 6e4976d3e..220963753 100644 --- a/internal/gui/tests/library-bili-settings.test.cjs +++ b/internal/gui/tests/library-bili-settings.test.cjs @@ -2,7 +2,8 @@ // billion-context.json's settings in the Library's billion-context tab // (@Luxzinw on X): below the agents, the summary model with its switch, // fold only when nudged, and the nudge step in front; the compression -// philosophy under Advanced, folded until opened. Each change posts only +// philosophy and the compression markers' switch (@JamesYu32 on X: +// compress.visibilityMarkers) under Advanced, folded until opened. Each change posts only // what changed to /api/library/bili/settings, and the status says whether // the running billion-context reloaded it. The model is picked from the // app's menu (never a