Signs in with Google (Antigravity's client, PKCE, loopback) or imports a
refresh token / account-manager export, sets up the Code Assist project
(loadCodeAssist, onboardUser on the default tier), lists the account's
models with level variants, and sends every request through
v1internal:streamGenerateContent in the app's envelope, with the
built-in's request shaping (system-prompt cloak, tool ids and results,
schema flattening, Claude and Gemini rules), its error mapping (turned-away
429 -> 400 unapproved channel, 404 model, refused refresh -> 401 expired)
and its usage windows and pools.
A stream's last chunk is an empty text part; sent back in the next turn,
Claude refuses it ("text: Field required"). Both the whole-reply reader and
the request shaper drop it.
Run:
- bun test packages/antigravity on mote: 78 pass, 0 fail.
- bun scripts/check.mjs antigravity: registry.json ok, antigravity ok.
- Real account (the built-in's saved Google account, read only, sandbox
HOME): model list; stream and generateContent on gemini-3.8-flash; the
effort header picking -low; claude-sonnet-4-6, claude-opus-4-6-thinking,
gpt-oss-120b-medium all answer; a Claude Code system prompt to Gemini
answers 200 (cloak); an unknown model 404; usage gives plan, model
windows and the Gemini and Claude & GPT 7-day pools; a tool call round
trip on Claude Sonnet, Opus thinking, Gemini and GPT-OSS.
- Broken by hand: without the empty-text drop the new shape test and the
generateContent test go red, and the real Claude round trip answered 400.
Not carried over (README): the 6h rest of a turned-away account, Google
Search grounding and image models, countTokens (404, magpie estimates),
sending the system prompt uncloaked, multi-account import, models.dev
names. Not tried: the browser sign-in end to end (the import path was).
It said 30 models; main had 47 before #927 and 58 after. A count goes
stale with every model update, so the summary just names the labs.
Run: JSON parses (node -e JSON.parse). bun scripts/check.mjs not run
for a one-string text change.
Lists magpie-model-quota 0.1.2 (page plugin, port 3497) in registry.json.
Reviewed at head 943da6b777ea3f23e02887c99a9c139b4e7a9c48. The npm tarball
magpie-model-quota@0.1.2 matches GitHub 1sh1ro/magpie-model-quota at 366de7dc
file for file (the repo adds only .gitignore, PUBLISHING.md,
registry-entry.json and test.mjs).
Run in WSL (magpie-desktop), sandbox HOME, server on 127.0.0.1:3502:
- refused: Host attacker.localhost:P, 127.0.0.2:P, 127.0.0.1:9, localhost
(no port), localhost.:P, [::1]:P, evil.com (403); Origin null without the
key (401); Origin http://localhost:9, :9999, attacker.localhost:P,
127.0.0.2:P, evil.com with the key (403); no key or a wrong key (401);
index.html to Sec-Fetch-Mode cors/no-cors (403); path traversal (404).
- served: navigation to / with the key injected; /api/report with the key
from 127.0.0.1, localhost + same Origin, and Origin null.
- a restart makes a new key; the old one gets 401. Nothing is written to
the sandbox HOME.
- bun scripts/check.mjs on a git archive of the PR head: registry.json and
every package pass.
Not changed, not blocking: usage.jsonl is read whole and kept in memory,
and accounts are matched by substring (report.mjs:418-447).
Co-authored-by: 1sh1ro <1sh1ro@users.noreply.github.com>
Adds the community muse-auth plugin (magpie-muse-auth, Meta's Muse) to registry.json, in the contributor lane, without the community flag.
Reviewed at d68ed7c4. Against current main the merged tree changes registry.json only (3+/1-). The icon URL returns 200, and npm has magpie-muse-auth 0.1.3.
Run: bun scripts/check.mjs on the merged tree on mote, rc=0.
Not tried: signing in to Muse with a real account.
binary() looked only for /Applications/Doubao.app (豆包,
com.bot.pc.doubao). The reporter has only 豆包工作 at
/Applications/DoubaoWork.app/Contents/MacOS/DoubaoWork
(com.work.pc.doubao), so sign-in always said the app was missing.
choose() now picks { app, binary, dataDir } from both apps, 豆包工作
first, in /Applications and ~/Applications on macOS and under
%LOCALAPPDATA% on Windows. A user already signed in to 豆包 through
the plugin (its profile exists) stays on 豆包 while it is installed, so
the update signs no one out. 豆包工作 keeps its profile, port and model
list in a doubaowork/ subfolder. DOUBAO_WORK_APP still names the binary.
The chat page check (owns, connect) accepts doubaowork://doubaowork-chat/chat
and chrome://doubaowork-chat/chat as well as 豆包's. The busy and
not-installed messages name the chosen app and its download page.
Run (mote, worktree at 6cb5dbe8 + this change; origin/main 1bdc4d4b only
adds an autoclaw change):
- bun test packages/doubao-work: 36 pass, 0 fail.
- bun scripts/check.mjs: exit 0, doubao-work ok.
- Live on this Mac with DoubaoWork 2.36.3 (copied out of the official
dmg) and a sandbox DOUBAO_WORK_HOME: choose picked 豆包工作, App.start
launched it, owns accepted it, the page reported
chrome://doubaowork-chat/chat, input present, signed out; the model
menu read 自动 / 豆包 2.1 Lite / 豆包 2.1 Pro; the new-task and 云电脑
steps ran on the real page. A second connect reused the running app.
- 豆包 2.35.8 with a temp profile: same chat page test ids.
Broken by hand (mote): choose searching only 豆包 made "a Mac with only
豆包工作 drives 豆包工作 (#917)" red; the old owns regex made "both apps'
chat pages are the plugin's" red (34 pass, 2 fail). The old code has no
choose/isChat and binary() returns Doubao.app, so the #917 test is red
on it.
Not tried: a signed-in request (no 豆包工作 account here). Windows: the
path %LOCALAPPDATA%\DoubaoWork\Application\app\DoubaoWork.exe comes from
DoubaoWork_installer_2.36.3.exe's config (install_dir_name DoubaoWork,
exe_file_name DoubaoWork.exe) and 豆包's layout; not installed on the
Windows box. Running 豆包工作 and 豆包 side by side.
Reported-by: sinoyster
Names the magpie-review-rules listing "Claude Desktop Review & Model Rules" so the card says which app it targets. Only `name` changes; the npm spec and plugin identity are the same.
Run at 9d004be29: `bun scripts/check.mjs` (mote) passed; the diff is one line of registry.json.
Adds @magpie-community/page-usage-board: a usage dashboard page with its
own zero-dependency local service (quota cards with expiry tiers, TTFT,
7x24 heatmap, optional remote attribution).
Reviewed at 8ca2562: the author's 80137b0 plus a maintainer merge of main
(registry entry re-appended after upstream's newer packages).
Since the 6b2625d review: [::1] in MAGPIE_ADDR stays IPv6 loopback (only
0.0.0.0/[::] map to 127.0.0.1), the config-dir test compares real paths
so it passes on macOS, and the registry-block test tolerates CRLF.
Run on mote at 8ca2562: packages/page-usage-board `bun test` 36 pass,
`node --test test/*.test.mjs` 36 pass; `bun scripts/check.mjs` all ok.
Not tried this round: the page in a live magpie window.
WANGY1ER asked on X for Windows: the plugin said "macOS only", because
binary() knew only /Applications/Doubao.app. Doubao's Windows app is the
same Chromium 147 fork with the same chat page (doubao://doubao-chat/chat),
so the plugin drives it the same way.
- binary(): %LOCALAPPDATA%\Doubao\Application\app\Doubao.exe, the per-user
install's own exe (Application\Doubao.exe beside it is a launcher).
- dataDir(): %LOCALAPPDATA%\magpie-doubao-work.
- copies() is empty on Windows: Chromium keeps one copy per profile there,
so the user's own Doubao keeps running and the plugin's copy opens
beside it, in a second window. No "quit Doubao first" on Windows.
- Linux stays unsupported: Doubao has no Linux build. Its download page's
platform list is ios, android, mac, OpenHarmony, windows. The sign-in
says so.
Run:
- bun test packages/doubao-work: 29 pass on mote (temp HOME, as CI),
win-run (Windows 11) and wsl-run (Ubuntu 24.04). bun scripts/check.mjs ok.
- Live on xiaomi-gpu (Windows 11, Doubao 2.34.6 / Chromium 147), with the
owner's own Doubao running in the console session: the plugin's App
started app\Doubao.exe from its own profile beside it, its DevTools port
answered with doubao://doubao-chat/chat, owns() took it, and each step
of an ask ran in the real page: NEW_TASK "", CLOUD "" (mode 云电脑),
自动 and 豆包 2.1 Lite picked, 豆包 2.1 Pro "upgrade", fill wrote three
lines into tiptap. The owner's copy was untouched throughout.
Broken by hand:
- binary() without its win32 line: "the app is found on macOS and
Windows" is red on mote and Windows.
- copies() without its win32 line: "on Windows a running copy never
blocks" is red on mote.
Not tried: a signed-in request on Windows. That Doubao has no account
signed in (its cookie jar is empty), so Enter was not sent; signed-in
STATE relies on data-testid=sidebar_bottom as on macOS.
New page plugin: AIHOT's Token 羊毛 (free model allowances), sorted into "ready" / "plugin to set up" / "no plugin" against the user's own magpie plugins. Only the vendors in src/allowlist.js are shown; anything else (relays included) is dropped before it reaches the page.
AIHOT's written approval (2026-11-10) is quoted on the PR: free, no ads or sponsors, each user reads it once on their own computer, no proxy, mirror or redistribution, credited in the footer.
Run at 07da91b0 (on mote):
- bun test packages/free-tokens: 62 pass. bun scripts/check.mjs free-tokens: ok.
- The page served with magpie's page CSP in a sandbox="allow-scripts" frame, Chromium and WebKit: tiles 1/2/1 for a fixture of MiniMax (signed in, checked in today), ZCode (installed, not signed in), Zed (not installed), DeepSeek (no plugin) and an unlisted relay (dropped); install popover gives @magpie-community/opencode-zed-auth, login popover "magpie plugin login zcode"; a title holding <img onerror> is shown as text; brand icons load; no dialog.
- Every mapped package checked: 8 on npm, 5 on the dist branch, and each pid is the package's provider id.
- Broken by hand: checkin null guard removed, title unescaped, Zed's npm name unscoped; each turns a test red.
Not tried: a real magpie window with the plugin installed, and the live aihot.news route (no network in the run).
Co-authored-by: sljdxde <sljdxde@users.noreply.github.com>
SpecStream's Search API and Extract API as tools for every agent, and as a web search entry in Settings > Models > Web search.
Reviewed at 2ae405947ab71dab6f9557a4191a860bd92a2ddf. Run on mote: bun test packages/specstream (9 pass), bun scripts/check.mjs, bun test scripts (22 pass). Both endpoints, called for real without a key, answer 401 {"error":{"code":"missing_api_key",...}}, which unwrap() raises with its status, so a refused key rests in the rotation.
Not tried: a call with a real key.
Adds the nanobot agent adapter (packages/nanobot): magpie's model, Library MCP servers and workspace skills written into ~/.nanobot/config.json through a journaled, owner-tracked bridge, and restored on disconnect.
fc46523d resolves symlinked parent directories (macOS /var, dotfile-managed ~/.nanobot or ~/.config) while still refusing a symlinked final file, and keeps the preset on host exit; only a disconnect restores.
Run at fc46523d: `bun test` in packages/nanobot, 60 pass / 0 fail on mote (macOS, default TMPDIR under the /var link, which failed 18 of 22 at c6f8f639) and on the magpie-desktop WSL distro (Ubuntu 24.04). Not tried: a real nanobot binary driven through magpie.
Lists the external middleware magpie-review-rules 1.1.0 (youyouhdhd/magpie-review-rules) in registry.json.
Reviewed: the npm 1.1.0 tarball is byte-for-byte the repo's engine.js, middleware.js, host.mjs, install.ps1 and page files (c3143504). The middleware only acts on claude-desktop Anthropic requests; the reviewer override changes the model of a Desktop action-review request and nothing in its prompt; custom rules are the user's own code, run in magpie's moejs middleware sandbox, whose Function constructor exists (moejs engine/dynamic.go). host.mjs reads only the loopback gateway's /v1/models and writes page/catalog.js in its own folder through temp-and-rename. Nothing is turned on by a fresh install.
Run: the repo's 9 node tests on mote (Node 22), all pass. Not tried: installing it into a real magpie and sending a Desktop action review.
shannnnnks on X: with several Codex accounts behind magpie's gateway, one
is now and then signed out; they want notify to push it.
magpie v0.1.3443 calls a hooks file's onSignIn once when an account in
use must be signed in again (Codex revoked or refused, Claude, Copilot or
plugin sign-in lapsed, ...), and when a Claude sign-in ends within days.
notify pushes "⚠️ Codex account x signed out / Sign in again in magpie."
(zh with lang "zh") to the same channels. On by default (accounts: true);
one push per account and state per accountCooldownMinutes (60). Webhook
event: {kind: "signed-out"|"ending", provider, account, endsAt?}. ntfy
takes the message's tag, "warning" here. README, registry summary.
Run on mote: bun test packages/notify, 65 pass (7 new: default push, zh,
Claude ending days, accounts false, cooldown, unknown states, webhook
event); bun scripts/check.mjs ok. The new tests can't import onSignIn
from the old notify.hooks.mjs, so they fail there.
Not tried: a real push from a real revoked account.
A user installed the Day card and found it looked nothing like the
receipt in https://x.com/jasonaxb/status/2119432517170430196, and asked
for the same look. The card is now that receipt, with magpie's words in
place of the original's own:
- cream paper over a teal-to-mint ground, a zigzag torn bottom edge
and a soft shadow; heavy monospace, letter-spaced labels and dashed
rules;
- DATE and ISSUED, then the TOTAL API COST (API-equivalent, not an
invoice), then STREAK, REQUESTS, ERRORS (only when there were any)
and VS AVERAGE DAY (cost against the mean of the active days before
this one; tokens when nothing was priced);
- AGENT / MODEL with logos printed in ink, by cost; then TOTAL TOKENS,
INPUT, OUTPUT and CACHE HIT RATE;
- the original's tagline and App Store footer are magpie's own lines,
and its RANK is left out: magpie has no ranking to read.
The frame can't fetch a font file (sandboxed, opaque origin), so the
face is a subset of JetBrains Mono 2.304 (OFL, license beside it) as
woff2 data in page/fonts.js, loaded with FontFace. About 13.5KB per
weight, 400/700/800.
The average now leaves out the day itself, and money(0) reads $0.00.
Run, on mote at this tree:
- bun test packages/day-card: 12 pass (tests rewritten for the receipt:
fields, cost order, versus, dates with a held clock, fonts.js is
woff2 and loads before app.js, only usage:day is read).
- bun test scripts: 22 pass; bun scripts/check.mjs: exit 0.
- The page in a sandboxed frame under the page CSP, with the
reference's numbers and real magpie icons, in Chromium and WebKit
(Playwright 1.62.0), en, zh, de and ja: all three weights load, no
page errors, the long German title shrinks to fit; the English card
checked side by side with the tweet's image.
Not tried: the real magpie app's WKWebView, and Copy/Save from it.
TeleAgent card summaries name the integration as unofficial and list macOS and Windows, as opencode-teleagent-auth@0.2.0 declares (os: darwin, win32 on npm).
Checked: npm view --prefer-online shows 0.2.0 with os [darwin, win32]; the PR head fdf59d1 merges cleanly onto main and registry.json parses; CI test and on-npm pass at the head.
Adds packages/empty-reply (0.1.0): a reply made of reasoning alone, with
end_turn (Anthropic) or response.completed (Responses), loses its end
events so Claude Code and Codex retry; a whole reply becomes an error
body or status "failed". max_tokens, refusal and incomplete are kept.
A stopgap for yetone/magpie#3358 until the gateway checks this itself.
Reviewed at 900 head: bun test packages/empty-reply 17 pass,
bun scripts/check.mjs all packages ok, bun test scripts 22 pass (mote,
Bun 1.4.2). Read every case in cases.json against the Anthropic and
Responses stream shapes. The author ran Claude Code 2.1.319 and
codex-cli 0.167.0 against a reasoning-only Chat upstream (ordered and
rotate). Not run by the reviewer in a live gateway.
A new page plugin, @magpie-community/page-day-card, for JungleyYeh on X,
who asked for a "daily AI statement".
- It shows a chosen day (today by default, others from a date menu): its
tokens, cost, calls and errors, then each agent with its models and
icons. Below them come the streak, the average active day and the last
two weeks.
- Copy puts the card on the clipboard as an image; Save writes it as a
PNG.
- The design is quiet, with no gradients and no coloured accents, in
light and dark. It speaks en, zh, zh-TW, ja and de.
- It asks for one read, usage:day, and needs magpie 0.1.3427 (623e797fd)
for that read and for magpie.image.copy/save.
What was run (mote):
- bun test packages/day-card: 11 pass, 0 fail. Before engines.magpie
was set, the guard test was red on the placeholder.
- bun scripts/check.mjs: exit 0.
- Real use: the page in magpie's real GUI server with a sandbox HOME
holding a copy of real usage, in Chromium and WebKit, light and dark,
en/zh/zh-TW/ja/de, at 420 and 1100 px, with an earlier day picked and
Copy pressed. No page errors (magpie 623e797fd's body has the rest).
Lists opencode-xfyun-maas-auth 0.1.1 (linjicong): iFlytek Xfyun MaaS's
pay-as-you-go, Coding Plan and Token Plan, as xfyun-maas, xfyun-coding and
xfyun-token. A model vendor's own API, not a relay.
Run at the reviewed head a5e5b244, on mote:
- bun scripts/check.mjs: ok.
- The npm 0.1.1 tarball loaded in node: three plugins, 32/19/14 models,
the loader trims the key and points at each line's /v2; transformBody
turns max_tokens into max_completion_tokens and reasoning_effort into
Spark's thinking, drops thinking for open models, leaves non-JSON alone;
the fetch wrapper replaces the key and tags a 401 X-Magpie-Sign-In expired.
- The three hosts answer 401 without a key (token's /v2/models is 404,
which the plugin turns into its static table).
Not tried: a real Xfyun key.
Adds packages/rhino9-ai (0.3.2), an agent descriptor for the Magpie-Rhino companion: Rhino 9's AI panel gets a Magpie entry that uses magpie's models, custom groups and routing strategies through Rhino MCP. Windows only.
Reviewed across four rounds. The last round, at b02996c6, covered the descriptor, the registry entry, OnLoad's folder and the companion at v0.3.2. Since then, 0422f2a1 changes only docs: the Agents table row uses the folder name, and the package README describes the remembered execution mode.
Read for this head: the companion's v0.3.2..v0.3.3 diff (123ea20, d5a36af).
- The new PanelPreferences keeps a single AutoExecute bool in ~/.config/rhino9-magpie/panel-preferences.json, written through temp-and-rename. It defaults to off.
- A preferences file that can't be read leaves confirmation on.
- confirm_design_basis and the scale dialog still ask whatever this setting is.
- v0.3.3 was published by github-actions[bot] from run 42614204457 at d5a36af, and that run passed.
Run (mote) at 0422f2a1: `bun test packages/rhino9-ai` 5 pass, 0 fail; `bun scripts/check.mjs rhino9-ai` ok. The last full `bun test` (7566 pass) was at b02996c6. Only Markdown changed since.
Not tried: Rhino 9 itself (not on the test machines).
Co-authored-by: mikidaren <mikidaren@users.noreply.github.com>
Lists magpie-agent-kaku 0.1.1 (shlroland), an agent plugin for Kaku's Assistant published from its own repository.
Reviewed at 9061cd50:
- registry.json gets one entry, kind agent, with no "community" flag (the package is not ours).
- The npm tarball (0.1.1, 19 files) was read: agent.js has no imports. The bridge reads and writes only ~/.config/magpie-agent-kaku/ and Kaku's assistant.toml, through temp-and-rename. It makes no network calls and runs no child processes. Its one dependency is toml-eslint-parser 1.0.3.
Run (mote): `bun scripts/check.mjs` ok, and `bun test scripts` 22 pass, 0 fail.
Not tried: Kaku itself with the plugin installed.
Lists the external npm package opencode-teleagent-auth (provider id
teleagent, source github.com/anbulang/opencode-teleagent-auth) and adds the
comma the agy-cli entry needs before it. No other entry has teleagent, so it
is a new channel. No `community` flag, as for the other packages that live
outside this repo (magpie-deepaicode, magpie-plugin-pink).
Checked at 960151b87af47428f6eafc4ce61d40abf39c3fe9:
- npm (--prefer-online): versions 0.0.0-stage (a 2-file placeholder) and
0.1.0; one maintainer, anbulang. Downloaded 0.1.0's tarball; its sha512
matches npm's integrity. Read all 12 files.
- No install scripts (only "test"), no dependencies, no eval/Function/
dynamic import. child_process runs only `security find-generic-password
-s "TeleAgent Safe Storage" -w`, `defaults read` of TeleAgent.app's
Info.plist and `sqlite3 -readonly` on a temp copy of the app's own cookie
DB (deleted after). Reads app.asar for the desktop's built-in gateway key,
locally. Writes nothing else; magpie stores only the account folder name.
- Every request goes to agent.teleai.com.cn only (chat gateway and the
points portal); no telemetry or other host. The token, cookies and the
keychain-derived token never leave for anywhere else.
- index.mjs and lib/*.mjs in the tarball are byte-identical to the repo's
v0.1.0 tag and to main; package.json matches v0.1.0 (main has since
renamed the repo URL).
- Icon URL answers 200 and is a plain SVG.
- On mote at the PR head, temp HOME: `bun scripts/check.mjs` ✓ registry.json
and every package, exit 0; `bun test scripts/` 22 pass, 0 fail.
Not tried: signing in or sending a request (no TeleAgent account).
kimi-desktop 0.1.6: separate reasoning effort and an optional context input budget for the primary and secondary roles.
The change (f07e7f4a..1d14a185, since the round-6 approval):
- The settings page and API save `<role>ReasoningEffort` and `<role>ContextTokens` for each role. Only efforts and context limits the catalog publishes are offered; an unknown limit allows no custom budget.
- Inference drops Kimi's top-level `thinking`, `reasoning` and `reasoning_effort`, and sends the chosen effort, or none for the provider default. Kimi's native menu aliases no longer choose the model.
- A custom budget counts a copy of the request through magpie's `/v1/messages/count_tokens`. Over the budget gives 400 `context_length_exceeded`; a failed count gives fixed 503 `context_count_unavailable`. No generation is sent in either case. Without a budget, nothing extra is sent.
- Role-scoped worker profiles (`v2:[model, role]`) tell primary from secondary even on the same model. Older roleless profiles keep their binding and use defaults.
- 1d14a185 removes blank lines only.
Run at 1d14a1859f63fd4bb512d492d1de419ad3e6c79a on mote (macOS, Bun 1.4.2, HOME/TMPDIR/XDG in the run's own folder):
- `bun test` in packages/kimi-desktop: 626 pass, 0 fail, 29 files.
- `bun scripts/check.mjs kimi-desktop`: exit 0.
- 14 hand breaks, each red in the package suite:
- drop `applyReasoningOptions`;
- strip thinking fields only when an effort is set;
- drop the budget check, or make it `>=`;
- `useFresh` false, or without its model check;
- a legacy roleless profile treated as primary;
- a profile name without its role;
- no `registerRoles`;
- no `optionsMatch` in save;
- no `refreshLiveModelOptions`;
- count with `redirect: 'follow'`, or with no reply size limit;
- a 131072 fallback for an unknown catalog context.
- CI at the head: test and on-npm pass. The PR merges onto main f379bf90+ with no conflicts.
Not blocking, left for a follow-up:
- Each inference now reads connection.json (adapter.mjs:547) with no fallback to the live connection. An unreadable file turns every request into 502, even without a budget.
- The comment above `applyReasoningOptions` ("Preserve the legacy connection untouched…") no longer matches the always-strip policy.
Doubao Work runs its agent loop in ByteDance's cloud and has no API. This
plugin uses the desktop app the way a person does and gives the reply back
as an OpenAI chat completion:
- cdp.mjs (knows nothing about Doubao): starts a Chromium-based app from a
profile of its own with DevTools on a port it picked and saved, reuses it
while it runs, never kills anything; Page evaluates and presses keys.
- doubao.mjs: per request a new 工作任务, switched to 云电脑 (Doubao's agent
never touches this computer), the model picked (Pro needs a paid plan:
403), the whole request written into tiptap one paragraph a line, Enter,
and the reply read from the message's content_blocks_v2 (markdown, and
thinking as reasoning_content) until is_finish. One request at a time.
- prompt.mjs / openai.mjs: system prompt, tools and turns flattened into one
message; tools asked for as <tool_call>{json}</tool_call> and given back
as tool_calls; SSE that holds text from the first call (or a tail that
may start one), and that throws a failure before the reply begins so it
goes back as an HTTP error.
- Sign-in waits for the account in the separate Doubao window.
Run:
- bun test packages/doubao-work on mote: 24 pass.
- Full suite on mote the way CI runs it (HOME=$(mktemp -d) bun test):
6936 pass, 20 skip, 0 fail. bun scripts/check.mjs: doubao-work ok.
- Broken by hand: sleep without its aborted check; "an abort between two
polls stops the ask too" goes red (runs to the 180s idle timeout), green
with it. Found by the first run: an abort landing between polls was lost.
- Live, the loader against a signed-in Doubao 147 on macOS: auto plain
answer 200 in 3.9s; doubao-2.1-lite streamed Bash tool call (first byte
3.6s, total 4.8s); tool result follow-up answered "412 lines"; Pro gave
403 doubao_upgrade; a 300-word story streamed as 20 content deltas with
its ```python fence kept; a client abort ended the stream and the next
request answered 200.
Not tried: through magpie's plugin host and a real agent (Claude Code
sized requests); Windows and Linux (unsupported, sign-in says so). A
stopped request stops being read but Doubao finishes its task (README).
Credits manjughosa as the author of output-strategy: an "author" field in its package.json, and "by manjughosa" / "由 manjughosa 维护。" at the end of its registry summary.
No version bump: nothing under lib/ changes, and nothing published changes in a way users notice.
Reviewed at 957d2981: the diff is these 4 lines. Both files parse as JSON and have no CR bytes. CI (test, on-npm) is green at this head.
Adds the Eta agent plugin (@magpie-community/agent-eta 0.1.0): eta.agent.js descriptor, registry entry and README row.
Run at 43320fbb on mote in a temp HOME: bun test ./packages/eta 5 pass; bun scripts/check.mjs eta ok; npm pack --dry-run 5 files; repo-root bun test 6623 pass / 21 fail, the same 21 as main 7d84184c. Broken by hand: allowing https gateways and removing the registry entry each turn one test red.
Co-authored-by: Lingwcy <Lingwcy@users.noreply.github.com>
New package `@magpie-community/opencode-agy-cli-auth` (provider `agy-cli`, `packages/agy-cli`). It serves Antigravity models through the user's installed `agy` CLI over ACP (`agy acp`) and uses agy's own Google sign-in. The plugin reads and writes no Google tokens.
The bridge is gitxm's. On top of it, after review:
- **ACP identity.** The client names itself (`opencode-agy-cli-auth` and its package version) instead of `zed`.
- **Catalog.**
- Only what agy offers this client is listed: Gemini until a session says more, then the session's model option and `availableModels`.
- Requests are still routed by everything `agy models` lists.
- **Prompt.** agy keeps its own system prompt by default. The minimal agent is opt-in with `AGY_BRIDGE_MINIMAL_AGENT=1`, and the README says what turning it on sends upstream.
- **Version check.** agy older than 1.4.12 is refused at the handshake. 1.4.12 is the oldest version the `nc` MCP bridge was checked on, and the README documents the bridge.
- **Auto-update.**
- `AGY_CLI_DISABLE_AUTO_UPDATE` defaults to `true` only for the plugin's own agy processes.
- A value the user set is passed on as written.
- **Docs.** The READMEs and the registry summary say how this differs from antigravity-acp (#87).
- **Tests.** The author's tests came over under `test/` with a fake agy (an ACP stdio server). Each suite runs in its own `bun test`, and a `mock.module` preload stands in for `node:child_process`.
- **Cleanup.** A duplicate, unreachable image branch in validateBody is gone.
Run at ae5eafb0 on mote (macOS) with HOME=$(mktemp -d):
- `bun test packages/agy-cli`: 7 pass. Per suite:
- platform 14, compat 9, usage 20;
- catalog 15, usage-settlement 18, repeat-batch 14;
- smoke ALL OK (301 checks).
- `bun scripts/check.mjs`: all ok.
- Repo-wide `bun test`: 6792 pass, 0 fail (6812 tests, 492 files).
Broken by hand, and each went red:
- clientInfo set back to zed;
- the version check turned off;
- routing limited to the listed models;
- auto-update forced to true;
- the minimal agent on by default.
Not tried: a real agy, since mote has none, or a real Antigravity account.
Co-authored-by: gitxm <21175063+gitxm@users.noreply.github.com>
Tabbit runs two sites with one API: web.tabbit.com (China) and
web.tabbit.ai (international). Each site refuses the other's tokens.
The plugin only knew .com, so every international account was refused
with 401 "invalid bearer". The reporter saw this as a lost sign-in.
The site is now picked by the account, with nothing to set:
- A desktop sign-in reads the token from whichever host's cookie has
it, web.tabbit.com or web.tabbit.ai. The host's own hash prefix
unseals it, and the site is recorded in the account's metadata.site.
- A pasted token, or an account from before this change, starts on
.com. If .com refuses it, the same request is sent once to .ai.
- If .ai accepts it, the token is remembered as .ai's for the process.
- If both sites refuse it, it stays on .com and is reported as an
expired sign-in, as before.
- If .ai can't be reached, nothing is settled.
- A 429 or 5xx settles nothing either.
- The catalog answers any token, so it settles nothing. The model list
asks usage first to learn the site, so an international account gets
.ai's catalog.
- Origin and Referer follow the site.
Not fixed here: .ai answers a chat run with 429 code 492 ("Welcome to
Tabbit Browser"), its browser sign-in gate. Sign-in, the model list,
usage and check-in work on .ai. Turns get the 429 passed through as it
is, not marked as a lost sign-in. The README says so.
Run on mote (Bun 1.4.2, Node 22, HOME=$(mktemp -d)):
- packages/tabbit: bun test 70 pass, 0 fail; node --test 70 pass, 0 fail.
- bun scripts/check.mjs tabbit: ok.
- Repo-wide bun test: 6797 pass, 20 skip, 0 fail (6817 tests, 492 files).
The new tests use the reporter's literal bodies from #833 (the 401
"invalid bearer" and the 492 gate JSON) against a stubbed fetch, so
nothing reaches the network.
- Against the old src (the new tests kept), 8 of the 9 site tests
fail on their assertions, and so do both new cookie tests ("not
signed in to web.tabbit.com"). The one that passes is the .com
regression test, as it should.
Broken by hand, each change red in exactly the test meant for it:
- (a) no learning when both sites refuse: "a token both sites refuse".
- (b) an unreachable site settles .com: "web.tabbit.ai out of reach".
- (c) no usage probe before the catalog: "an international token's
model list".
- (d) learning on any non-refused answer: "a 5xx or the catalog
settles no site".
Not tried:
- a real web.tabbit.ai or web.tabbit.com account;
- a real Tabbit Browser cookie store holding a web.tabbit.ai row (its
host_key is assumed to be web.tabbit.ai);
- getting past the 492 gate on .ai.
No magpie-side change is needed: magpie has no tabbit mover or min.
Reported-by: Beyfish
Adds MiniMax Design (packages/minimax-design, @magpie-community/agent-minimax-design 0.1.0) as a magpie agent.
Its one switch writes a single custom-model entry, `config.customModels.user-custom-magpie`, into Design's `%APPDATA%\@hilo\desktop\hub-config.json`. The entry points at magpie's local /v1 with the gateway key and magpie's model list. Reasoning levels are filtered to the ones Design knows (low to max). Disconnecting removes the whole entry and leaves the user's other custom models alone. The agent is Windows only: its paths lean on $APPDATA and $LOCALAPPDATA, so it is never detected on macOS or Linux, and the agent's notice says so.
Also in this change:
- a README Agents row;
- a registry entry;
- COMPATIBILITY.md.
Verified by the author with real use: Windows 11, MiniMax Design 3.0.17, magpie 0.1.3238. Connect writes the entry, Design's model menu shows Magpie, and requests reach the gateway, attributed to minimax-design. Disconnect removes only the entry, and its preview lists it (magpie 0d70f335e, v0.1.3200).
Run at the reviewed head 8e09f13c on a separate macOS machine, with a throwaway HOME (Bun 1.4.2):
- bun test packages/minimax-design: 7 pass, 0 fail.
- bun scripts/check.mjs minimax-design: ok.
- Repo-wide bun test: 6791 pass, 20 skip, 1 fail. The one failure is gcp-ai's ADC consent test (plugin.test.mjs:422), red only under a concurrent full suite. It is green 6 of 6 alone, and the package isn't touched here.
Not tried: a real Design install on the reviewer's side, and macOS/Linux (unsupported).
New package @magpie-community/opencode-inkstone-auth 0.1.0 for Intern
InkStone (书生·端砚, Shanghai AI Lab) Token Plan, provider id
`intern-inkstone`. Community package by yunwang2442-creator.
What it does:
- Browser sign-in (Edge/Chrome, its own profile under
$XDG_CONFIG_HOME or ~/.config/magpie/inkstone-browser, or
%LOCALAPPDATA%\magpie\inkstone-browser). The login window has no
debugging port. A headless CDP read takes the uaa-token cookie, and the
same read renews it silently later.
- Usage card: ink-credit balance, 5-hour and 7-day windows, credit packs.
- Chat: a pasted ink-* API key, or one the sign-in creates, named
ink-<host4>-<acct4>-<rand4> (18 of the console's 20 characters). An
idempotency clash (-15109) retries with a fresh name, up to three times.
Pruning is on by default. It only touches this machine's and account's
prefix, keeps the newest two and the key this sign-in created, and never
deletes manual keys or keys of unknown age.
- Closing on Unix: SIGTERM, then SIGKILL only after a 15s grace. Leftover
browsers are matched by --user-data-dir=<escaped profile>, and Windows
uses .Contains().
- The login wait comes from an injected waitForLogin in tests. No env
hook is left in production code.
- Hosts: discovery.intern-ai.org.cn, discovery-api.intern-ai.org.cn,
127.0.0.1 (CDP).
Outside the package: scripts/opencode2.mjs lets a prompt with
`required: false` stay optional (`p.required !== false`). Every package's
copy is synced byte for byte, so all 39 copies in the merged tree are blob
afe074cb. No other package sets `required: false` on a prompt, so this
changes nothing for them. Also a root README row and a registry entry.
Review at 36412a15, on mote, HOME=$(mktemp -d), Bun 1.4.2:
- bun test packages/inkstone: 68 pass, 0 fail in Asia/Shanghai, UTC,
America/Los_Angeles and Pacific/Kiritimati.
- bun scripts/check.mjs inkstone and bun scripts/check.mjs: ok.
- bun test (repo), on 36412a15 merged with origin/main e7cb9dc5:
6743 pass, 20 skip, 0 fail. main has since moved by cline 0.1.14 and
zcode 0.1.55 only, and none of the adapter copies changed.
- Broken by hand, each red: no protectName protection; prune_keys default
off; no post-sign-in prune; no SIGTERM on close; the -15109 retry keeping
its name.
Not tried: a real InkStone account sign-in on macOS, Linux or Windows (no
account here); a live chat request; magpie end to end with the plugin.
Lists the community Search Mix plugin under its npm package name,
magpie-search-mix, in registry.json and the README table, so the Plugins
page names it as a community plugin (#724). The zh summary now opens with
混合搜索. The en summary is unchanged.
npm (--prefer-online): magpie-search-mix latest is 0.1.2 (2026-11-07),
magpie.name "magpie-search-mix". 0.1.1 -> 0.1.2 renames the display and
search API name and adds a README section; no new code, endpoints or
dependencies.
Run at merged head 16fe7e9c (origin/main 090b46ba + 331c51cb) on mote,
Bun 1.4.2, HOME=$(mktemp -d): `bun scripts/check.mjs` exit 0, all ok;
`bun test scripts/` 22 pass, 0 fail.
Adds packages/nowledge-mem-agent (@magpie-community/agent-nowledge-mem
0.1.0), a kind: agent registry entry and a row in the README's Agents table.
Picking a magpie model for the "Nowledge Mem / AI Now" agent points
Nowledge's Default, AI Now and Background purposes at one native
`magpie:nowledge-agent` provider instance; disconnecting restores what the
user had. Distinct from packages/nowledge-mem (gateway recall/capture).
The descriptor (nowledge-mem.agent.js) records the selection; a
dependency-free Bun main syncs it through Nowledge's /remote-llm/* routes
with a journal, manual-edit detection, a restore phase, a pid lock and 0600
atomic writes. Remote backends need HTTPS with a key, redirects are
refused, and unchanged remote polls back off to 30s.
Reviewed head d3b6e3937b371dea24839fe602818c4e6aa4d03d, merged onto
origin/main 049295f5 (clean). Run on mote (macOS) and WSL2 Ubuntu 24.04,
Bun 1.4.2, HOME=$(mktemp -d) each run:
- bun test packages/nowledge-mem-agent: 28 pass, 0 fail (both machines)
- bun scripts/check.mjs nowledge-mem-agent: ok (it skips agent hooks)
- bun scripts/check.mjs: exit 0
- repo-root bun test: 6608 pass, 20 skip, 0 fail (479 files)
Broken by hand, one at a time, each red on the named test:
redirect: 'error'; the quiet-period return; the remote backoff skip;
!referenced before provider removal; defaultRestored before turning
Remote off; the native provider_type check; the per-purpose shape check;
the sandbox's XDG containment; the sandbox's agent-home deletes; the
sandbox's HOME check (its two halves together; each alone is covered by
the other).
Not tried by the reviewer: a real Nowledge Mem app or nmem (the author
reports a contract run on Nowledge 0.10.115), the opt-in smoke and
contract scripts, the runtime inside magpie's plugin host, Windows.
Adds @magpie-community/middleware-output-strategy 0.2.0. It is middleware only. It appends composable output-style instructions before the model call, and has a small selection page.
- Codex `instructions` stay byte-identical. The styles go into a `developer` input item at input[0].
- An existing marker means the body was already applied, and it passes unchanged, so the prompt cache holds across turns.
- It writes nothing to disk and has no hooks or telemetry.
- PROVENANCE credits OmniRoute v3.8.52.
Run at 9b47678ba (mote, Bun 1.4.2, HOME=$(mktemp -d)):
- package bun test: 49 pass, 0 fail;
- repo bun test: 6555 pass, 0 fail;
- scripts/check.mjs output-strategy: ok;
- magpie's moejs engine at origin/main 8e350155b: the Claude Code system field is identical over four turns, and the Codex input prefix is stable;
- 12 guards broken by hand, each one red.
- PR CI (test, on-npm): green.
Not tried: real accounts, Codex over websocket, Windows, Linux.
Lists magpie-deepaicode (aqiu817) in registry.json: DeepAI Code with
browser sign-in, the desktop app's saved credentials or an API key, the
device's real machine fingerprint, live models, daily Theos quota and
check-in.
The first review blocked 0.1.1 for its per-account fingerprint (it farmed
DeepAI's daily free quota), its account-pool gateway and debug logs that
printed keys. npm latest 0.2.0 (gitHead e18c6b3, tarball identical to the
repo at that commit) removes all three. A probe against the tarball gave
two keys, one asking for machineMode "account", the same machineFp and the
same X-DeepAI-Code-Machine header.
Run at 4ae03eba (on 0daaf15b), on mote with HOME in a temp folder:
bun scripts/check.mjs exit 0; bun test 6489 pass, 20 skip, 0 fail. The
plugin's own node --test at e18c6b3: 54 pass. Broken by hand: the paste
debug line logging inputs goes red; the desktop debug line and a per-key
fingerprint stay green (follow-ups asked on the PR).
Not tried: a real DeepAI account.
Lists Qiniu MaaS (hub-qiniu) under magpie-providers-hub in registry.json:
the provider list gains hub-qiniu, and the en/zh summaries say eleven
providers and describe the Qiniu channel (80+ models, one endpoint,
https://api.qnaigc.com/v1). Reopens#772, whose branch was rebuilt; both
of #772's blocking points (model count, endpoint named two ways) are fixed
here. Qiniu serves its own models as a cloud, and lakegan handed the
channel over to the hub on #374, so this is the only Qiniu entry.
Run at 1225f2b0 (on origin/main 0daaf15b), on mote with HOME in a temp
folder: bun scripts/check.mjs exits 0; bun test 6489 pass, 20 skip,
0 fail. npm latest is still magpie-providers-hub 0.12.2 (shasum
c6a441d0, last modified 2026-11-06T00:29Z, the tarball #772's review
matched to the repo at 55b720d byte for byte and ran 229 pass / 1 skip /
0 fail, with the clock and planKeys fixes each broken by hand). Its
index.mjs exports HubQiniuPlugin, the eleven providers match the registry
list, and LICENSES/opencode-qiniu-auth-MIT.txt ships. GET
https://api.qnaigc.com/v1/models answered 89 models today, so "80+" holds.
Not tried: a real Qiniu key.
Lists magpie-search-mix (mdwsk88/magpie-search-mix, npm magpie-search-mix@0.1.0) in registry.json and the README's Web search
APIs table: a search API that asks two of Tavily, Brave, Exa, Firecrawl, You.com, DeepSeek, Doubao Search, Yuanbao Search and
SearXNG at once and gives their pages in turn, deduplicated. kind tools, community true, as @guotree/magpie-websearch.
Reviewed: every line of the npm 0.1.0 package, byte-identical to the repo at 8d535f3. No server of the author's, no
dependencies or install scripts; each key goes only to its own vendor's API or the base URL the user gives, redirects not
followed; logs off by default and never hold the query or a key. Not a relay or reseller.
Run on a macOS box with HOME=$(mktemp -d), at 97f34721 merged on main f58fa9d9:
- bun test: 6489 pass, 0 fail; bun scripts/check.mjs: 48 ok; registryProblems(registry.json): none.
- package's own bun test: 69 pass, 0 fail; red when redirects are followed, a key is left unmasked, the query is not hidden,
one source is accepted, dedup or key rests are removed.
- real: keyless You.com gave 3 pages in 1.8 s; with a bogus Tavily key beside it, Tavily was turned away (key masked) and
You.com's pages came back.
Not tried: the keyed vendors, and inside magpie's GUI.
Browser sign-in for AStudio (fresh Chrome/Edge profile, harvest ssoSessionId +
account_id, exchange through auth/bearer-token), one pool slot per account
(accountId = uid), and a check-in that reads the daily GRANT ledger first and
sends no write when today's grant is already there. Windows built in
Beijing time; transient-only retries; profiles removed on every path.
Reviewed at 11da33c74442328eae462311914eb0ef177946a7, run on a test machine
with a temp HOME:
- bun test packages/astudio 78/78 in Asia/Shanghai, UTC and
America/Los_Angeles; node --test 78/78.
- bun scripts/check.mjs astudio ok; repo bun test 6275 pass, 0 fail.
- Merged onto main 86778e66: astudio 78/78, check.mjs ok, repo bun test
6489 pass, 0 fail.
- Broken by hand, each red: 5xx not transient, catalog redirect dropped,
browser precheck dropped, check-in gated on token, profile kept on
abort/timeout/launch failure, the "0 分钟" label.
- 0.2.0 is the next version (dist index has 0.1.4).
Not tried: a real iFLYTEK account.
New package @magpie-community/middleware-privacy-gate 0.1.0 (siml1169): a
gateway middleware that refuses image, file and audio parts, encoded blobs
and models outside an allowlist before a request leaves magpie, or in
binaryPolicy "guide" replaces each binary part with a short text note. A
typo in any option falls back to the stricter side; a malformed allowModels
refuses every request.
Reviewed at 2a998b73b4ae5f6ae072f12ea9ef27008692c892 (earlier rounds at
ab8c0ebe and before):
- mote, HOME=$(mktemp -d), Bun 1.4.2, merged onto origin/main 6549b633:
bun test packages/privacy-gate 62 pass; bun scripts/check.mjs ok.
- Broken by hand: the allowModels check off (2 red), guide mode's blob scan
removed (3 red), the mime check removed (1 red).
- magpie's own middleware engine (origin/main 3cbb7e042) with this file:
~90 cases across binaryPolicy typos, guide mode bounds, signatures and
allowModels typos, all as wanted apart from the documented value cap.
Not tried: a real vendor or DSH, streaming bodies, Windows and Linux.
New provider package @magpie-community/opencode-warp-auth 0.1.0: Warp (the
terminal) AI request credits through the Warp app's sign-in (macOS
Keychain, Windows DPAPI, Linux Secret Service, read-only) or a refresh
token; the account's model list, usage/bonus credits, streaming and tool
calls over Warp's HTTP/2 protobuf API with backpressure. Ships the 1.x
entry (opencode.mjs, main) and the shared 2.x adapter (opencode2.mjs,
exports["."]). Registry entry added. Released through the dist branch
until an owner does the first npm publish.
Reviewed head 62db17e93, merged onto main 6de02a0a. Run there (mote,
temporary HOME): bun test packages/warp 122 pass 0 fail; bun
scripts/check.mjs warp ok; whole repo bun test --timeout 60000 6371 pass
20 skip 0 fail; 2.x load via exports["."] with a fake context registers
both sign-in methods, the warp provider (11 models) and its sdk hook.
Broken by hand: exports -> index.mjs, _internal exported from main,
opencode2.mjs out of files, a one-byte drift in opencode2.mjs, and main
exporting no plugin each make check.mjs fail (the last also the entry
test). Earlier rounds (10-09/10-12, at 0ae2bc3, identical warp code)
broke backpressure, the refresh-token method and the Keychain hex decode
by hand and saw their tests fail.
Not tried: a real Warp account through OpenCode 2.x; Linux with a real
account.
Co-authored-by: guoqchen1001 <guoqchen1001@users.noreply.github.com>
New package @magpie-community/opencode-mclaw-auth 0.5.2 (joey-41): China
Mobile Cloud's MClaw agent (ai.yun.139.com) as a provider. A browser
sign-in in a dedicated Chrome profile per sign-in harvests the yun.139.com
ticket and fetches the llm key and the model multipliers by itself; the
models come from the account's own lists; the usage card reads the
aitokens pool and, through the vip SSO chain (toSourceId 001005), the
records' own endTime as the reset; the ticket is renewed headless from the
account's own profile, and a ticket for another phone number is refused.
Every host is China Mobile's own. registry.json and the README table list
it.
Reviewed at 905e2a6b, 7ed7d0aa and 7304ac15 (0.5.2, edcd9549 plus a
merge of main). The last review's two must-fixes are in the code:
magpie's cancel (callback(undefined, { signal }) and authorize's signal
both call harvesting.abort(); startBrowserHarvest records an abort while
Chrome is still starting and closes it once open), and a failed,
cancelled or timed-out sign-in deletes its signin-* profile dir after
releasing the lock. Re-signing an account leaving its old dir behind is
in the package README as a known limit.
Run at 7304ac15 (origin/main 10a61c2e already in it), sandbox HOME:
- mote, Bun 1.4.2: bun test in packages/mclaw 30 pass, 0 fail;
bun scripts/check.mjs mclaw and bun scripts/check.mjs (all) ok.
- WSL Ubuntu 24.04, Bun 1.4.2: whole-repo bun test (see the PR).
- The real startBrowserHarvest with Chrome for Testing on mote, aborted
before Chrome was up and 4s after: both reject "登录已取消", no Chrome
left on the profile, no signin-* dir left.
- Review test: authorize and callback given separate signals, as
magpie's host does, only the callback's aborted: closed and released.
With callback's listener taken out it goes red (5s timeout).
Not tried: a real MClaw sign-in (no account here). The package's own
magpie-style test hands both calls one signal, so it stays green
without callback's listener; that is the only gap seen.
npm: the name is new, so trusted publishing can't create it; magpie
serves it from the dist branch until an owner publishes its first
version.
strip matched only <think>, so a model that opens its reply with
<thinking>…</thinking> (or <thought>…</thought>) kept that block in the
agent's history through this middleware, while magpie's own gateway
reads all three since e1d4dca96 (yetone/magpie#5106). The three tags
are now one map, as magpie's thoughtTags: a block at the start of the
text only, ended by its own close tag outside Markdown code, so a
</think> inside a <thinking> block is the thinking's words. A stream
holds back a lead that may still become any of the three (<think is
the start of both <think> and <thinking>). to_content still writes
<think>. The package, root README and registry summaries name the three
tags.
Run (mote, Bun 1.4.2, sandbox HOME): bun test packages/think-tags 37
pass, 0 fail; bun scripts/check.mjs ok; whole-repo bun test 6205 pass, 0 fail at origin/main 10a61c2e.
Broken by hand: the map back to <think> alone, 12 fail; the close tag
fixed to </think>, 11 fail; the stream's wait only for a <think> lead,
3 fail (split <thought> and one character a delta).
Not tried: a live model that sends <thinking>. npm: 0.1.1 never
published (plugins#180), so 0.1.2 may not either.
README and registry summary for @guotree/magpie-websearch 0.6.0 (19 search APIs).
Checked at 5683f306: the published 0.6.0 tarball (npm, read only, nothing run) has one provider module for each of the 19 names listed (plus two shared moonshot/zhipu helpers), matching its package description. Docs-only diff (README row + registry en/zh summaries); CI test and on-npm green.
Replaces the long Chinese README with a concise English one (Quickstart, middleware candidateModels, plugin options, routing strategy, enableDecisionProvider) and rewrites the registry summary to match.
Reviewed at f4ba250cf: every option the README names (candidateModels, availableModels, allowedModels, routeAllModels, enableDecisionProvider, affinityMode, defaultModel, fallbackModel, allowExternalScorer) is read in packages/agentcompass/src; the agentcompass and agentcompass/auto model names match middleware.js; magpie plugin add/list/options exist in internal/cli/plugins_cli.go; registry.json parses. CI test and on-npm green. Docs only, no version bump.
New page plugin @magpie-community/page-usage-tree 0.1.0 by CHENZUDE: magpie's usage as a provider -> account -> model tree, served by a small server that reads the gateway's /v1/magpie/usage and /usage/requests.
The last round (f9e0907) gives the model row's calls cell the calls-cell class, so CALLS values sit under their right-aligned header, adds a test for it, and comments why the server's retry budget is 16 x 100ms.
What was run at f9e09079 (mote, macOS, sandbox HOME):
- In the package: node --test 50 pass; bun test 47 tests, 0 fail.
- f9e09079 merged onto main 8765cf8f: bun scripts/check.mjs ok; whole-repo bun test 6149 pass, 20 skip, 0 fail.
- Playwright against a fake gateway: CALLS header and value right edges 616/616 (1280px), 423/423 (900), 341/341 (760, 621) in Chromium and WebKit. Chromium 1280-620px, WebKit 900/760, both engines at 420px in en and zh: no clipped cell, no sideways scroll, no <select>, no page errors.
- Broken by hand: the old `model.errors ? "bad" : ""` puts values at 544 and 273 and turns "model calls sit under the right-aligned calls header" red (27 pass, 1 fail).
Not tried: a real magpie with real accounts, the desktop app, Windows and Linux.
Adds packages/atomcode (@magpie-community/opencode-atomcode-auth 0.3.0), an AtomGit CodingPlan provider: browser OAuth and AtomCode CLI sign-in (~/.atomcode/auth.toml), signed requests to AtomGit's own gateway, per-account models and quota, daily claim, a loopback-only diagnostics page, and OpenCode 1.x/2.x entries. Registry and README entries added. By LILEOO.
Reviewed at c57b099fff4689c0198c1c6414f04b27614b4092. The last blocking point (an inline TOML comment on a known line went into the uid and was written back) is fixed: values end at an unquoted #, quoted/escaped/literal strings keep their #, and a rewritten line keeps its comment.
Run on a separate test machine (Bun 1.4.2, sandbox HOME):
- PR head merged onto origin/main 24da52b8: bun scripts/check.mjs exit 0 (atomcode ok); whole-repo bun test 6103 pass, 0 fail. origin/main alone: 5942 pass, 0 fail.
- packages/atomcode at the head: bun test 161 pass; node --test test/*.test.mjs 161 pass.
- The new auth-file test against 55ff272's auth-file.mjs: red (1 fail), green at the head.
- Probe: the review's file (id = "123456" # c) parses to uid 123456 and renders back as id = "123456" # c; also #c with no space, CRLF with a tab before #, "1#2", and a literal-string id all round-trip to the same uid. At 55ff272 each gave a uid with the comment in it.
Not tried: a real AtomGit account. A [user] header with a trailing comment is refused ("no user id"), not corrupted; the CLI never writes one. First npm version needs an owner publish; until then magpie installs it from the dist branch.
Lists @vshulcz/magpie-deja (deja-vu's gateway recall hook) as a middleware
entry in registry.json and the README's gateway hooks table, after
OpenViking. The summary (en, zh) says recall is scoped to the request's
ctx.cwd, secret patterns are scrubbed, the recalled excerpt goes with the
request to the model provider, and the model is asked to end a helped reply
with a one-line "déjà vu: … — reusing it." note.
Contributed by @vshulcz (#611).
What was run at the reviewed head 1dca7a2853bc, merged onto main a90b7aa4:
- Linux (magpie-desktop, Bun 1.4.2): `bun scripts/check.mjs` exit 0;
`bun test scripts/` 22 pass, 0 fail; registry.json parses, 83 entries,
deja-vu right after @openviking/magpie-plugin; the icon URL answers 200
image/svg+xml.
- The package npm serves now, @vshulcz/magpie-deja 0.23.5 (the registry
lists no version, so this is what users get): deja.hooks.mjs is
byte-identical to 0.23.3, reviewed in #611; only README, version,
funding and the @vshulcz/deja-vu ^0.23.5 range changed. The linux-amd64
binary (sha256 86502a9d…) is the one in GitHub release v0.23.5's
tarball, whose sha256 matches checksums.txt. At v0.23.5 the network
code (embed client, update look) is not on the hook-prompt path: embed
is used only by search/MCP with a sidecar the user made, and the
release look skips hook-* commands.
- In a sandbox HOME on Linux, `bun add --ignore-scripts
@vshulcz/magpie-deja@0.23.5`, two fake Claude Code transcripts in two
projects, `deja index`, then onRequest under `unshare -rn` (no network):
local origin with projA's cwd recalled projA only (projB's canary
absent), projB likewise; a same-named folder elsewhere came back empty;
remote, gateway-key and no-cwd were skipped with the body unchanged.
The sk-…, password= and AKIA… strings in the transcript did not reach
the request. The closing "déjà vu: … — reusing it." line is there, as
the summary says. deja wrote only under ~/.cache/deja.
Not tried: a real magpie gateway with a real agent session; Windows and
macOS binaries of 0.23.5.
sensenova 0.2.0 (yunwang2442-creator): a browser sign-in that captures the console's
OAuth redirect in a one-off Chromium and reuses or creates a `magpie-<host>-<account>-*`
Token Plan API key; the password sign-in kept as a headless fallback; models filtered
to the account's plan; the Flash-Lite pool kept apart from the general pool. Credentials
are sealed with DPAPI on Windows and stored as plaintext elsewhere, as 0.1.3 stored them.
When DPAPI fails, the value is stored as plaintext and the reason is logged.
Reviewed at d57f4a8b (every line of the diff vs main, every new or changed test).
Run at d57f4a8b:
- mote (macOS, Bun 1.4.2, sandbox HOME): `bun test packages/sensenova`: 57 pass, 0 fail;
`bun test` (whole repo): 5863 pass, 0 fail; `bun scripts/check.mjs`: ok.
- xiaomi-gpu (Windows 11, Bun 1.4.2) via win-run: `bun test packages/sensenova`: 57 pass, 0 fail.
DPAPI is refused on that box, so this run took the real plaintext fallback.
- A 0.1.3-shaped record ({type:oauth, access, refresh, expires, accountId, uid, apiKey},
all plaintext, no tokenHost) against a local fake with separate password and browser
token paths: the refresh went to the password token endpoint only; then the loader
served sk-legacy, usage read the pools and models listed the plan's model.
- Refresh failures: 400 invalid_grant gives dead + signIn expired, so the host stops.
500, 503 HTML and an unreachable server give dead:false, so the host retries after
RENEW_RETRY (30s). A dpapi: value that can't be unsealed gives signIn expired.
Broken by hand (each change in its own copy; each one turned the named test red):
- seal throws off Windows: 5 red, the 0.1.3 upgrade test among them
- seal throws when DPAPI refuses on Windows: 2 red
- seal throws when DPAPI can't load: 1 red
- pruning scoped to every magpie- key: "never touches another saved account's key"
- no activeSuffix protection: "the key in use is never pruned"
- the pre-prune at the 20-key limit put back: "a full account ... is a key_limit error"
- reuse from any magpie- key: "reuse picks this account's newest working key"
- refresh never dead: "a refresh token the platform has revoked says the sign-in is gone"
- create_key off when unset (the old optionOn): "create_key defaults on outside magpie"
- dedicated pool's grant left out: "several granted pools add up"
Not covered by a test: sending a 0.1.3 record (no tokenHost) to the browser token
endpoint keeps every test green, because the fake serves both token endpoints at
/oauth2/token. The code sends it to the password endpoint, as the run above shows.
HOST_TAG (os.hostname) has no test; checked by reading.
Not tried: a real sign-in (no SenseNova account here, no credentials entered). The
author reports real browser, password, refresh and 0.1.3-upgrade runs on Windows 10
and WSL2 Ubuntu (Node 24) on the PR.
A new provider package, @magpie-community/opencode-sap-aicore-auth 0.3.0
(packages/sap-aicore). It signs in from a local SAP AI Core client-secret
credential file, discovers the account's running GPT (Responses) and Claude
(Messages, Bedrock) deployments per resource group, and sends requests only to
https://*.authentication.*.hana.ondemand.com (token) and
https://api.ai.*.hana.ondemand.com (inference). Image input is gated per model
on the catalog's inputTypes. Also: the root README row, a registry.json entry,
.DS_Store in .gitignore, and scripts/check.mjs accepts an empty static model
list for a package whose provider.models hook is a function with the same id
(npm and the loader are still required).
Reviewed at head b44b3e1b68889c2a12bcaa37ad5d546a398bdde0, with main 9bba5fed
merged in locally, on a Mac mini (macOS, Bun 1.4.2), no real SAP account:
- bun test packages/sap-aicore scripts: 351 pass, 0 fail.
- bun scripts/check.mjs: every package ok, sap-aicore included.
- The two tests that reached the network at e955194 now use inputs root()
really rejects (/oauth, /v1), and a new test stubs fetch and checks that
/oauth/token and /v2 are accepted and the token is posted to
<authUrl>/oauth/token once. plugin.test.js fails on any unstubbed fetch.
- Whole package under a preload that records every non-loopback fetch, connect
and DNS lookup: 0 attempts (the preload caught a deliberate fetch to
example.invalid, so it does record).
- Broken by hand: putting the e955194 inputs back turns the test red through
the new guard; making root() keep the given path turns the new
/oauth/token + /v2 test red; letting root() accept any path turns 3 URL
tests red.
- Not tried: a real SAP AI Core account (the author's run record covers one
GPT and one Claude turn, plain and with a tool call; no image turn).
The first version goes out through the dist branch (npm doesn't have the name).
Lists @guotree/magpie-websearch (0.3.2) in registry.json and the README's web search section, with the package's own install command under its row and the search-hook template in its own subsection. Name "magpie-websearch"; en and zh summaries say the same: keyless access for AnySearch, Keenable, Parallel and TinyFish, a key needed for Linkup, Metaso and Querit, no downgrade of a failed keyed request. Icon is a 128x128 PNG of 2,710 bytes (fetched: 200, image/png).
Package checked again at 0.3.2 (npm integrity sha512-afEV99u5...kQ==, published 10:34, unchanged since the 11:14 review): only vendor endpoints (api.anysearch.com, api.keenable.ai, api.linkup.so, metaso.cn, api.parallel.ai / mcp.parallel.ai, api.querit.ai, api.search.tinyfish.ai / agent.tinyfish.ai) or the user's own Base URL; each key goes only to its vendor; only the query and search options are sent; no fs, child_process, telemetry or runtime code from strings; no install scripts, no dependencies.
Run at 6ceefcaf8 on the test Mac: bun scripts/check.mjs ok; bun test scripts/ 19 pass, 0 fail. The package's own tests (101 pass) and the keyless searches were run at the earlier review against the same tarball.
Not tried: a search through the gateway by an agent end to end. Left for the author: the package's own package.json magpie.icon still points at the 541 KB assets/icon.png, which an installed plugin's row can use.
A new gateway middleware, @magpie-community/middleware-fovea 0.2.2 (webkubor, #640): old tool output and text in a long history are cut to head and tail, with the boundary only on multiples of `cut_step` (24) so the cut prefix stays byte-identical between turns and the prompt cache holds. The leading user items before the first answer (Codex's AGENTS.md, environment_context and the task; Claude Code's first message) stay whole. `saccade` ("off" by default) drops the old context on a new topic, judged against that same task. Old images become a text note that keeps their `cache_control`. Ships an evidence page (Plugins > Fovea evidence) that computes a paste-in A/B in the frame, with no network.
What was run, at the reviewed head b9883cf206814fdc01950a00d413a36856de4e11, on mote (macOS, Bun 1.4.2, sandbox HOME):
- `bun test packages/fovea`: 33 pass, 0 fail. The two new Codex saccade cases fail with 0357f1c's middleware (and pass at the head).
- `bun scripts/check.mjs fovea` and `bun scripts/check.mjs`: pass. `page/measure.js` is byte-identical to a fresh `bun build.mjs`.
- `npm pack --dry-run`: 18 files, 131.8 kB unpacked; no brand/, no live-benchmark.mjs.
- The head merged onto origin/main 82b254f2 (registry.json auto-merged): `bun scripts/check.mjs` passes and `HOME=$(mktemp -d) bun test` (the whole repo, as pr.yml runs it): 5477 pass, 0 fail.
- A probe calling onRequest turn after turn. Codex-shaped Responses (instructions, developer permissions item, AGENTS.md, environment_context, the task as input_text, then reasoning with encrypted_content, function_call and function_call_output, 60 turns) and Claude Code-shaped Messages (system with cache_control, a first message with system-reminder, task and an image with cache_control, then thinking + signature, text, tool_use and a 6400-char tool_result with emoji, 70 turns). `instructions`, `system`, `tools`, every reasoning, function_call and assistant item, ids, counts and the cache_control count are unchanged; the four leading Codex items reach upstream byte-identical; no lone surrogate. The shared prefix breaks once per cut_step (Codex 6 of 60 turns, Messages 5 of 70; 0 without fovea), with `saccade: "auto"` too. With auto, a same-task follow-up on Codex ("scheduler retry timing assertion still fails in internal/sched, fix it") and on Messages collapses nothing; a new topic collapses from that turn on (one extra prefix break). Bodies went 16.1 MB to 9.4 MB (Codex) and 26.1 MB to 13.9 MB (Messages) over the run.
- Text the middleware adds upstream is only `[fovea: N chars of old tool output omitted]` and `[fovea: prior topic not carried]`: neither names magpie, a vendor or a limit. Codex's instructions are never touched.
Not tried: a live vendor request with real cache-hit numbers (the evidence is the byte-level prefix). pr.yml's runs were waiting on approval for a first-time contributor, so the CI record is the merged-tree run above. A new topic that shares a common word such as "the" with the task stays below the 0.08 overlap bar only when it has enough words; with saccade off by default that is a tuning note, not a blocker. @magpie-community/middleware-fovea is new to npm, so its first version needs an owner (trusted publishing can't create a package); magpie serves it from the dist branch meanwhile.
Lists magpie-plugin-codar (Codar 科搭, SpeedAI's own desktop app and points plan) in registry.json. The package lives on npm, outside packages/.
Reviewed at head 4cc4116d. The package is magpie-plugin-codar@0.1.1, the npm tarball, and its code files are byte for byte the same as MisonL/magpie-plugin-codar tag v0.1.1 (a9d8c461).
Run on mote:
- The npm 0.1.1 tarball unpacked into packages/codar-probe, then `bun scripts/check.mjs`. Every in-repo package and registry.json pass. codar-probe has only the OpenCode 2.x line (plugins#657), which the first review didn't hold against the PR. The two blockers from that review are gone: main no longer exports testables, and auth.loader is present.
- `node --test` at the author's v0.1.1 tag: 188 of 188. The tarball alone fails 1 of 188, a style test that wants CONTRIBUTING.md, which isn't shipped.
- `node --test` and `bun test` in the tarball: 187 pass. The failure is the same style test.
- Exercised the loader: exports are only CodarPlugin and default. A stored key gives `{apiKey}`; no auth or an unusable key gives `{}`.
- 0.1.0 to 0.1.1: a sorted-line diff of index.mjs plus internal.mjs against the old index.mjs shows a pure move plus the loader.
Not tried: no Codar account, so chat, check-in and points weren't run against the real service.