yetone
4e770f733a
library: subagents imported from a repository
...
CHENGJIAHEGOXIS on X asked for an easy way to install a repository of
subagents such as msitarzewski/agency-agents. Library → Subagents now
has a find line. It takes what the skill installer takes: owner/repo, a
GitHub or GitLab link to a repository, folder or file, any git address,
or a folder on this computer. It lists the subagents found, lets the
user tick all or some, and imports them as Library subagents for the
agents ticked.
- Fetching is the skill importer's: resolvePluginRoot's source handling
moved into fetchSourceRoot, which both use. tooBig still refuses a
whole repository that is too big and asks for the folder's link.
- A subagent is a Markdown file whose front matter has a description.
- Its name is the slug of `name`. In an `agents` or `droids` folder
with no `name`, it is the file's own name.
- The description is folded to one line of at most 1000 characters.
- The body is the prompt.
- Dropped: every other front-matter key (agency-agents' color, emoji
and vibe, and tools, model, author or anything else). A Codex TOML
role is not read. A skill's folder (one with SKILL.md) and .git,
.github and node_modules are skipped.
- Two files with one name: the shallower is taken, and the other is
listed as left out, with why. So is a file Subagent.check refuses.
- An imported subagent records its source and file (From) and a hash
of its description and prompt as imported (FromHash). Imported again,
a subagent from the same file is:
- have, when it is unchanged;
- update, when upstream changed and the library's copy still matches
FromHash (description and prompt replaced; agents, skills, servers
and model kept);
- edited, when the user changed it in magpie (left as it is).
- A name the library already uses for another subagent is never written
over: the import takes the next free name-N.
- A carried library carries From.
- The page has Select all, a filter past eight, a tag per state, the
files left out, and a summary of what was imported and updated.
i18n: zh, zh-TW, ja, de.
- The fixture is agency-agents' own files in
internal/library/testdata/agency-agents. No test reaches the network.
Run on 80ae5ba24, which is this change on e730a14dc :
- gofmt -l is clean. GOOS=linux and GOOS=windows go vet -tags nogui
./... are clean (mote).
- go test -tags nogui -count=1 -timeout 45m ./... on mica: 98 packages
ok. internal/cli's TestEveryRouteHasACommandOrIsNamed was red because
the new POST /api/library/subagents/probe wasn't named. It is now in
notYet beside skills/probe and plugins/probe, and the test passes.
- GUI files run in chromium and webkit, in every language:
- The new library-subagents-import.test.cjs and the doc's Library
list: 117 of 118 passed. The red was i18n-keys: "{n} subagents" is
the sessions plugin's key. The keys now use {count}.
- A second run of the doc's Library list, i18n*, project-subagents,
skill-install-* and plugin-*: 1652 of 1768 passed. The 116 reds are
in 7 files that fail the same way alone on a fresh origin/main
(e730a14dc ): 116 there, 114 at this head. Each has an open issue:
- found-skill-pick-remove: #4097 and #5013
- plugin-option-placement: #6559
- plugin-signin-no-url: #5938
- plugin-signed-out-account: #5998
- plugin-move-unserved: #4392 and #4410
- plugin-page-foreign-error: #6117
- plugin-card-update: #3079
Run at the pushed head, rebased on eb1b83000 , on mica:
- gofmt -l is clean.
- go test ./internal/library ./internal/gui ./internal/cli: ok.
- library-subagents-import, library-subagents and i18n-keys: 38 of 38
passed.
Broken by hand, each red, then reverted:
- Clash renaming off (`false && taken[name]`):
TestSubagentImportLeavesTheUsersOwn red.
- The edited check made `case true:`: TestSubagentImportAgainUpdates
red (paid-media-auditor read as update).
Real import, in a sandbox HOME magpie web on mote (built from this
change), with Claude Code and
Codex detected:
- The probe of https://github.com/msitarzewski/agency-agents found 283
subagents. One was left out: the mcp-memory copy of
backend-architect.
- Importing all 283 wrote 283 files to ~/.claude/agents (only name and
description in the front matter) and 283 TOML roles to ~/.codex/agents.
- A probe of .../tree/main/engineering then showed 66, all have.
Not tried: the Windows and Linux runtime, GitLab and plain git sources
against real repositories, an agent in WSL, a repository over tooBig's
limit.
2026-11-14 09:11:31 +08:00
..
2026-11-14 09:11:31 +08:00
2026-10-15 14:52:51 +08:00
2026-10-11 07:55:23 +08:00
2026-11-12 17:07:23 +08:00
2026-11-11 03:50:20 +08:00
2026-11-01 10:22:56 +08:00
2026-10-13 06:43:50 +08:00
2026-10-13 06:43:50 +08:00
2026-11-11 14:04:37 +08:00
2026-11-13 22:02:05 +08:00
2026-11-13 22:02:05 +08:00
2026-11-10 15:47:32 +08:00
2026-11-10 15:47:32 +08:00
2026-11-12 02:24:10 +08:00
2026-11-12 02:24:10 +08:00
2026-11-12 02:24:10 +08:00
2026-11-11 15:59:46 +08:00
2026-11-11 15:59:46 +08:00
2026-11-06 15:41:43 +08:00
2026-11-06 15:41:43 +08:00
2026-10-10 14:52:17 +08:00
2026-11-12 19:33:39 +08:00
2026-11-05 11:29:20 +08:00
2026-10-31 13:14:16 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
2026-11-14 09:11:31 +08:00
2026-10-10 09:14:35 +08:00
2026-11-01 04:36:37 +08:00
2026-11-02 05:38:11 +08:00
2026-11-06 10:20:34 +08:00
2026-11-10 12:54:39 +08:00
2026-11-07 20:57:30 +08:00
2026-11-06 02:04:53 +08:00
2026-11-11 23:09:15 +08:00
2026-10-16 05:10:43 +08:00
2026-11-10 22:56:39 +08:00
2026-10-15 08:33:54 +08:00
2026-10-13 15:44:02 +08:00
2026-11-14 00:01:24 +08:00
2026-11-14 00:01:24 +08:00
2026-11-14 00:01:24 +08:00
library: on Windows without the right to make symlinks, skills are linked with junctions ( #973 ) — with Developer Mode off and magpie not elevated, os.Symlink fails with "A required privilege is not held by the client": a skill installed from a folder became a detached copy, and bringing in a skill from ~/.agents/skills failed outright. The library's folder links (an agent's link to the library's skill, a folder source, a skill brought in from a link or the shared folder, a carried skill's folder, relink) now go through dirLink, which on that error makes a directory junction instead: one every user may make, followed by every program as a symlink to a folder is, made natively (FSCTL_SET_REPARSE_POINT, no mklink). A target a junction can't reach (a network share) still gets the old copy. Go reports a junction as irregular, not a symlink, so ours, unlink, carry's clearing of the library, a project's place and the CC Switch update now tell a link by linkEntry (symlink or junction) and take it away with os.Remove, leaving what it points at, even when where it points can't be read. On the Windows box with every privilege stripped from the token (CreateRestrictedToken DISABLE_MAX_PRIVILEGE, whoami /priv shows SeChangeNotify only) and an explicit sandbox environment, the library's tests went from 16 failures to none (TestSkillHow, TestProjectSkillsLinked, TestCarry, TestSkillCopyEditReachesTheOthers, TestImportSharedSkillForKimi …); with the privilege they pass too. TestJunctionIsALink (Windows: magpie's own, read through, unlinked without its target, none to a share) is new; the folder fixtures that ignored a failed os.Symlink now use dirLink, and the tests' link checks accept a junction. go test -race ./internal/library/ on the Mac, go vet, windows/linux(nogui) builds pass.
2026-10-06 13:32:03 +08:00
library: on Windows without the right to make symlinks, skills are linked with junctions ( #973 ) — with Developer Mode off and magpie not elevated, os.Symlink fails with "A required privilege is not held by the client": a skill installed from a folder became a detached copy, and bringing in a skill from ~/.agents/skills failed outright. The library's folder links (an agent's link to the library's skill, a folder source, a skill brought in from a link or the shared folder, a carried skill's folder, relink) now go through dirLink, which on that error makes a directory junction instead: one every user may make, followed by every program as a symlink to a folder is, made natively (FSCTL_SET_REPARSE_POINT, no mklink). A target a junction can't reach (a network share) still gets the old copy. Go reports a junction as irregular, not a symlink, so ours, unlink, carry's clearing of the library, a project's place and the CC Switch update now tell a link by linkEntry (symlink or junction) and take it away with os.Remove, leaving what it points at, even when where it points can't be read. On the Windows box with every privilege stripped from the token (CreateRestrictedToken DISABLE_MAX_PRIVILEGE, whoami /priv shows SeChangeNotify only) and an explicit sandbox environment, the library's tests went from 16 failures to none (TestSkillHow, TestProjectSkillsLinked, TestCarry, TestSkillCopyEditReachesTheOthers, TestImportSharedSkillForKimi …); with the privilege they pass too. TestJunctionIsALink (Windows: magpie's own, read through, unlinked without its target, none to a share) is new; the folder fixtures that ignored a failed os.Symlink now use dirLink, and the tests' link checks accept a junction. go test -race ./internal/library/ on the Mac, go vet, windows/linux(nogui) builds pass.
2026-10-06 13:32:03 +08:00
2026-11-10 13:46:13 +08:00
2026-10-17 18:51:53 +08:00
2026-11-10 12:54:39 +08:00
2026-11-09 12:04:06 +08:00
2026-11-12 02:59:41 +08:00
2026-11-12 02:59:41 +08:00
2026-11-02 11:01:51 +08:00
2026-10-10 00:43:26 +08:00
2026-11-10 12:54:39 +08:00
2026-11-12 00:17:30 +08:00
2026-10-13 11:04:13 +08:00
2026-10-28 03:50:46 +08:00
2026-10-21 06:16:31 +08:00
2026-10-10 19:53:02 +08:00
2026-11-11 18:14:47 +08:00
2026-11-11 16:38:41 +08:00
2026-11-07 20:14:25 +08:00
2026-10-15 23:08:03 +08:00
2026-11-11 02:55:15 +08:00
2026-10-11 01:28:22 +08:00
library: on Windows without the right to make symlinks, skills are linked with junctions ( #973 ) — with Developer Mode off and magpie not elevated, os.Symlink fails with "A required privilege is not held by the client": a skill installed from a folder became a detached copy, and bringing in a skill from ~/.agents/skills failed outright. The library's folder links (an agent's link to the library's skill, a folder source, a skill brought in from a link or the shared folder, a carried skill's folder, relink) now go through dirLink, which on that error makes a directory junction instead: one every user may make, followed by every program as a symlink to a folder is, made natively (FSCTL_SET_REPARSE_POINT, no mklink). A target a junction can't reach (a network share) still gets the old copy. Go reports a junction as irregular, not a symlink, so ours, unlink, carry's clearing of the library, a project's place and the CC Switch update now tell a link by linkEntry (symlink or junction) and take it away with os.Remove, leaving what it points at, even when where it points can't be read. On the Windows box with every privilege stripped from the token (CreateRestrictedToken DISABLE_MAX_PRIVILEGE, whoami /priv shows SeChangeNotify only) and an explicit sandbox environment, the library's tests went from 16 failures to none (TestSkillHow, TestProjectSkillsLinked, TestCarry, TestSkillCopyEditReachesTheOthers, TestImportSharedSkillForKimi …); with the privilege they pass too. TestJunctionIsALink (Windows: magpie's own, read through, unlinked without its target, none to a share) is new; the folder fixtures that ignored a failed os.Symlink now use dirLink, and the tests' link checks accept a junction. go test -race ./internal/library/ on the Mac, go vet, windows/linux(nogui) builds pass.
2026-10-06 13:32:03 +08:00
2026-11-11 11:54:21 +08:00
2026-11-11 11:54:21 +08:00
2026-10-12 00:10:59 +08:00
2026-11-11 15:59:46 +08:00
2026-10-20 20:23:56 +08:00
2026-11-06 15:04:01 +08:00
2026-11-01 22:32:41 +08:00
2026-10-03 02:03:12 +08:00
2026-10-17 09:39:47 +08:00
2026-11-14 00:01:24 +08:00
2026-11-03 11:16:02 +08:00
2026-10-13 11:10:59 +08:00
2026-11-03 20:03:00 +08:00
2026-11-06 00:26:59 +08:00
2026-11-10 12:54:39 +08:00
2026-11-10 03:25:44 +08:00
library: Discover finds an MCP server by its address — a repository, page, endpoint or package pasted in (lc on Discord: https://github.com/crystaldba/postgres-mcp in Library › MCP › 发现 said 没有与 … 匹配的结果) — MarketServers matched featured servers on their words and asked the MCP Registry with the search as typed, and the registry's search is a part of a server's name (checked: "postgres mcp" lists 0, "crystaldba" 0), so a URL found nothing anywhere. A search that reads as an address (address: a scheme, git@, www., host/path, owner/repo or @scope/pkg; words with a space, or a bare word, are searched as before) is normalised (normAddr: lower case, no scheme, user, www., query, fragment, trailing slash or .git; npmjs.com/package/x, pypi.org/project/x, hub.docker.com/r/x and docker.io/x are the package, an image's tag and a package's @version dropped) and matched (addrScore: equal, under it, or a file under one's repository; owner/repo on any host; never a bare host or an owner's page standing for every repository) against each server's addresses: a featured one's page, endpoint and package; a registry one's name, websiteUrl, repository.url, remotes' URLs and packages' identifiers. The registry is asked for the names the address suggests (addrTerms: the repository's or package's name, then its owner's; a site's name for an endpoint, context7 for mcp.context7.com/mcp), and what it lists at the address comes first and alone, marked match; when nothing is, what it lists for the first name is shown, as that search would. Searched against the live registry: github.com/Eszetael/postgres-mcp-hardened.git, ghcr.io/eszetael/postgres-mcp-hardened:0.1.10, github.com/upstash/context7, https://mcp.context7.com/mcp (featured Context7), npmjs.com/package/@playwright/mcp (featured Playwright), github.com/modelcontextprotocol/servers (the reference servers) and an endpoint of ai.getvda's each find theirs. crystaldba/postgres-mcp itself isn't in the registry (no name, repository or package of it in the 124 servers a "postgres" search pages through), so it shows the 12 others called postgres-mcp, and above them "None of these is at {q} — they're found by its name." (以下都不在 {q},是按它的名字找到的。; "Nothing listed is at {q}." 没有列出位于 {q} 的服务器。 when none) with "+ Add it yourself…" (+ 自己添加…): the market's answer carries custom (CustomAt) when the search is an address nothing found is at, and the button opens the existing new-server form filled in — named for the repository (postgres), an endpoint's URL as HTTP, npx -y / uvx for an npm or PyPI page. TestAddress, TestAddrScore and TestMarketFindsByAddress (a fake registry that searches names: by repository found through its owner's name, featured by endpoint, repository, package and a repository folder, registry by endpoint, by name with one to add by hand, words as before) and market-address.test.cjs (webkit, en and zh: the note over the name matches, the form named postgres with no command, an endpoint's URL in it, words that match nothing as before; fails on the old library.js) pass, as does market-have. go vet ./internal/..., builds (-tags nogui, GOOS=windows) and go test -tags nogui -count=1 ./internal/library/... ./internal/gui/... under a temp HOME pass. Not tried in the app.
2026-10-04 07:54:08 +08:00
2026-11-10 15:47:14 +08:00
2026-10-30 14:38:22 +08:00
2026-11-10 16:14:54 +08:00
2026-11-10 17:40:35 +08:00
2026-11-10 15:47:14 +08:00
2026-11-10 16:14:54 +08:00
2026-11-01 17:00:04 +08:00
2026-11-10 21:15:14 +08:00
2026-11-01 17:26:12 +08:00
2026-10-26 16:32:23 +08:00
2026-10-30 14:47:13 +08:00
2026-11-10 12:54:39 +08:00
2026-10-11 20:10:05 +08:00
2026-11-12 23:24:50 +08:00
2026-11-01 17:00:04 +08:00
2026-11-12 23:24:50 +08:00
2026-11-13 12:29:04 +08:00
2026-11-12 00:57:23 +08:00
2026-11-12 00:57:23 +08:00
2026-11-01 16:43:21 +08:00
2026-11-01 16:43:21 +08:00
2026-10-05 07:44:11 +08:00
2026-10-05 07:44:11 +08:00
2026-10-05 07:44:11 +08:00
2026-10-27 06:45:37 +08:00
2026-10-13 03:43:04 +08:00
2026-10-10 17:49:07 +08:00
2026-11-05 14:50:02 +08:00
2026-11-11 18:14:47 +08:00
2026-10-23 01:00:44 +08:00
2026-11-12 00:57:23 +08:00
2026-10-10 18:35:17 +08:00
2026-10-10 18:35:17 +08:00
2026-10-12 02:56:01 +08:00
2026-11-13 13:42:48 +08:00
2026-11-13 13:42:48 +08:00
2026-11-07 03:21:57 +08:00
2026-11-02 18:37:57 +08:00
2026-10-29 09:33:11 +08:00
2026-11-10 03:25:44 +08:00
2026-11-12 00:57:23 +08:00
2026-10-30 02:31:08 +08:00
2026-11-13 13:42:48 +08:00
2026-11-03 20:38:11 +08:00
2026-11-10 12:54:39 +08:00
2026-11-10 10:23:53 +08:00
2026-11-10 10:23:53 +08:00
2026-10-27 18:52:15 +08:00
2026-11-11 17:01:36 +08:00
2026-11-11 17:01:36 +08:00
2026-10-28 00:19:24 +08:00
2026-10-28 00:19:24 +08:00
2026-11-12 00:57:23 +08:00
2026-11-12 00:57:23 +08:00
2026-11-13 11:11:33 +08:00
2026-11-11 10:49:46 +08:00
2026-10-31 10:14:03 +08:00
2026-11-13 11:11:33 +08:00
2026-10-13 03:43:05 +08:00
2026-10-11 22:06:36 +08:00
library: a remote MCP server signed in once in magpie is used by every agent without signing in again ( #615 ) — a streamable-HTTP server behind OAuth (Neon, Notion, Supabase) had each agent run its own sign-in. The server's editor now has Sign in: magpie finds the authorization server from the server's 401 (RFC 9728 protected-resource metadata, RFC 8414/OIDC metadata, else the 2025-03 /authorize, /token, /register at its origin), registers itself (RFC 7591, a 127.0.0.1 redirect), opens the browser with PKCE S256 and the resource, and keeps the tokens in mcp-signins.json beside its other account secrets (0600, never the keychain). While signed in, the agents are given the gateway's /mcp/<name> for that server, without the Authorization the library has for it; the gateway passes POST (JSON or event stream), the GET stream and DELETE on with the Mcp-Session-Id and magpie's token, renews it 2 minutes before it runs out and once on a 401, one renewal per server at a time, and a sign-in the server won't renew is answered 502 "sign in to it again" (never a 401 the agent would act on). Signing out, a new URL or an SSE server gives the agents the server's own address as before; a rename keeps the sign-in and removing the server drops it. /mcp/ is local-only or LAN-shared with the key, and refuses a request with an Origin or a Host not naming this computer, so a web page can't borrow the sign-in through the browser (form posts, DNS rebinding), and isn't counted as busy or key-limited. WSL agents are given their distro's gateway address. The row says Signed in or Sign-in ran out; zh strings added. Tests: TestSignIn, TestSignInWithoutMetadata, TestSignInPage, TestNothingToSignIn, TestTokenRenewsBeforeItRunsOut (8 calls, 1 renewal), TestRenewRefused, TestRenewRefusedForGood, TestMCPProxy, TestMCPProxyStaysHere, TestMCPProxyNotForWebPages (fails without the Origin/Host check), TestSignedInServerGoesThroughMagpie against a local fake OAuth+MCP server; mcp-signin.test.cjs (webkit, en and zh). Not tried against a real Neon/Notion/Supabase sign-in. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-03 09:37:39 +08:00
2026-10-10 18:09:59 +08:00
2026-11-12 00:57:23 +08:00
2026-11-07 12:59:36 +08:00
2026-10-25 09:41:32 +08:00
2026-10-15 06:07:43 +08:00
2026-11-11 16:38:41 +08:00
2026-10-11 09:24:07 +08:00
wsl: background work never touches a WSL distro that has stopped since it was last seen running — it booted it again (TJHHHH on Discord: while they were repairing WSL, magpie kept starting it). Detection already listed only running distros, but the running set was kept for a minute (wslListAge), agents built while a distro ran kept its home and read its files from their Get/Sync/Check/Reached/Routed closures later, the sessions listing kept a distro's Running for 30s+ and read its \\wsl.localhost files, and wslrun.Find reused a tool it had found in a distro for a minute and ran wsl.exe -d on it. Any wsl.exe -d or \\wsl.localhost read boots a stopped distro, so a wsl --shutdown was undone within a minute, and the distro, running again, kept it going. Now wsl.exe -l --running -q (it starts nothing; UTF-16 with or without BOM, or UTF-8 under WSL_UTF8) is asked again after 3s, and a distro not in it is not touched: a WSL agent's Get gives the last values seen, Sync/Check/Reached do nothing and Routed/Joined/Beside/Added say no; sessions aren't listed or read from it (wslCold says cold); wslrun.Find (Claude subscription sign-in and usage) doesn't reuse or run a tool there; the Library gives skills to no target in it and its MCP probe says it isn't running. An explicit action still starts it: setting a WSL agent's field, a Set on a running agent, resuming a WSL session. TestWSLStoppedSinceNotOpened (agent, sessions), TestWSLStoppedSinceNoTarget (library) and TestFindStoppedSince (wslrun) fail without the change and pass; TestUp covers the -l --running parse. On the Windows box (10.0.0.132) a test binary that had seen magpie-fedora running ran Values/Check/Reached/wslDistros/wslAgents/sessions.List/wslrun.Find against it for 4 rounds while it was stopped: it stayed Stopped and wsl -l -v was unchanged; wslrun and agent WSL tests pass there. No distro was terminated for the check (magpie-desktop is in use, the stopped ones aren't ours). go test ./... (nogui), -race on the WSL tests, go vet, windows and linux (nogui) builds pass.
2026-10-06 14:25:41 +08:00
2026-11-13 13:42:48 +08:00
2026-11-10 03:25:44 +08:00
2026-11-11 15:08:58 +08:00
2026-11-11 15:08:58 +08:00
agent: MiniMax Code ( #362 ) — MiniMax's mcode CLI (and its desktop app, same runtime) reads $MINIMAX_DATA_DIR/config.yaml, else ~/.minimax/config.yaml. Choosing a magpie model adds custom_provider.magpie there (the gateway, spoken to as Anthropic messages, with the catalog's models, efforts, limits and image support) and sets defaultModel to custom_provider:magpie/<model>; the user's own default and variant are kept and put back on reset, their comments, providers and keys on magpie's entry stay, and an emptied custom_provider goes. The Library installs skills into its skills folder; it reads no user-wide MCP file, so it gets no MCP target. Checked against @minimax-ai/code 0.5.10 in a sandbox HOME: mcode provider list shows magpie's entry and mcode exec reaches a fake upstream through it with magpie's key, model and effort; after a reset it loads the restored file. TestMiniMaxCode, TestMiniMaxCodeSync, TestMiniMaxCodeLeavesNoEmptyProviders, TestMiniMaxCodeDataDir and TestMiniMaxCodeSkills fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass (TestUserPath and the Claude account tests pass alone).
2026-10-01 03:24:34 +08:00
2026-11-10 16:27:14 +08:00
2026-11-03 21:43:54 +08:00
2026-10-15 06:07:43 +08:00
2026-10-06 07:43:47 +08:00
2026-11-09 16:33:28 +08:00
2026-11-09 16:33:28 +08:00
2026-11-10 21:15:14 +08:00
2026-11-10 21:15:14 +08:00
2026-10-13 08:36:14 +08:00
2026-11-10 12:54:39 +08:00
2026-11-11 17:27:08 +08:00
2026-11-07 20:14:49 +08:00
2026-11-07 20:14:49 +08:00
2026-11-14 09:11:31 +08:00
2026-10-08 23:58:22 +08:00
2026-10-15 14:19:00 +08:00
2026-11-10 22:39:29 +08:00
2026-11-10 22:39:29 +08:00
2026-11-10 22:39:29 +08:00
2026-11-10 22:39:29 +08:00
2026-11-13 12:18:23 +08:00
2026-11-13 12:18:23 +08:00
2026-11-13 12:18:23 +08:00
2026-11-10 22:39:29 +08:00
2026-11-10 22:39:29 +08:00
2026-11-13 12:18:23 +08:00
2026-10-11 22:23:45 +08:00
gui: a Discover card says Add again once its server or skill is removed ( #300 ), and hovering today's bar in the daily trend keeps its tooltip ( #309 ) — every library change went through change(), which redrew the library only; the market's "Added" marks were refreshed on window focus alone, so removing a server or skill, adding or renaming one in the editor, or pasting several left them stale. take() is now the one way the page accepts a library: when the servers' or skills' names change it clears the marks of those gone, redraws the market and fetches it again. RemoveServer drops the server's icon from library.json, unless another server runs the same thing. The Sessions tab re-reads every 15s, and with an agent at work today's numbers change, so the chart was rebuilt and today's bar under the pointer replaced, its tooltip with it; a redraw with the same days, metric and locale now updates the bars in place (heights, titles, peak). market-have.test.cjs and sessions-today.test.cjs (Chromium, WebKit, en/zh) and TestRemoveServerDropsItsIcon fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass; sessions-overview, click-scroll, old-webkit, library-items, shared-skills pass.
2026-09-30 18:09:09 +08:00
2026-10-06 22:24:04 +08:00
library: Remove all beside Turn all on/off takes every skill out of the library at once ( #449 ) — a library of many skills could only be emptied a row's Remove at a time. Remove all, in red, asks in the page first, naming the agents that lose the skills, the projects magpie placed them in, the folders that go to magpie's backups and those of the user's own that are only unlinked; Cancel sends nothing. Confirming sends every name in one call, library.RemoveSkills, which takes each as RemoveSkill does, the folders kept aside together under one backup; one that can't be taken out stays, and is said, while the rest go. magpie library skill rm --all does the same, asking y/N on a terminal and, with none, only with --yes. TestRemoveSkills and TestLibrarySkillRmAll fail without the change, as does remove-all-skills.test.cjs (Chromium and WebKit, English and Chinese); click-scroll, old-webkit, every-skill pass. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass (bar the known Claude account flake TestClaudeSignedOut).
2026-10-02 00:47:15 +08:00
2026-10-11 05:33:23 +08:00
2026-10-11 05:33:23 +08:00
2026-10-15 00:02:24 +08:00
2026-10-27 17:08:57 +08:00
2026-10-13 14:29:52 +08:00
2026-10-13 14:29:52 +08:00
2026-10-13 14:29:52 +08:00
2026-10-30 20:03:32 +08:00
2026-10-28 19:28:44 +08:00
2026-10-30 20:03:32 +08:00
library: RTK says when rtk isn't on the PATH the agents get, and puts it there when asked ( #601 , Moody-Sin: magpie好像没有正确安装RTK — Pi said "RTK disabled: rtk binary not found in PATH" while the Library showed RTK working) — rtk's hooks run it by name (Pi's extension probes rtk --version and turns itself off when that fails; Claude Code's and Codex's are rtk hook …; the commands they rewrite to are rtk git status and so on), but magpie looked for rtk in more places than an agent's PATH: ~/.local/bin and ~/.cargo/bin, which the app adds to its own PATH whether the user's shell has them or not (rtk's own install.sh puts it in ~/.local/bin and only warns when that isn't on PATH), and WinGet\Links on Windows, which winget doesn't always link into. So rtk was "installed", the agents were switched on with it by its whole path, and none of them could run it. Now the PATH a terminal opened now has is read — the login shell's (proc.LoginPath, the one UserPath already asks for, kept a minute) or on Windows the registry's (moved from provider's registryPath) — and when rtk isn't in it the RTK card says so, with what Put RTK on PATH will do, and each agent that has rtk is tagged Not on PATH (不在 PATH 中). Put RTK on PATH (magpie library rtk path) links rtk into the first of ~/.local/bin, ~/bin, /opt/homebrew/bin, /usr/local/bin, linuxbrew's bin, ~/.cargo/bin that is on that PATH and writable, or on Windows adds rtk's own folder to the user's PATH in the registry (a link needs Developer Mode, and a copy is left behind when winget upgrades rtk; winget's package folder doesn't change across upgrades) and tells Explorer; with no such folder it says which folder to add to PATH in the shell profile — shell profiles are never edited. rtk is also found in winget's package folder (WinGet\Packages\rtk-ai.rtk_*), and rtk's script upgrades a linked rtk where the link points, not over the link. TestRTKOffPath and library-rtk-path.test.cjs (en, zh) fail without the change. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build and vet, go test -tags nogui -count=1 ./... under a temp HOME pass but the known TestFXInState flake. The Windows registry path is built, not run on Windows.
2026-10-03 02:38:17 +08:00
2026-10-15 06:07:43 +08:00
library: RTK says when rtk isn't on the PATH the agents get, and puts it there when asked ( #601 , Moody-Sin: magpie好像没有正确安装RTK — Pi said "RTK disabled: rtk binary not found in PATH" while the Library showed RTK working) — rtk's hooks run it by name (Pi's extension probes rtk --version and turns itself off when that fails; Claude Code's and Codex's are rtk hook …; the commands they rewrite to are rtk git status and so on), but magpie looked for rtk in more places than an agent's PATH: ~/.local/bin and ~/.cargo/bin, which the app adds to its own PATH whether the user's shell has them or not (rtk's own install.sh puts it in ~/.local/bin and only warns when that isn't on PATH), and WinGet\Links on Windows, which winget doesn't always link into. So rtk was "installed", the agents were switched on with it by its whole path, and none of them could run it. Now the PATH a terminal opened now has is read — the login shell's (proc.LoginPath, the one UserPath already asks for, kept a minute) or on Windows the registry's (moved from provider's registryPath) — and when rtk isn't in it the RTK card says so, with what Put RTK on PATH will do, and each agent that has rtk is tagged Not on PATH (不在 PATH 中). Put RTK on PATH (magpie library rtk path) links rtk into the first of ~/.local/bin, ~/bin, /opt/homebrew/bin, /usr/local/bin, linuxbrew's bin, ~/.cargo/bin that is on that PATH and writable, or on Windows adds rtk's own folder to the user's PATH in the registry (a link needs Developer Mode, and a copy is left behind when winget upgrades rtk; winget's package folder doesn't change across upgrades) and tells Explorer; with no such folder it says which folder to add to PATH in the shell profile — shell profiles are never edited. rtk is also found in winget's package folder (WinGet\Packages\rtk-ai.rtk_*), and rtk's script upgrades a linked rtk where the link points, not over the link. TestRTKOffPath and library-rtk-path.test.cjs (en, zh) fail without the change. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build and vet, go test -tags nogui -count=1 ./... under a temp HOME pass but the known TestFXInState flake. The Windows registry path is built, not run on Windows.
2026-10-03 02:38:17 +08:00
library: RTK says when rtk isn't on the PATH the agents get, and puts it there when asked ( #601 , Moody-Sin: magpie好像没有正确安装RTK — Pi said "RTK disabled: rtk binary not found in PATH" while the Library showed RTK working) — rtk's hooks run it by name (Pi's extension probes rtk --version and turns itself off when that fails; Claude Code's and Codex's are rtk hook …; the commands they rewrite to are rtk git status and so on), but magpie looked for rtk in more places than an agent's PATH: ~/.local/bin and ~/.cargo/bin, which the app adds to its own PATH whether the user's shell has them or not (rtk's own install.sh puts it in ~/.local/bin and only warns when that isn't on PATH), and WinGet\Links on Windows, which winget doesn't always link into. So rtk was "installed", the agents were switched on with it by its whole path, and none of them could run it. Now the PATH a terminal opened now has is read — the login shell's (proc.LoginPath, the one UserPath already asks for, kept a minute) or on Windows the registry's (moved from provider's registryPath) — and when rtk isn't in it the RTK card says so, with what Put RTK on PATH will do, and each agent that has rtk is tagged Not on PATH (不在 PATH 中). Put RTK on PATH (magpie library rtk path) links rtk into the first of ~/.local/bin, ~/bin, /opt/homebrew/bin, /usr/local/bin, linuxbrew's bin, ~/.cargo/bin that is on that PATH and writable, or on Windows adds rtk's own folder to the user's PATH in the registry (a link needs Developer Mode, and a copy is left behind when winget upgrades rtk; winget's package folder doesn't change across upgrades) and tells Explorer; with no such folder it says which folder to add to PATH in the shell profile — shell profiles are never edited. rtk is also found in winget's package folder (WinGet\Packages\rtk-ai.rtk_*), and rtk's script upgrades a linked rtk where the link points, not over the link. TestRTKOffPath and library-rtk-path.test.cjs (en, zh) fail without the change. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build and vet, go test -tags nogui -count=1 ./... under a temp HOME pass but the known TestFXInState flake. The Windows registry path is built, not run on Windows.
2026-10-03 02:38:17 +08:00
2026-11-13 18:41:28 +08:00
2026-11-01 16:43:21 +08:00
2026-11-11 17:21:00 +08:00
2026-11-11 17:21:00 +08:00
2026-10-22 21:15:36 +08:00
2026-10-11 00:37:16 +08:00
2026-10-11 00:37:16 +08:00
2026-10-11 00:37:16 +08:00
2026-10-29 19:58:40 +08:00
2026-10-31 21:29:22 +08:00
2026-11-10 12:54:39 +08:00
2026-10-10 01:30:40 +08:00
2026-11-10 15:47:14 +08:00
2026-10-01 04:59:22 +08:00
profiles: a saved profile keeps the Library's setup too, and switching to it switches that as well ( #29 ) — which agents get each MCP server and skill, and the instructions (the shared text, the agents it is written to, what each gets besides), so moving from one profile to another left the tools and the instructions as they were and only the models followed. A profile keeps them under "library" beside its agent.field keys; the servers and skills themselves stay in the library, a profile only names them. Applying one sets the models as before, then gives each server and skill to the agents it names and puts the instructions back, written into the agents as any Library change is, their files and the library's own instructions kept aside first; one removed from the library since is skipped and said so, one added since keeps its agents (the profile knows nothing of it, and switching it off would lose it for good). A profile saved before, or while the library was empty, carries none and leaves the library as it is. magpie profiles, the TUI and the panel's chips say what a profile gives out (+ library: 2 servers, 1 skill, instructions)
2026-09-25 14:23:56 +08:00
2026-10-20 20:23:56 +08:00
2026-11-05 18:31:17 +08:00
2026-10-15 06:07:43 +08:00
2026-11-09 11:29:51 +08:00
2026-11-01 02:02:24 +08:00
2026-11-11 17:28:53 +08:00
2026-10-30 10:29:59 +08:00
2026-10-13 15:44:02 +08:00
2026-10-06 00:37:50 +08:00
2026-11-05 18:31:17 +08:00
2026-11-03 16:33:03 +08:00
2026-11-03 16:33:03 +08:00
2026-11-02 05:38:11 +08:00
2026-11-10 12:54:39 +08:00
2026-10-23 01:58:00 +08:00
2026-10-23 01:58:00 +08:00
library: the skills picked can be put in a group of the user's own ( #791 , mintonight: 能不能在选择后自己创建分组呢) — with Select on (By source), the pick bar has Group…, which asks a name in the bar (Enter makes it, Escape goes back; a group there is is offered to add them to). The group is kept in library.json (skillGroups) and shown as a card of its own above the groups by source, open, its skills taken out of their sources' cards; a skill is in one group at most. The card has Rename (in place) and Ungroup, and the pick bar Ungroup for picked skills that are in one; grouping changes only how the page shows the skills, never what the agents get. A skill taken out of the library leaves its group, and an empty group goes. zh/ja/de strings added. TestSkillGroups and skill-groups.test.cjs (WebKit, en and zh: group, rename, ungroup; it fails on the old code, which has no Group…); pick-skills, skill-parts, group-skill-chips and the other library tests pass on WebKit. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn, TestUserPath and TestClaudeSignedOut flaked under load and pass alone).
2026-10-05 01:21:05 +08:00
library: the skills picked can be put in a group of the user's own ( #791 , mintonight: 能不能在选择后自己创建分组呢) — with Select on (By source), the pick bar has Group…, which asks a name in the bar (Enter makes it, Escape goes back; a group there is is offered to add them to). The group is kept in library.json (skillGroups) and shown as a card of its own above the groups by source, open, its skills taken out of their sources' cards; a skill is in one group at most. The card has Rename (in place) and Ungroup, and the pick bar Ungroup for picked skills that are in one; grouping changes only how the page shows the skills, never what the agents get. A skill taken out of the library leaves its group, and an empty group goes. zh/ja/de strings added. TestSkillGroups and skill-groups.test.cjs (WebKit, en and zh: group, rename, ungroup; it fails on the old code, which has no Group…); pick-skills, skill-parts, group-skill-chips and the other library tests pass on WebKit. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn, TestUserPath and TestClaudeSignedOut flaked under load and pass alone).
2026-10-05 01:21:05 +08:00
2026-11-13 11:28:51 +08:00
2026-11-13 11:28:51 +08:00
2026-10-29 04:23:33 +08:00
2026-10-16 18:38:31 +08:00
2026-10-29 04:23:33 +08:00
2026-10-30 10:29:59 +08:00
2026-11-09 11:29:51 +08:00
2026-11-09 11:29:51 +08:00
2026-11-06 22:22:20 +08:00
2026-11-06 12:13:16 +08:00
2026-11-10 12:54:39 +08:00
2026-10-29 14:39:57 +08:00
2026-11-13 10:53:40 +08:00
2026-11-13 10:53:40 +08:00
2026-11-01 02:02:24 +08:00
2026-11-01 04:36:37 +08:00
2026-10-17 11:01:48 +08:00
2026-11-01 16:43:21 +08:00
2026-11-06 19:50:40 +08:00
2026-10-23 01:58:00 +08:00
2026-11-10 12:54:39 +08:00
2026-11-06 19:50:40 +08:00
2026-11-01 02:45:01 +08:00
2026-11-06 19:50:40 +08:00
2026-11-03 20:03:00 +08:00
2026-11-06 15:04:01 +08:00
2026-11-06 15:04:01 +08:00
2026-11-03 05:43:12 +08:00
2026-11-11 23:09:15 +08:00
2026-10-27 09:31:57 +08:00
2026-10-27 09:31:57 +08:00
2026-11-14 09:11:31 +08:00
2026-11-14 09:11:31 +08:00
2026-11-04 21:18:56 +08:00
2026-11-14 09:11:31 +08:00
library: on Windows without the right to make symlinks, skills are linked with junctions ( #973 ) — with Developer Mode off and magpie not elevated, os.Symlink fails with "A required privilege is not held by the client": a skill installed from a folder became a detached copy, and bringing in a skill from ~/.agents/skills failed outright. The library's folder links (an agent's link to the library's skill, a folder source, a skill brought in from a link or the shared folder, a carried skill's folder, relink) now go through dirLink, which on that error makes a directory junction instead: one every user may make, followed by every program as a symlink to a folder is, made natively (FSCTL_SET_REPARSE_POINT, no mklink). A target a junction can't reach (a network share) still gets the old copy. Go reports a junction as irregular, not a symlink, so ours, unlink, carry's clearing of the library, a project's place and the CC Switch update now tell a link by linkEntry (symlink or junction) and take it away with os.Remove, leaving what it points at, even when where it points can't be read. On the Windows box with every privilege stripped from the token (CreateRestrictedToken DISABLE_MAX_PRIVILEGE, whoami /priv shows SeChangeNotify only) and an explicit sandbox environment, the library's tests went from 16 failures to none (TestSkillHow, TestProjectSkillsLinked, TestCarry, TestSkillCopyEditReachesTheOthers, TestImportSharedSkillForKimi …); with the privilege they pass too. TestJunctionIsALink (Windows: magpie's own, read through, unlinked without its target, none to a share) is new; the folder fixtures that ignored a failed os.Symlink now use dirLink, and the tests' link checks accept a junction. go test -race ./internal/library/ on the Mac, go vet, windows/linux(nogui) builds pass.
2026-10-06 13:32:03 +08:00
2026-10-13 14:55:46 +08:00
2026-11-14 09:11:31 +08:00
2026-10-07 03:00:47 +08:00
2026-10-15 23:08:03 +08:00
2026-11-14 00:01:24 +08:00
2026-10-10 19:53:02 +08:00
2026-10-30 10:29:59 +08:00
2026-11-03 20:03:00 +08:00
2026-10-31 21:29:22 +08:00
2026-11-03 20:03:00 +08:00
2026-11-03 20:03:00 +08:00
2026-11-03 20:03:00 +08:00
2026-11-03 20:03:00 +08:00
2026-11-03 20:03:00 +08:00
2026-10-10 00:37:32 +08:00