yetone
520a2425fc
gateway(routing groups, affinity) + gui(routing): routing groups — several models, from one provider or many, that an agent picks as one (group/<id>), routed over all their members' keys and accounts together, smart, in order, in turn or least used first; a model more than one provider serves is a group magpie finds on its own, and becomes the user's once changed. Affinity keeps a conversation with the key or account that answered it — for the session, within a turn, never, or by default while what the vendor read from its cache is worth keeping and not yet cold — so the prompt cache holds; in turn now spreads turns rather than requests, a turn's tool results staying where it began. The Routing view shows each agent's requests in its own colour, the magpie flying them through the gateway's box rather than jumping across it, groups and why a conversation stayed or moved; and a Hide emails switch blurs the email addresses on the page, for a screenshot to share
2026-09-25 04:07:40 +08:00
yetone
0281df4d87
gui(routing): Routing is a view of its own, beside Gateway — the Gateway view keeps to connecting and the model list; Routing plays each request with room to spare, every request the gateway keeps is listed (when, the agent and the model it asked for, who answered and with what model, the tries, how long, the tokens) and picking one shows how it was routed, and each account or key those requests weighed says how often it was tried, answered and failed, what it answered with, when last, and whether it rests; the model each account or key is asked for shows on its row and in the story
2026-09-25 02:35:38 +08:00
yetone
af5889085a
gateway(routing, live): the Gateway view plays what routing does with each request as it happens — the site's Model Routing stage, driven by the gateway's own trace: the agent, magpie with the provider's routing, and its accounts or keys in the order routing weighed them, each saying what it was weighed by (how much is used and when it renews, kept for last, not known yet, resting and until when, left out as its plan doesn't list the model); a request travels to the one put first, one that fails shows what it answered and hands it on, and the story beside it says why the first went first, why each other stands where it does, how long a failed one rests and what said so, and what the agent got; recent requests can be picked to see how each was routed, and the counts are the gateway's since it started. Nothing is worked out again in the page: the gateway records each decision where it makes it. A vendor's Retry-After and rate-limit reset headers now come through with its error, so a rate-limited key or account rests as long as the vendor says rather than a minute
2026-09-25 02:28:32 +08:00
yetone
b225ace50c
gui(panel): no dark band at the bottom while the tray panel grows — WebKit draws the page a frame or two after the panel's frame moves and filled the new edge with its own dark background; on the Mac the panel's webview now draws no background of its own and the page's colour is painted in a view under it that the system sizes with the panel, so the new edge comes in the page's colour until the page catches up. It looks as before; a change of theme fades it along; elsewhere, or when the webview won't, the page paints itself as it did
2026-09-25 02:19:32 +08:00
yetone
db59d15ed4
gui(panel): the tray panel's height glides with the agents' scroll as it unrolls and rolls up, on the same beat and curve, its top edge held under the menu bar — on the Mac the system animates the frame on its own display clock, elsewhere it steps a frame at a time; a fit that doesn't ask to glide still sizes at once, and make dev shells from before still size
2026-09-25 01:53:21 +08:00
yetone
c83a07d63b
gui(agents): Show more unrolls the other agents like a scroll, and Show less rolls them back up — the height opens on a long ease-out while each row fades and settles in a beat after the one above, the moving edge soft; rolling up is quicker, bottom row first. The agents in use stay put above, the chevron turns, and the tray panel makes room before unrolling and gives it back once rolled up
2026-09-25 01:45:37 +08:00
elonnzhang
2432d2ca88
gui(agents): fold the agents nothing is set on behind Show N more ( #41 )
...
The agents card lists every detected agent, and on most machines
most of those rows read "default" — nothing has been set on them.
This keeps the ones that have a model or an effort of their own and
folds the rest behind a "Show N more" row at the end of the list.
A magpie with nothing set yet still shows every agent, since folding
all of them would leave the card empty. The toggle only appears when
something is actually folded.
Frontend only — three files under internal/gui/assets, no change to
state() or to settings.
2026-09-25 01:40:07 +08:00
yetone
37e8f7c045
header: in a narrow window the name steps aside, leaving the magpie, and Update becomes its arrow; narrower still, the tabs sit in the row instead of over it
2026-09-25 01:35:24 +08:00
yetone
90580ca7e1
update: Update updates magpie in place — a click downloads the new version and restarts into it, asking for the password when magpie can't replace itself, instead of opening the release page; only a magpie running from its disk image or a temporary copy is sent to the download page, with why
2026-09-25 01:35:24 +08:00
yetone
b498b1fb02
settings: the Community row is a Discord-coloured "Join Discord" button with Discord's mark, quiet until hovered, in place of a plain link and a "Join ↗"
2026-09-25 01:28:08 +08:00
yetone
d8ee8d1af3
community: magpie has a Discord — the site links it from the header, the footer and a card above the download, Settings has a Community row that opens it, and the README a badge and a Community section
2026-09-25 01:22:16 +08:00
yetone
c65a1f5187
import from other apps: an app with nothing to bring over no longer breaks the dialog — its list came back null, and the dialog stopped at "null is not an object (evaluating 's.items')"; Claude Code's tab shows Claude Code's mark instead of a missing image
2026-09-25 01:22:16 +08:00
yetone
ce7c8367a1
header: the magpie flaps its wing, flicks its tail and bobs as the window opens and when the pointer comes over it (not with reduced motion); it sits a little further from the traffic lights, and off the Mac it is left out, since the title bar above already shows the icon and the name
2026-09-25 01:15:28 +08:00
yetone
477e8ecc8f
window: the tab, and the provider open in the editor, are kept in the address (?view=providers&edit=<id>), so a reload comes back to them
2026-09-25 01:15:22 +08:00
yetone
a04eabd92e
gateway: on Windows the examples are PowerShell — $env: for the variables and the curl.exe that ships with Windows, the body on stdin since Windows PowerShell drops the quotes inside an argument; the snippet's copy button stays in the corner however far a long line scrolls; and with no models the list says so instead of showing a script error
2026-09-25 01:15:15 +08:00
yetone
deb0d9e5e8
usage: Cursor's allowance shows on the Usage page, and every card names the account it is for; an agent with several Claude or Codex accounts is one card with a section per account, the one it is signed in to first
2026-09-25 01:15:09 +08:00
yetone
9a0078f08c
dev: a Go change under make dev rebuilds and restarts only the backend — the API and the gateway — behind windows and a tray that stay up, and the page refreshes what it shows in place, keeping its tab and anything open; a build that fails leaves the running backend be (build/dev.sh)
2026-09-25 01:14:56 +08:00
yetone
919585d170
settings: Open shows the config folder in Finder, Explorer or the file manager — it handed a file:// link to the browser, which did nothing; the page asks for the folder by name only, so it can't be made to open another path
2026-09-25 01:14:48 +08:00
yetone
2b1e9e8619
usage: the Usage page shows what is left on an API key beside the subscriptions' allowances — DeepSeek, Kimi, OpenRouter and SiliconFlow are asked by their hosts, and any custom provider can name its balance endpoint and where the amount sits in the reply (Balance URL / field in the editor, balance= / balance.path= in the CLI), each key it has on asked with itself; magpie provider <id> prints it too ( #40 )
2026-09-25 01:12:18 +08:00
yetone
837923c435
providers: the page shows its rows as they load, skeletons in the shape of the list, until the providers are in — it was blank on first open; a reload keeps the list it has
2026-09-24 23:40:09 +08:00
yetone
41931e2895
agent: omp (oh-my-pi) — its model picked in magpie like any agent's; a model through magpie adds magpie as a keyless provider in ~/.omp/agent/models.yml with the catalog as its models, and sets config.yml's modelRoles.default to magpie/<provider>/<model>; its other roles and the rest of both files stay as they are, comments too, and default takes magpie's entry out unless another role still uses it ( #34 )
2026-09-24 22:36:15 +08:00
yetone
82a109eab5
picker: a model starred in one agent is a favorite in every agent — magpie's models are starred by their catalog id, not the agent's own spelling of it, so the favorites tab no longer comes up empty ( #33 ); Codex's own models follow the ones ticked on its ChatGPT subscription ( #36 ); the effort slider shows a dot at every level ( #37 ); and a relay Claude Code was pointed at in its own settings.json can be brought in from Import from other apps, as a provider like any other ( #35 )
2026-09-24 22:27:59 +08:00
yetone
be1b3967f4
agent: Command Code — its model picked in magpie like any agent's; a model through magpie adds magpie as a keyless provider in ~/.commandcode/providers.json with the catalog as its models, and sets settings.json's model to magpie/<provider>/<model>; its own models stay as they are, and default takes magpie's entry out; Command Code still wants its own sign-in ( #32 )
2026-09-24 21:44:09 +08:00
yetone
1a0b1f9fea
providers: smart routing, a Copilot subscription signed in from magpie, and import by app in tabs — Smart, now the default, keeps the first key or account while it has quota to spare and moves to the one with the most left as it runs low; one out of credit sits out half an hour, one out of quota until it says it resets, one rate limited as long as the vendor asks, and one failing a minute, longer each time; Copilot gets a tile of its own that signs in with GitHub's device code (the code shown in magpie), several accounts beside the editors' own; Import from other apps shows a tab per app it reads, each with how many providers it has to bring over
2026-09-24 19:41:34 +08:00
yetone
f7d5b6773c
providers: several accounts of every kind in use at once, and routing over them — a Grok subscription can add more accounts, each signed in by grok login in a home of magpie's so the CLI's own sign-in is never touched, one first and the rest behind it; a provider with several keys or accounts on picks how requests spread: in order (the next takes over on quota, rate limit or failure), in turn, or least used first (a subscription by the share of its allowance used, a key by the tokens magpie sent it lately); failing ones still rest a minute at the back
2026-09-24 19:06:46 +08:00
yetone
97d9a69dd8
providers: import from other apps lists them by name, each with its own icon and a Select all for what it has to bring over; a vendor already in magpie says so on a line of its own, and its choices (another key, keep both, replace) stay on one line
2026-09-24 18:55:52 +08:00
yetone
0b0f258c0f
providers: import from other apps — the add sheet's Import… reads the providers CC Switch (its database, or the older config.json) and Alma have set up, read-only, and lists them to pick from: what magpie has already is marked, a key for a vendor that is already here can join it as another key, an id in use is kept beside or replaced, and sign-ins, Azure, Gemini-protocol relays and entries pointing at magpie itself are shown but not offered; keys are read again on import and only reach the window masked
2026-09-24 18:48:08 +08:00
yetone
7a030fa91c
provider: a Grok subscription shows its allowance — the account row and the Usage page read the CLI's own /billing credits: this period's share used (weekly for SuperGrok) with when it resets, and on-demand spending against its cap when there is one
2026-09-24 17:49:11 +08:00
yetone
20948e596f
gateway: a Grok subscription (SuperGrok, X Premium+) works like a Cursor one — magpie runs the signed-in Grok Build CLI in a home of its own (none of the user's hooks, skills, rules or MCP servers; only search_tool/use_tool, reaching magpie's MCP tools), borrowing the user's token through magpie grok-token without touching their sign-in; the add sheet has a Grok tile that signs in with grok login's device code
2026-09-24 17:35:36 +08:00
yetone
545506e875
provider: an import link can name the vendor's own icon
...
magpie://import now takes icon=<https picture>: the vendor's logo, PNG,
JPEG, GIF, WebP, ICO or SVG. It is fetched once, when the user opens the
confirm dialog — never at parse time — into magpie's icons folder, and
falls back to the catalog's logo or a plain mark when the fetch fails.
An explicit icon= wins over whatever catalog or preset gave.
The fetch is guarded on the way out: https only, at most 1 MB, the type
checked, and the host is resolved at connect time with loopback, private,
link-local and reserved addresses refused, so a name that points back at
the user's own machine (or a DNS-rebinding trick) never connects. The
page and the dialog never load a remote picture themselves.
IconURL is a carrier between parsing and that fetch only; Save drops it,
so it never reaches providers.json.
2026-09-24 17:13:03 +08:00
yetone
ecb084aa4e
window: when a newer magpie is out, an Update pill sits before the header's icons — hover says which version, a click installs it (or restarts into one already downloaded); an open window checks again every 15 minutes
2026-09-24 16:46:06 +08:00
yetone
c8130269c6
gateway: a Cursor subscription works like a Claude one — magpie runs the signed-in cursor-agent in a home of its own (no user hooks, only magpie's MCP tools allowed), streams its thinking and text, hands tool calls to the client one answer at a time, and a slow tool is collected with magpie_wait; the add sheet has a Cursor tile that signs in through cursor-agent login
2026-09-24 15:49:47 +08:00
yetone
4445d94042
window: the tabs and buttons in the header are plain clicks — only the header's empty space drags the window, instead of a native strip that dragged from anywhere across the top
2026-09-24 15:27:35 +08:00
yetone
e00083a3f7
gateway: the model list can be searched — words match the id, the name and the provider, Escape clears it
2026-09-24 15:20:57 +08:00
yetone
65fdcb1a14
update: the download shows how far along it is — percent and megabytes in Settings — a dropped connection is tried twice more, and a failure says why instead of only that it failed ( #21 )
2026-09-24 15:07:35 +08:00
yetone
b9a591d22b
gui: take back the update pill and import-icon hunks that went out with the last commit — they are still being worked on
2026-09-24 15:02:39 +08:00
yetone
407afee63d
providers: a key's protocol is picked from a small menu that says what each choice is for, instead of the system popup; opening a provider no longer folds the add-provider gallery under it, and closing its dialog keeps the page where it was
2026-09-24 15:01:48 +08:00
yetone
f3b66c4784
provider: a key can be made for one protocol — for relays that hand out one key for Anthropic and another for OpenAI; the gateway uses each key on its own endpoint only and sends Claude models to the Anthropic key, GPT models to the OpenAI one, translating when it must
2026-09-24 14:54:56 +08:00
yetone
64d3a1c23a
provider: several subscription accounts in use at once, each with its usage — tick more Claude or ChatGPT accounts and the gateway moves to the next when the first is out of quota; every account row shows how much of its 5-hour and weekly allowance is used
2026-09-24 14:46:26 +08:00
yetone
6514b559aa
provider: several accounts of one provider in use at once — tick every key to use; requests go to the first, and when it is out of quota or rate limited the next ticked key takes over before any fallback model
2026-09-24 14:36:39 +08:00
yetone
abc5962600
provider: every provider can hold several accounts — keep more than one API key, name them, and switch which one is in use from the editor
2026-09-24 14:32:54 +08:00
yetone
b19f3dbabe
provider: add a Claude or ChatGPT subscription from magpie itself — it opens the vendor's sign-in, takes the account when it comes back and lists it with the others, one click from being in use; magpie accounts add <agent> on the command line ( #15 )
2026-09-24 14:26:37 +08:00
yetone
829d52f75a
provider: a custom provider can name several catalogs (catalog=openai, deepseek) — a gateway reselling many vendors gets names and reasoning levels for all of them, prefixed ids like deepseek/deepseek-chat included ( #17 )
2026-09-24 14:10:53 +08:00
yetone
08c3d1ff4c
gui: the refresh icon spins cleanly — on a layer of its own, so WebKit leaves no ghost arrows, and it finishes its turn instead of snapping back ( #16 )
2026-09-24 14:08:57 +08:00
yetone
435d65882b
gateway: fallback — when a provider is out of quota, rate limited or down, a request goes to the next model you listed for it, before any of the reply is sent; set it in the provider editor or with magpie provider fallback
2026-09-24 14:04:42 +08:00
yetone
5da0d0d973
provider: several Claude Code and Codex subscriptions — magpie remembers each account it sees signed in, and switches the agent between them in the editor or with magpie accounts ( #15 )
2026-09-24 13:55:25 +08:00
yetone
61004668ac
provider: a custom provider can have its own icon — a picture of yours (PNG, JPEG, SVG…) or any built-in one, in the editor or with magpie provider icon ( #12 )
2026-09-24 13:10:45 +08:00
yetone
931b16604e
gui: the provider editor keeps what you typed when the window comes back ( #13 ), and shows save errors inside itself ( #14 )
2026-09-24 12:55:13 +08:00
yetone
240e687ea3
gui: gofmt
2026-09-24 12:50:51 +08:00
elonnzhang
3ffebeebb6
provider: custom request headers for custom providers
...
Extra HTTP headers, typed by the user, ride on every request magpie makes
to a plain key+URL provider — forwarded calls, connectivity tests, and
model-list fetches — applied after the auth headers. Presets and signed-in
agent accounts ignore them. Editable in the GUI (with a JSON value mode) and
via the CLI as header.X-Foo=bar.
2026-09-24 12:50:51 +08:00