magpie
AGENTS.md4.9k starsChanged 56 days agoMITView on GitHub
Some built-in subscriptions are deprecated. Reaching them can break their vendors' terms, so they are moving out of magpie into community OpenCode plugins, which keeps magpie itself from being banned. Each one has a plugin that does the same job: The movers map in internal/provider/migrate*.go is the source of truth. TestMovedBuiltinsSayTheirPlugin fails when a mover has no notice in its code. Two cases decide it: - Moved: the user moved the subscription onto its plugin, from the editor's "Move to…
Trending
More talk lately.thin dataabout the whole repository
Who's talking about yetone/magpie
- @thecompound.tech“https://github.com/yetone/magpie Wire: Magpie routes Codex, Claude Code, and other agent CLIs through one …”Bluesky · Sep 27, 2026 · 1 likes
- XYenon/nur-packages“magpie: 0.1.817 -> 0.1.900”GitHub · Oct 4, 2026
- ScoopInstaller/Main“[Request]: magpie-ai-cli”GitHub · Sep 30, 2026
- ScoopInstaller/Extras“[Request]: magpie-ai”GitHub · Sep 27, 2026
The biggest 4 of 4 mentions linking to the repository that our crawl found. Each line is their own headline.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
Check whether the user's subscription is moved.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Notes for coding agents
Built-in subscriptions that a plugin serves
Some built-in subscriptions are deprecated. Reaching them can break their vendors' terms, so they are moving out of magpie into community OpenCode plugins, which keeps magpie itself from being banned. Each one has a plugin that does the same job:
| Subscription | id | Plugin (npm) | Mover |
| Command Code | commandcode-plan | @magpie-community/opencode-commandcode-auth | internal/provider/migrate_side.go |
| Cursor | cursor | @magpie-community/opencode-cursor-auth | internal/provider/migrate_side.go |
| Devin | devin | @magpie-community/opencode-devin-auth | internal/provider/migrate_side.go |
| Factory | factory | @magpie-community/opencode-factory-auth | internal/provider/migrate_factory.go |
| Grok | grok | @magpie-community/opencode-grok-auth | internal/provider/migrate_side.go |
| Kiro | kiro | @magpie-community/opencode-kiro-auth | internal/provider/migrate_kiro.go |
| Xiaomi MiMo | mimo-app | @magpie-community/opencode-mimo-auth | internal/provider/migrate_mimo.go |
| Qoder, Qoder CN | qoder, qoder-cn | @magpie-community/opencode-qoder-auth | internal/provider/migrate_qoder.go |
| WorkBuddy, WorkBuddy AI | workbuddy, workbuddy-ai | @magpie-community/opencode-workbuddy-auth | internal/provider/migrate_workbuddy.go |
| ZCode | zcode | @magpie-community/opencode-zcode-auth | internal/provider/migrate_zcode.go |
| Zed | zed | @magpie-community/opencode-zed-auth | internal/provider/migrate_zed.go |
The movers map in internal/provider/migrate*.go is the source of truth.
TestMovedBuiltinsSayTheirPlugin fails when a mover has no notice in its
code.
Which code actually runs
Two cases decide it:
- Moved: the user moved the subscription onto its plugin, from the
editor's "Move to plugin" (or
provider.Adopt). Itsmigrations.jsonstate isplugin(provider.Moved(id)). A new user never sees a deprecated built-in: the Add sheet leaves one with no account out (unusedSubin app.js), so it is installed from the Plugins page. A user who installs the plugin themselves is moved too (provider.HandOver): at once when the built-in has no accounts, from the gateway's hourly loop (KeepRetiringMoved) when it has, unless they moved back or the plugin is signed in under its own-pluginid already. Until then the Add sheet shows the plugin's tile only (replacedSubin app.js). - Not moved: the user is still signed in through the built-in.
For a moved subscription, the plugin does everything: sign-in, refresh,
models, requests, usage and errors. It runs in the plugin host
(internal/plugin). The built-in's code in internal/provider/<name>*.go,
internal/gateway/<name>.go, internal/zed and internal/qoder doesn't run
for it at all. The gateway sends its requests to the plugin's fetch, not to
the built-in's translator.
So a bug report about one of these subscriptions is usually about the plugin:
- Check whether the user's subscription is moved. A moved provider's row in
/api/providershasmove.state == "plugin"; the provider id is inonPlugins. - Fix the plugin in the community repo,
magpie-community/plugins
(
packages/<name>, provider id = the built-in's id; checked out locally at~/workspace/projects/magpie-commuity-plugins). Publish a new version. - Raise the mover's
minto that version.keepMovedCurrentthen updates every moved user's plugin. - Make the same fix in the built-in only if it should also reach users who haven't moved. A fix made only in the built-in does nothing for moved users.
This magpie-side code still runs for moved subscriptions:
- the plugin host:
internal/plugin,host.js; internal/provider/plugins.go,plugin_usage.go(movedCards) andpluginsignin.go;- the move itself:
internal/provider/migrate*.go; - the GUI's plugin paths in
internal/gui/assets/app.js:subOf,pluginSubsandstartPluginSignIn.
A test against the built-in alone doesn't prove anything for moved users. To
compare the two, use the parity tests: internal/gateway/plugin_*_test.go.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

