v0.1.4585 (6a0afc38a) put a tick, "Keep a copy in magpie's backups", on the sheets that remove skills. The same reader, on v0.1.4594, saw it on no sheet. It shows only when a folder of magpie's own would be deleted, and most users have no such skill: - a skill brought in from the agents (most of a library) has Put back, not Remove: it goes back to them, nothing kept or deleted; - one linked from ~/.agents/skills (npx skills, Codex) only loses the link; - an agent's own skill with its folder in ~/.agents/skills, where most skills are, always went to the backups, and its sheet had no tick (inSharedDir). That sheet says "Its entry in ~/.agents/skills goes to the backups too", so the reader saw backups promised and no way out. The TUI's D said it deleted such a folder and kept it all the same. The entry leaves ~/.agents/skills either way (setAside moves it out), so the other tools reading that folder lose it either way; kept, it only sat in the backups, which are never pruned when they hold skills. Now it is deleted like any other folder when the tick is off, and its sheet (one skill, and the picked ones) has the tick, saying "Its entry in … is deleted too" when unticked. Never deleted, as before: a link's target. An entry in ~/.agents/skills that is a link only goes, and its sheet says "Its link in … goes too" (it said the entry went to the backups). Remove all / the picked library skills counted one brought in from the agents as a folder moved to the backups (or, linked, as only unlinked), and showed the tick for it. It goes back to them (putBack): it is said so, "{n} go back to the agents they were brought in from, as they were", and counts for neither, nor for the tick. Four new strings in zh, zh-TW, ja and de. docs/subsystems/library.md says what changed. Run (mote, this tree at base5754fea43, origin/main when fetched): - go test ./internal/library -run 'WithoutBackup|Found|Shared': ok. - broken by hand: skills.go at HEAD (the inSharedDir guard back) with the new test: TestRemoveFoundSkillWithoutBackup red, the shared entry in the backups. skill-remove-nobackup.test.cjs at an origin/main5754fea43copy: all 20 subtests red in chromium and webkit (Remove all said "1 folders are moved … 2 linked from folders of your own are only unlinked" for one brought in). - GUI, chromium and webkit: skill-remove-nobackup (en, zh, zh-TW, ja, de at 980 and 440px: shared entry ticked and unticked, its post, a shared link with no tick, Remove all with one brought in, with and without a folder of magpie's, nothing sideways), found-skill-pick- remove, library-bar-more, library-found-hooks, library-hooks, library-pick-remove, library-servers-bulk, remove-all-skills, remove-found-server, remove-found-skill, shared-skills, skill-put-back, i18n-en-no-cjk, i18n-keys: 176 pass, 12 red. Red: found-skill-pick- remove at 420px (#5013) and library-bar-more in chromium (#7326), both red at the origin/main5754fea43copy too. - go test ./internal/library ./internal/tui ./internal/cli ./internal/gui -timeout 45m: library, tui, cli ok. gui: TestBuiltinsTranslated (#7257) and TestSettingsSaveKeepsWhatItDoesNotSend (#7240) red, both open and about other pages. GOOS=linux go vet -tags nogui and GOOS=windows go vet of library and gui: ok. - gofmt -l internal/: nothing. Not run: the full go test ./... and the whole GUI suite. Not tried in the real app, nor on Windows or Linux; deleting goes through the same os.RemoveAll as a folder in an agent's own skills folder. Not changed: Put back still has no Remove; a skill brought in goes back to the agents, where it can be removed (now with the tick).
Subsystem design references
These pages describe current responsibilities, runtime paths, state, and contracts. Start with the subsystem relevant to your task, then follow its source links to verify the implementation you change.
| Subsystem | Reference |
|---|---|
| Built-in subscriptions moving to plugins | Provider and plugin ownership |
| Built-in plugins: registry, lifecycle, plugins.yml, presets, settings schemas, the window's kernel (slots, error boundary, kit) | Plugin runtime |
| Plugins that run on the gateway's requests and replies | Gateway middleware |
| Tools that plugins give, offered to every agent as an MCP server | Plugin tools |
| Plugins that await context recall and observe completed replies | Asynchronous gateway request hooks |
| Claude subscription turns across Claude Code runs | Claude subscription bridge |
| How the gateway picks a provider, key or account, and falls back | Gateway routing and fallback |
| Gateway Session Aggregation | Gateway Session Aggregation |
| Connecting an agent's config to the gateway, drift, disconnect, WSL twins | Agent wiring |
| Providers, keys, subscription accounts, refresh and allowance | Providers and accounts |
| Instructions, MCP servers, skills and RTK written into agents | Library |
| One MCP server, magpie, given to every agent in place of the Library's servers | MCP router |
| Memory shared by every agent: the memory MCP server, the digest in instructions, the Memory tab | Memory |
| One skill, magpie-skills, listing the Library's skills in place of each agent's own | Skill router |
Tray, panel, window, magpie web and the page's JSON API |
GUI app shell |
| Encrypted backups and setup synchronization over WebDAV, S3 or GitHub | Sync and backup |
A subsystem can span several packages or repositories. Its reference describes the behavior those parts provide together; it does not need to list every function.
Maintain a reference
Update the owning reference in the same PR when a change alters a documented responsibility, interface, state transition, runtime path, compatibility rule, or failure behavior. An internal refactor that preserves these contracts does not require a prose change.
Keep each fact in one reference and link to it from agent instructions or other pages. Link to source files and named symbols rather than copying implementation details that change frequently. Explain field meanings and constraints that signatures alone do not express.
For a new reference, include the responsibilities and boundaries, source of truth, main runtime paths, state transitions, important constraints, and existing verification commands. Include failure and compatibility behavior where relevant. Document current behavior separately from proposed changes; the proposal belongs in its issue or PR.
Describe a PR's semantic changes
For each affected subsystem, explain the observable change with its trigger and before/after behavior. Include changes to interfaces, state, compatibility, and failure behavior when relevant. Link the affected reference, implementation, and verification evidence. State when a refactor preserves the documented behavior.
For example, a change to plugin adoption should explain which migration state and account condition trigger it, which implementation handles requests before and after adoption, and which test exercises that transition.
This is an author-provided explanation that a reviewer verifies against the diff and surrounding code. It is not an automatically proven compatibility verdict.
Review a change
- Identify the affected subsystem and the actual runtime path, including plugin or built-in ownership.
- Compare the claimed before/after behavior with the base and head implementation. Trace relevant callers and state transitions beyond the changed lines.
- Check that changed contracts appear in the owning reference and that source links still resolve.
- Check that the cited tests or runtime evidence exercise the claimed behavior. Report checks that were not run.
A documentation update alone does not prove the implementation. Existing tests and runtime evidence remain necessary for behavior changes.