Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

library: a skill can be turned off on this computer alone, and a sync neither carries that nor turns it on

yetonefe05f0a72174
diff --git a/docs/subsystems/library.md b/docs/subsystems/library.md
index cc519d84a..34f7acc54 100644
--- a/docs/subsystems/library.md
+++ b/docs/subsystems/library.md
@@ -61,6 +61,7 @@ agents RTK, a CLI that cuts shell output down before the model reads it.
- With the MCP hub on (`MCPHub`), an agent that takes a Streamable HTTP server is given magpie's one `magpie` entry in place of the Library servers ticked for it, and each server's own entry again when it is turned off. One that can't, or has an entry called magpie of its own, or whose library has a server called magpie, keeps each server's own entry, and the page says why ([MCP hub](mcp-hub.md)).
- magpie's own MCP server (`magpie-image`, and any `mcp …` run by a program named magpie) runs this computer's magpie (#1439). `InstallServer` gives it magpie by full path (`update.Program`: the AppImage, not its mount; Homebrew's opt link, not the Cellar), and that path is right only on this computer. When the library is read, and after every change, `heal` points such a server whose program isn't on this computer (another system's path, a magpie moved out of Downloads, a bare `magpie`) at this magpie, so the agents and `CheckServers` get it; a magpie program that is here (another build) and a server run by any other program stay as they are. A carried library (`Collect`, for a backup or a WebDAV or S3 sync) names it as plain `magpie`, so two computers carry the same bundle and a sync doesn't write one's path over the other's; `Put` then reads it as that computer's magpie. [`self_here.go`](../../internal/library/self_here.go)
- A carried library (`Collect`) has every file of each skill, its templates and other binaries included, up to `maxCarried` (16 MiB) a file and `maxCarriedAll` (32 MiB) in all, chosen smallest first across the skills (`readSkills`), so every skill's text goes before any big file. The total keeps a sealed backup under the 64 MiB a sync reads: the files are base64 twice in it. What is left out is named in `Left`, and `Put` keeps this computer's copy of such a file in the skill it puts (`keepLeft`). [`carry.go`](../../internal/library/carry.go)
+- A skill can be turned off on this computer alone (`OffHere`, `SkillHere`; the row's power button, `magpie library skill off-here <name>` and `on-here`; hanslin1666 on Discord). No agent here gets it, whatever its `Agents` say (`gives`, which every reader of `Agents` for giving goes through: `syncSkills`, `desktop_skills.go`, `skill_changed.go`, `skill_edits.go`, `behind`, `Targets`). `Agents` stays what a sync carries, and the page leaves its chips as they are, faded. `Collect` never carries `OffHere`, so turning it off changes no part a sync uploads, and `Put` keeps this computer's `OffHere` for a skill it puts, so a sync from a computer that has it on, or gives it to more agents, never turns it on here. A library.json from before has no `offHere` and every skill stays on. Not covered: a project's skills; a library skill whose own folder is inside `~/.agents/skills`, which agents read in place; and a skill another computer removes, which takes the flag with it. [`skills.go`](../../internal/library/skills.go), [`carry.go`](../../internal/library/carry.go)
- WorkBuddy's servers go in `$WORKBUDDY_CONFIG_DIR/mcp.json` (default `~/.workbuddy`; WorkBuddy AI, the international build, keeps its own in `~/.workbuddy-ai`, #1494), and CodeBuddy Code's go in the first of `.mcp.json`, `mcp.json` and `~/.codebuddy.json` that exists, as `resolveMcpFilePath` reads them (#1266). WorkBuddy connects a server only after the user has switched it on once in its own MCP settings. It keeps that approval in `mcp-approvals.json`, keyed by the command, args and env names or the URL's origin, so changing those asks again. magpie never writes the approval, and the servers page says so, by the build's name, when a server is given to WorkBuddy or WorkBuddy AI.
- Alma's servers go in `~/.config/alma/mcp.json` on every system (its home, not its data folder), as its own MCP settings write them: `command`/`args`/`env`, or `url`/`headers` with `transport: "sse"` only for SSE (#1292). Alma reads the file as it starts and when its MCP settings refresh, so a server given to it while it runs reaches it after one of those.
- Grok App's independent home (Use on a custom provider, `GROK_HOME` at `agent-home` under its data folder) gets instructions in `AGENTS.md`, MCP servers in `[mcp_servers]` of the same `config.toml` magpie's channel is in, skills in `skills/`, and hooks as `[[hooks.<Event>]]` tables in that config, and it also reads `~/.agents/skills`. Shared mode stays on Grok Build's `~/.grok` row. RTK lists Grok App, and Grok Build, with the switch off: `rtk init` has no Grok agent.
@@ -79,9 +80,12 @@ agents RTK, a CLI that cuts shell output down before the model reads it.
```sh
go test -tags nogui ./internal/library -run 'TestGit|TestInstallFromGitRepo|TestReadLooksAtEachFolderOnce|TestLinkChangedBetweenVisitsShows|TestUnreadablePartIsLookedAtAgain|TestCheckSkillsFindsNewOnes|TestNewBase|TestUpdateKeeps|TestCheckDue|TestCheckSkillsMarksItDone|TestTargets|TestWSLPiMCP|TestWSLMCPSiblings|TestServer|TestHub|TestImportServer|TestCheck|TestInstructions|TestInstructionsSetLinkedToAgentsFile|TestInstructionSets|TestTakesAlma|TestAlma|TestLinkedSet|TestLinkRefused|TestSkill|TestRemoveFoundSkill|TestInstallSet|TestInstallLists|TestEverySkillAgents|TestEveryServerAgents|TestSomeServersAgents|TestRemoveServers|TestRTK|TestEnvRefs|TestDshRefRoundTrip|TestDshImportKeepsJS|TestAgentMCPFiles|TestCodeBuddyMCPFile|TestZedMCP|TestOwnServerFromElsewhereRunsThisMagpie|TestUsersOwnServerStaysAsItIs|TestCarriedOwnServerIsEachComputersMagpie|TestCarry|TestPageReadDoesntReadUnchangedSkillsAgain|TestJustWrittenSkillIsReadAgain|TestUnreadableSkillIsntRememberedAsDifferent|TestGlanceLeavesOutTheAgentsSkills|TestPluginAgent|TestPluginMCPFormatsAreWritten|TestToolsOff|TestOffList|TestHooks|TestSubagent|TestCheckRenewsMagpiesSignIn|TestCheckWSLOnlyServerInItsDistro|TestCheckWindowsServerHere|TestCheckMixedServerEachSide|TestCheckSaysSignInRanOut|TestCheckNamesAgentsSignedInThemselves|TestSignInAsTheUsersOwnApp|TestOAuthAppChecked|TestOAuthAppSecretCarried|TestGoneAgentListedToTakeOut|TestUpdateFindsSkillsRemovedUpstream|TestGoneFromNeedsTheSourceRead'
+go test -tags nogui ./internal/library -run 'TestSkillOffHere'
+go test -tags nogui ./internal/davsync -run 'TestSkillOffHereThroughSync'
go test -tags nogui ./internal/cli -run 'TestLibrarySkillRm'
go test -race ./internal/mcpauth
go test -tags nogui ./internal/library
+node --test internal/gui/tests/skill-off-here.test.cjs
node --test internal/gui/tests/library-items.test.cjs internal/gui/tests/library-mcp-hub.test.cjs internal/gui/tests/library-alma-profile.test.cjs internal/gui/tests/library-rtk-gain.test.cjs internal/gui/tests/library-rtk-nohook.test.cjs internal/gui/tests/library-servers-bulk.test.cjs internal/gui/tests/library-pick-remove.test.cjs internal/gui/tests/library-env-refs.test.cjs internal/gui/tests/library-zed-mcp.test.cjs internal/gui/tests/library-workbuddy-trust.test.cjs internal/gui/tests/skill-new-in-repo.test.cjs internal/gui/tests/skill-update-edited.test.cjs internal/gui/tests/skill-gone.test.cjs internal/gui/tests/skill-git-source.test.cjs internal/gui/tests/remove-found-skill.test.cjs internal/gui/tests/found-skill-pick-remove.test.cjs internal/gui/tests/library-loading.test.cjs internal/gui/tests/library-mcp-tools.test.cjs internal/gui/tests/library-mcp-tool-switch.test.cjs internal/gui/tests/library-hooks.test.cjs internal/gui/tests/library-subagents.test.cjs internal/gui/tests/library-mcp-health.test.cjs internal/gui/tests/library-mcp-health-wsl.test.cjs internal/gui/tests/mcp-signin-health.test.cjs internal/gui/tests/mcp-signin.test.cjs internal/gui/tests/mcp-editor-cancel.test.cjs internal/gui/tests/mcp-oauth-app.test.cjs internal/gui/tests/library-ime-scroll.test.cjs
```
diff --git a/docs/subsystems/sync-backup.md b/docs/subsystems/sync-backup.md
index 8128bed64..14d73499b 100644
--- a/docs/subsystems/sync-backup.md
+++ b/docs/subsystems/sync-backup.md
@@ -182,6 +182,12 @@ repository can keep the token. The branch is part of the sync state key.
nothing on one without (`TestArchiveNeverOnDiskUnasked`,
`TestRequestArchiveLocalIsThisComputers`).
+A library skill turned off on one computer (`OffHere`, see
+[library](library.md)) stays off there alone: the library part never carries
+it, and putting another computer's library keeps it, so the others keep the
+skill on and a sync from them doesn't turn it on here
+(`TestSkillOffHereThroughSync`, two computers through the fake S3).
+
## Verification
```sh
diff --git a/internal/cli/library_cli.go b/internal/cli/library_cli.go
index 2b6b74258..8e6851143 100644
--- a/internal/cli/library_cli.go
+++ b/internal/cli/library_cli.go
@@ -24,6 +24,8 @@ const libraryUsage = `magpie library what the library gives
magpie library mcp rm <name>
magpie library mcp hub on|off give each agent one MCP server, magpie, in place of the library's (magpie runs them, once for every agent)
magpie library skill agents <name> <a,b…|none>
+ magpie library skill off-here <name> turn it off on this computer only: a sync neither carries that nor turns it back on
+ magpie library skill on-here <name> …and on again here
magpie library skill rm <name> (skills are installed from the app's Library page)
magpie library skill rm --all [--yes] every skill out of the library and the agents (asks first; --yes doesn't)
magpie library skill rm --gone [--yes] every skill an update found removed from its source (asks first; --yes doesn't)
@@ -138,6 +140,8 @@ func libraryCmd(args []string) error {
if res, err = removeEverySkill(rest[1:]); res == nil && err == nil {
return nil
}
+ case len(rest) == 2 && (rest[0] == "off-here" || rest[0] == "on-here") && !strings.HasPrefix(rest[1], "-"):
+ res, err = library.SkillHere(rest[1], rest[0] == "on-here")
case len(rest) == 2 && rest[0] == "rm":
res, err = library.RemoveSkill(rest[1])
case len(rest) == 3 && rest[0] == "use-library":
@@ -461,6 +465,9 @@ func libraryStatus() error {
if s.Gone != "" {
fmt.Println(" ", amber.Render("!"), muted.Render("removed from "+s.Source+" · magpie library skill rm --gone"))
}
+ if s.OffHere {
+ fmt.Println(" ", muted.Render("off on this computer · magpie library skill on-here "+s.Name))
+ }
}
fmt.Println(muted.Render(" kept in " + v.Dir + " · magpie library help"))
return nil
diff --git a/internal/davsync/skill_off_here_test.go b/internal/davsync/skill_off_here_test.go
new file mode 100644
index 000000000..06cf4f48f
--- /dev/null
+++ b/internal/davsync/skill_off_here_test.go
@@ -0,0 +1,117 @@
+package davsync
+
+import (
+ "context"
+ "os"
+ "path/filepath"
+ "slices"
+ "testing"
+
+ "github.com/yetone/magpie/internal/appdir"
+ "github.com/yetone/magpie/internal/library"
+ "github.com/yetone/magpie/internal/provider"
+)
+
+// A skill turned off on one computer (hanslin1666 on Discord) stays off
+// there through a real sync, and on on the other: a sync carries neither
+// the off nor turns it on again, while what each agent is ticked for
+// still goes both ways.
+func TestSkillOffHereThroughSync(t *testing.T) {
+ f, srv := newFakeS3(t)
+ cfg := f.config(srv)
+ cfg.Keys, cfg.Agents = false, false
+ a, b := newComputer(t), newComputer(t)
+ use := func(c computer) {
+ t.Helper()
+ c.use(t)
+ appdir.UseExecutable("")
+ provider.ForgetAccounts()
+ for _, p := range []string{".claude/settings.json", ".codex/config.toml"} {
+ p = filepath.Join(string(c), p)
+ os.MkdirAll(filepath.Dir(p), 0o755)
+ if _, err := os.Stat(p); err != nil {
+ os.WriteFile(p, nil, 0o644)
+ }
+ }
+ }
+ t.Cleanup(provider.ForgetAccounts)
+ now := func() {
+ t.Helper()
+ if err := Now(context.Background()); err != nil {
+ t.Fatal(err)
+ }
+ }
+ has := func(c computer, agent string) bool {
+ _, err := os.Lstat(filepath.Join(string(c), agent, "skills", "pdf"))
+ return err == nil
+ }
+ view := func() library.SkillView {
+ t.Helper()
+ v, err := library.Read(nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, s := range v.Skills {
+ if s.Name == "pdf" {
+ return s
+ }
+ }
+ t.Fatalf("no pdf: %+v", v.Skills)
+ return library.SkillView{}
+ }
+ ok := func(_ *library.Result, err error) {
+ t.Helper()
+ if err != nil {
+ t.Fatal(err)
+ }
+ }
+
+ // A has pdf on Claude Code, and syncs first
+ use(a)
+ src := filepath.Join(string(a), "src", "pdf")
+ os.MkdirAll(src, 0o755)
+ os.WriteFile(filepath.Join(src, "SKILL.md"), []byte("---\nname: pdf\ndescription: Read PDFs\n---\nRead them.\n"), 0o644)
+ ok(library.InstallSkills(filepath.Join(string(a), "src"), []string{"pdf"}, []string{"claude"}))
+ if err := Configure(cfg); err != nil {
+ t.Fatal(err)
+ }
+ now()
+
+ // B takes it, then turns it off on B alone and syncs
+ use(b)
+ if err := Configure(cfg); err != nil {
+ t.Fatal(err)
+ }
+ now()
+ if !has(b, ".claude") {
+ t.Fatal("B's first sync didn't give pdf to claude")
+ }
+ ok(library.SkillHere("pdf", false))
+ now()
+ if has(b, ".claude") || !view().OffHere {
+ t.Fatal("off on B, claude still has pdf")
+ }
+
+ // A still has it on, gives it to Codex too, and syncs
+ use(a)
+ now()
+ if v := view(); v.OffHere || !has(a, ".claude") {
+ t.Fatalf("B's off reached A: %+v", v)
+ }
+ ok(library.SkillAgents("pdf", []string{"claude", "codex"}))
+ now()
+
+ // B syncs: still off here, A's ticks taken in for when it is on again
+ use(b)
+ now()
+ if has(b, ".claude") || has(b, ".codex") {
+ t.Fatal("a sync from A, with pdf on, gave it to an agent on B again")
+ }
+ if v := view(); !v.OffHere || !slices.Equal(v.Agents, []string{"claude", "codex"}) {
+ t.Fatalf("B after the sync: %+v", v)
+ }
+ ok(library.SkillHere("pdf", true))
+ if !has(b, ".claude") || !has(b, ".codex") {
+ t.Fatal("on again on B, its agents didn't get pdf back")
+ }
+}
diff --git a/internal/gui/assets/plugins/library/client.js b/internal/gui/assets/plugins/library/client.js
index 5467c642d..42483aa7f 100644
--- a/internal/gui/assets/plugins/library/client.js
+++ b/internal/gui/assets/plugins/library/client.js
@@ -52,6 +52,7 @@ magpie.plugin("library", (ctx) => {
backup: "M3.2 8a4.8 4.8 0 1 0 1.4-3.4 M2.8 2.6v2.4h2.4 M8 5.3V8l1.9 1.2",
// one point that four lines meet at: the MCP hub (#2679)
hub: "M8 6.2a1.8 1.8 0 1 0 0 3.6 1.8 1.8 0 0 0 0-3.6z M8 2.5v3.7 M8 9.8v3.7 M2.5 8h3.7 M9.8 8h3.7",
+ power: "M8 2.5v5 M4.7 4.6a4.8 4.8 0 1 0 6.6 0",
};
const tilde = (p) => (lib?.home && p?.startsWith(lib.home) ? "~" + p.slice(lib.home.length) : p || "");
@@ -4795,7 +4796,7 @@ magpie.plugin("library", (ctx) => {
}
function skillRow(s, all) {
- const row = el("div", "row lib-row click lib-skill" + (s.missing ? " missing" : "") + (s.source ? " src" : ""));
+ const row = el("div", "row lib-row click lib-skill" + (s.missing ? " missing" : "") + (s.source ? " src" : "") + (s.offHere ? " offhere" : ""));
const who = el("div", "who");
const nm = el("div", "name", s.name);
const c = s.check;
@@ -4834,7 +4835,24 @@ magpie.plugin("library", (ctx) => {
};
nm.append(b);
}
+ // turned off on this computer alone: no agent here gets it, the ticks
+ // stay what a sync carries to the others, and a sync doesn't turn it
+ // on here again. A line of its own: a narrow row's name has no room
+ let hereLine = null;
+ if (s.offHere) {
+ const b = tag(t("Off on this computer"), "link lib-offhere", t("No agent on this computer gets it. Your other computers keep their own choice, and a sync doesn't turn it on here. Click to turn it on here."));
+ b.setAttribute("role", "button");
+ b.tabIndex = 0;
+ b.onclick = (e) => { e.stopPropagation(); change("skills/here", { name: s.name, on: true }, t("{name} is on on this computer", { name: s.name })); };
+ b.onkeydown = (e) => {
+ if (e.key !== "Enter" && e.key !== " ") return;
+ e.preventDefault(); e.stopPropagation(); b.click();
+ };
+ hereLine = el("div", "lib-hereline");
+ hereLine.append(b);
+ }
who.append(nm);
+ if (hereLine) who.append(hereLine);
const sub = el("div", "sub", s.missing ? t("Its folder is gone from the library") : s.description || "");
sub.title = s.description || "";
who.append(sub);
@@ -4879,6 +4897,12 @@ magpie.plugin("library", (ctx) => {
if (s.edited) u.title += "\n" + t("Changed here: asks before it replaces your changes");
acts.append(u);
}
+ const here = button("", "lib-icon lib-here" + (s.offHere ? " on" : ""), () => change("skills/here", { name: s.name, on: !!s.offHere },
+ s.offHere ? t("{name} is on on this computer", { name: s.name }) : t("{name} is off on this computer", { name: s.name })));
+ here.append(svg(GLYPH.power, 13, 1.5));
+ here.title = s.offHere ? t("Turn on on this computer") : t("Turn off on this computer only: your other computers keep it");
+ here.setAttribute("aria-pressed", s.offHere ? "true" : "false");
+ acts.append(here);
const rm = button("", "lib-icon danger", () => confirmRemoveSkill(s));
rm.append(svg(GLYPH.trash, 13, 1.4));
rm.title = t("Remove");
diff --git a/internal/gui/assets/plugins/library/i18n.js b/internal/gui/assets/plugins/library/i18n.js
index 212a47a38..c5573be70 100644
--- a/internal/gui/assets/plugins/library/i18n.js
+++ b/internal/gui/assets/plugins/library/i18n.js
@@ -2,6 +2,12 @@
// kernel adds them to i18n.js's (magpie.strings).
magpie.strings({
zh: {
+ "Off on this computer": "本机已关闭",
+ "No agent on this computer gets it. Your other computers keep their own choice, and a sync doesn't turn it on here. Click to turn it on here.": "这台电脑上的 Agent 都不会用到它。其他电脑保持各自的设置,同步也不会在这里把它重新打开。点一下在本机打开。",
+ "{name} is on on this computer": "{name} 已在本机打开",
+ "{name} is off on this computer": "{name} 已在本机关闭",
+ "Turn on on this computer": "在本机打开",
+ "Turn off on this computer only: your other computers keep it": "只在本机关闭:其他电脑照常使用",
"+ Add a subagent": "+ 添加子代理",
"+ Add subagent": "+ 添加子代理",
"{agent} reads no subagents magpie can write": "{agent} 没有 magpie 能写入的子代理",
@@ -665,6 +671,12 @@ magpie.strings({
"Not installed here: it isn't given anything new, and what it has can be taken out here": "本机没有安装:不会再分配新的内容,已有的可以在这里移除",
},
"zh-TW": {
+ "Off on this computer": "本機已關閉",
+ "No agent on this computer gets it. Your other computers keep their own choice, and a sync doesn't turn it on here. Click to turn it on here.": "這台電腦上的 Agent 都不會用到它。其他電腦保持各自的設定,同步也不會在這裡把它重新開啟。點一下在本機開啟。",
+ "{name} is on on this computer": "{name} 已在本機開啟",
+ "{name} is off on this computer": "{name} 已在本機關閉",
+ "Turn on on this computer": "在本機開啟",
+ "Turn off on this computer only: your other computers keep it": "只在本機關閉:其他電腦照常使用",
"+ Add a subagent": "+ 新增子代理",
"+ Add subagent": "+ 新增子代理",
"{agent} reads no subagents magpie can write": "{agent} 沒有 magpie 能寫入的子代理",
@@ -1328,6 +1340,12 @@ magpie.strings({
"Not installed here: it isn't given anything new, and what it has can be taken out here": "本機沒有安裝:不會再分配新的內容,已有的可以在這裡移除",
},
ja: {
+ "Off on this computer": "このコンピュータでオフ",
+ "No agent on this computer gets it. Your other computers keep their own choice, and a sync doesn't turn it on here. Click to turn it on here.": "このコンピュータのエージェントには渡されません。ほかのコンピュータはそれぞれの設定のままで、同期してもここでオンに戻りません。クリックするとここでオンにします。",
+ "{name} is on on this computer": "{name} をこのコンピュータでオンにしました",
+ "{name} is off on this computer": "{name} をこのコンピュータでオフにしました",
+ "Turn on on this computer": "このコンピュータでオンにする",
+ "Turn off on this computer only: your other computers keep it": "このコンピュータだけでオフにする:ほかのコンピュータはそのまま",
"+ Add a subagent": "+ サブエージェントを追加",
"+ Add subagent": "+ サブエージェントを追加",
"{agent} reads no subagents magpie can write": "{agent} には magpie が書き込めるサブエージェントがありません",
@@ -1991,6 +2009,12 @@ magpie.strings({
"Not installed here: it isn't given anything new, and what it has can be taken out here": "このコンピューターにはインストールされていません:新しいものは割り当てられず、すでにあるものはここで外せます",
},
de: {
+ "Off on this computer": "Auf diesem Computer aus",
+ "No agent on this computer gets it. Your other computers keep their own choice, and a sync doesn't turn it on here. Click to turn it on here.": "Kein Agent auf diesem Computer bekommt ihn. Deine anderen Computer behalten ihre Wahl, und ein Sync schaltet ihn hier nicht wieder ein. Klicken, um ihn hier einzuschalten.",
+ "{name} is on on this computer": "{name} ist auf diesem Computer an",
+ "{name} is off on this computer": "{name} ist auf diesem Computer aus",
+ "Turn on on this computer": "Auf diesem Computer einschalten",
+ "Turn off on this computer only: your other computers keep it": "Nur auf diesem Computer ausschalten: deine anderen Computer behalten ihn",
"+ Add a subagent": "+ Subagent hinzufügen",
"+ Add subagent": "+ Subagent hinzufügen",
"{agent} reads no subagents magpie can write": "{agent} liest keine Subagenten, die magpie schreiben kann",
diff --git a/internal/gui/assets/plugins/library/library.css b/internal/gui/assets/plugins/library/library.css
index e30075eee..b121340d7 100644
--- a/internal/gui/assets/plugins/library/library.css
+++ b/internal/gui/assets/plugins/library/library.css
@@ -143,6 +143,13 @@ body.window .lib-head { top: -2px; margin: -2px 0 0; padding: 8px 0 4px; --bleed
.lib-skill .sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.lib-skill.missing .name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.lib-skill.missing .sub { color: var(--amber); }
+/* off on this computer: its agents' ticks are the other computers', shown faded and not to be changed here */
+.lib-skill.offhere > .lib-glyph, .lib-skill.offhere > .lib-logo, .lib-skill.offhere .sub { opacity: .55; }
+.lib-skill.offhere > .lib-agents { opacity: .4; pointer-events: none; }
+.lib-hereline { display: flex; margin-top: 3px; min-width: 0; }
+.lib-hereline > .lib-tag.lib-offhere { cursor: pointer; margin-left: 0; flex: 0 1 auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
+.lib-tag.lib-offhere:hover { color: var(--fg); }
+.lib-icon.lib-here.on { color: var(--accent); }
.lib-src { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; color: var(--faint); min-width: 0; }
/* "linked from" stays whole, one line, and the path beside it gives way:
CJK can break after any character, so the label shrank to a column of
diff --git a/internal/gui/library.go b/internal/gui/library.go
index 1d78b7630..7d34fa3a6 100644
--- a/internal/gui/library.go
+++ b/internal/gui/library.go
@@ -524,6 +524,8 @@ func libraryRoutes(mux *http.ServeMux, w Windows) {
res, err = library.UpdateSomeSkills(in.Names)
case "skills/agents":
res, err = library.SkillAgents(in.Name, in.Agents)
+ case "skills/here":
+ res, err = library.SkillHere(in.Name, in.On)
case "skills/agents-all":
res, err = library.EverySkillAgents(in.Agents, in.On)
case "skills/agents-some":
diff --git a/internal/gui/tests/skill-off-here.test.cjs b/internal/gui/tests/skill-off-here.test.cjs
new file mode 100644
index 000000000..05d009e22
--- /dev/null
+++ b/internal/gui/tests/skill-off-here.test.cjs
@@ -0,0 +1,123 @@
+// Run with Node's test runner and Playwright on the module path; see README.md.
+// hanslin1666 on Discord: turn a library skill off on this computer only,
+// without the other computers losing it, and without a sync turning it on
+// here again. Each skill's row has a power button that sends
+// skills/here with on:false; a skill off here says "Off on this computer"
+// with why, its agents' chips are faded and can't be changed here, and a
+// click on the tag sends on:true. Neither click scrolls the page. In every
+// language, in Chromium and WebKit, wide and narrow. No backend: the API
+// is faked here.
+const assert = require("node:assert/strict");
+const fs = require("node:fs/promises");
+const path = require("node:path");
+const { test } = require("node:test");
+const { chromium, webkit } = require("playwright");
+
+const assets = path.resolve(__dirname, "../assets");
+const HOME = "/Users/hans";
+const agent = (id, name) => ({ id, name, icon: "", skills: `${HOME}/.${id}/skills` });
+const sk = (name, off) => ({ name, description: name + " skill", kind: "folder", source: `${HOME}/skills/${name}`, agents: ["claude", "codex"], ...(off ? { offHere: true } : {}) });
+const lib = (st) => ({
+ dir: `${HOME}/.magpie/library`, backups: `${HOME}/.magpie/backups`, home: HOME,
+ agents: [agent("claude", "Claude Code"), agent("codex", "Codex")],
+ instructions: { agents: [] }, servers: [], foundServers: [], projects: [], foundSkills: [], newSkills: [],
+ checkDue: false,
+ skills: [sk("pdf", st.off), sk("slides", false)],
+});
+
+function server(lang, posts, st) {
+ return async (route) => {
+ const req = route.request(), url = new URL(req.url());
+ if (url.pathname === "/boot.js") return route.fulfill({ contentType: "text/javascript", body: `window.bootPrefs = {lang:"${lang}",theme:"light",web:true};` });
+ if (url.pathname === "/wails/runtime.js") return route.fulfill({ contentType: "text/javascript", body: "export const Window = {};" });
+ if (url.pathname === "/api/state") return route.fulfill({ json: { agents: [], profiles: [], settings: { lang, theme: "light" } } });
+ if (url.pathname === "/api/library") return route.fulfill({ json: lib(st) });
+ if (url.pathname.startsWith("/api/library/skills/")) {
+ const what = url.pathname.split("/").pop(), body = req.postDataJSON();
+ posts.push({ what, body });
+ if (what === "here") st.off = !body.on;
+ return route.fulfill({ json: { ...lib(st), result: { changed: ["claude", "codex"] } } });
+ }
+ if (url.pathname === "/api/plugins") return route.fulfill({ json: { plugins: [] } });
+ if (url.pathname === "/api/usage/quotas") return route.fulfill({ json: [] });
+ if (url.pathname === "/api/groups") return route.fulfill({ json: { groups: [] } });
+ if (url.pathname === "/api/providers") return route.fulfill({ json: { providers: [], gateway: { running: true } } });
+ if (url.pathname.startsWith("/api/")) return route.fulfill({ json: {} });
+ const file = path.join(assets, url.pathname === "/" ? "index.html" : url.pathname);
+ const contentType = { ".html": "text/html", ".js": "text/javascript", ".css": "text/css", ".svg": "image/svg+xml", ".png": "image/png" }[path.extname(file)];
+ await route.fulfill({ body: await fs.readFile(file), contentType });
+ };
+}
+
+const scrolls = (page) => page.evaluate(() => [...document.querySelectorAll("*")].filter((e) => e.scrollTop).map((e) => (e.id || e.className) + ":" + e.scrollTop).concat("doc:" + document.scrollingElement.scrollTop).join(" "));
+
+const words = {
+ en: { off: "Turn off on this computer only: your other computers keep it", on: "Turn on on this computer", tag: "Off on this computer",
+ tip: "No agent on this computer gets it. Your other computers keep their own choice, and a sync doesn't turn it on here. Click to turn it on here." },
+ zh: { off: "只在本机关闭:其他电脑照常使用", on: "在本机打开", tag: "本机已关闭",
+ tip: "这台电脑上的 Agent 都不会用到它。其他电脑保持各自的设置,同步也不会在这里把它重新打开。点一下在本机打开。" },
+ "zh-TW": { off: "只在本機關閉:其他電腦照常使用", on: "在本機開啟", tag: "本機已關閉",
+ tip: "這台電腦上的 Agent 都不會用到它。其他電腦保持各自的設定,同步也不會在這裡把它重新開啟。點一下在本機開啟。" },
+ ja: { off: "このコンピュータだけでオフにする:ほかのコンピュータはそのまま", on: "このコンピュータでオンにする", tag: "このコンピュータでオフ",
+ tip: "このコンピュータのエージェントには渡されません。ほかのコンピュータはそれぞれの設定のままで、同期してもここでオンに戻りません。クリックするとここでオンにします。" },
+ de: { off: "Nur auf diesem Computer ausschalten: deine anderen Computer behalten ihn", on: "Auf diesem Computer einschalten", tag: "Auf diesem Computer aus",
+ tip: "Kein Agent auf diesem Computer bekommt ihn. Deine anderen Computer behalten ihre Wahl, und ein Sync schaltet ihn hier nicht wieder ein. Klicken, um ihn hier einzuschalten." },
+};
+
+for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", "webkit"])) {
+ test(engine + ": a skill is turned off on this computer alone, and on again", async (t) => {
+ assert(["chromium", "webkit"].includes(engine), "BROWSER must be chromium or webkit");
+ const browser = await (engine === "webkit" ? webkit.launch() : chromium.launch({ channel: "chromium" }));
+ const errors = [];
+ t.after(async () => {
+ await browser.close();
+ });
+ for (const width of [860, 400]) for (const lang of Object.keys(words)) {
+ await t.test(`${lang} at ${width}px`, async () => {
+ const w = words[lang], posts = [], st = { off: false };
+ const ctx = await browser.newContext({ viewport: { width, height: 900 } });
+ await ctx.addInitScript(() => { try { localStorage.setItem("magpie.libTab", "skills"); } catch {} });
+ const page = await ctx.newPage();
+ page.setDefaultTimeout(5000);
+ page.on("pageerror", (e) => errors.push(e.message));
+ await page.route("**/*", server(lang, posts, st));
+ await page.goto("http://magpie.test/");
+ await page.locator('button[data-view="library"]').click();
+ const v = page.locator("#view-library");
+ const row = (n) => v.locator(".lib-skill", { has: page.locator(".name", { hasText: new RegExp("^" + n) }) });
+ await row("pdf").waitFor();
+
+ // on: no tag, chips as they are, the button says what it does
+ assert.equal(await row("pdf").locator(".lib-offhere").count(), 0);
+ const btn = row("pdf").locator(".lib-here");
+ assert.equal(await btn.getAttribute("title"), w.off);
+ assert.equal(await btn.getAttribute("aria-pressed"), "false");
+ assert.equal(await row("pdf").locator(".lib-agents").evaluate((e) => getComputedStyle(e).pointerEvents), "auto");
+ const before = await scrolls(page);
+ await btn.click();
+ await row("pdf").locator(".lib-tag.lib-offhere").waitFor();
+ assert.deepEqual(posts, [{ what: "here", body: { name: "pdf", on: false } }]);
+ assert.equal(await scrolls(page), before, "turning it off scrolled the page");
+
+ // off here: said, with why; the ticks stay but can't be changed here
+ const tag = row("pdf").locator(".lib-tag.lib-offhere");
+ assert.equal((await tag.textContent()).trim(), w.tag);
+ assert.equal(await tag.getAttribute("title"), w.tip);
+ assert.equal(await row("pdf").locator(".lib-here").getAttribute("title"), w.on);
+ assert.equal(await row("pdf").locator(".lib-here").getAttribute("aria-pressed"), "true");
+ assert.equal(await row("pdf").locator(".lib-agents").evaluate((e) => getComputedStyle(e).pointerEvents), "none");
+ assert.equal(await row("slides").locator(".lib-offhere").count(), 0, "another skill went off too");
+ // the tag sits in the row, not over its edge
+ const rb = await row("pdf").boundingBox(), tb = await tag.boundingBox();
+ assert(tb.x >= rb.x && tb.x + tb.width <= rb.x + rb.width + 1, `the tag overflows its row at ${width}px`);
+
+ await tag.click();
+ await row("pdf").locator(".lib-offhere").waitFor({ state: "detached" });
+ assert.deepEqual(posts.at(-1), { what: "here", body: { name: "pdf", on: true } });
+ assert.equal(await scrolls(page), before, "turning it on scrolled the page");
+ await ctx.close();
+ });
+ }
+ assert.deepEqual(errors, []);
+ });
+}
diff --git a/internal/library/carry.go b/internal/library/carry.go
index 5831315bd..045eb26f4 100644
--- a/internal/library/carry.go
+++ b/internal/library/carry.go
@@ -377,7 +377,9 @@ func Put(b *Bundle) (*Result, error) {
}
skills := []*Skill{}
for _, s := range b.Skills {
- skills = append(skills, &Skill{Name: s.Name, Source: s.Source, Agents: slices.Clone(orNone(s.Agents))})
+ // turned off here stays off here: that is this computer's own
+ off := l.skill(s.Name) != nil && l.skill(s.Name).OffHere
+ skills = append(skills, &Skill{Name: s.Name, Source: s.Source, Agents: slices.Clone(orNone(s.Agents)), OffHere: off})
if keep[s.Name] {
continue
}
diff --git a/internal/library/desktop_skills.go b/internal/library/desktop_skills.go
index f5c332039..e1e734b04 100644
--- a/internal/library/desktop_skills.go
+++ b/internal/library/desktop_skills.go
@@ -248,7 +248,7 @@ func (l *Library) syncDesktopSkills(t *Target, res *Result) {
put := map[string]bool{}
var drop []string
for _, name := range prior {
- if s := l.skill(name); s != nil && slices.Contains(s.Agents, id) {
+ if s := l.skill(name); s.gives(id) {
continue
}
p := filepath.Join(dir, name)
@@ -271,7 +271,7 @@ func (l *Library) syncDesktopSkills(t *Target, res *Result) {
res.changed(id)
}
for _, s := range l.Skills {
- if !slices.Contains(s.Agents, id) {
+ if !s.gives(id) {
continue
}
p := filepath.Join(dir, s.Name)
diff --git a/internal/library/skill_changed.go b/internal/library/skill_changed.go
index 0862fb101..db84b8407 100644
--- a/internal/library/skill_changed.go
+++ b/internal/library/skill_changed.go
@@ -15,7 +15,6 @@ import (
"fmt"
"os"
"path/filepath"
- "slices"
"sync"
"time"
)
@@ -102,7 +101,7 @@ func (l *Library) editState(s *Skill, targets []*Target) (edited, known bool) {
return true, true
}
for _, t := range targets {
- if t.Skills == "" || t.Desktop != nil || !slices.Contains(s.Agents, t.Agent.ID) {
+ if t.Skills == "" || t.Desktop != nil || !s.gives(t.Agent.ID) {
continue
}
p := filepath.Join(t.Skills, s.Name)
diff --git a/internal/library/skill_edits.go b/internal/library/skill_edits.go
index d77f7e72e..8d16808d3 100644
--- a/internal/library/skill_edits.go
+++ b/internal/library/skill_edits.go
@@ -44,7 +44,7 @@ func (l *Library) takeEdits(targets []*Target, res *Result) {
var edits []edit
seen := map[string]bool{}
for _, t := range targets {
- if t.Skills == "" || t.Desktop != nil || !slices.Contains(s.Agents, t.Agent.ID) {
+ if t.Skills == "" || t.Desktop != nil || !s.gives(t.Agent.ID) {
continue
}
p := filepath.Join(t.Skills, s.Name)
diff --git a/internal/library/skill_here_test.go b/internal/library/skill_here_test.go
new file mode 100644
index 000000000..a24222152
--- /dev/null
+++ b/internal/library/skill_here_test.go
@@ -0,0 +1,146 @@
+package library
+
+import (
+ "encoding/json"
+ "os"
+ "path/filepath"
+ "slices"
+ "testing"
+)
+
+// at makes the sandbox h this computer again, after another sandbox was.
+func at(t *testing.T, h string) {
+ t.Helper()
+ t.Setenv("HOME", h)
+ t.Setenv("USERPROFILE", h)
+ t.Setenv("XDG_CONFIG_HOME", filepath.Join(h, ".config"))
+ t.Setenv("PATH", filepath.Join(h, "bin"))
+}
+
+// carry is the library here as a sync takes it to another computer.
+func carry(t *testing.T) Bundle {
+ t.Helper()
+ b, err := Collect()
+ if err != nil || b == nil {
+ t.Fatalf("collect: %v %v", b, err)
+ }
+ var out Bundle
+ if err := json.Unmarshal([]byte(mustJSON(t, b)), &out); err != nil {
+ t.Fatal(err)
+ }
+ return out
+}
+
+func offView(t *testing.T, name string) SkillView {
+ t.Helper()
+ v, err := Read(nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, s := range v.Skills {
+ if s.Name == name {
+ return s
+ }
+ }
+ t.Fatalf("no skill %s in %+v", name, v.Skills)
+ return SkillView{}
+}
+
+func given(h, agentDir, name string) bool {
+ _, err := os.Lstat(filepath.Join(h, agentDir, "skills", name))
+ return err == nil
+}
+
+// A skill turned off on one computer (hanslin1666 on Discord, "只在这台电脑
+// 上关掉") is off there alone: the off isn't carried to the others, and a
+// sync from a computer that has it on, or gives it to more agents, doesn't
+// give it to an agent here again. Turned on again here, it is as the
+// others have it.
+func TestSkillOffHereStaysHere(t *testing.T) {
+ a := sandbox(t)
+ setUpLibrary(t, a) // pdf, given to Claude Code
+ fromA := carry(t)
+
+ b := sandbox(t)
+ ok(t)(Put(&fromA))
+ if !given(b, ".claude", "pdf") {
+ t.Fatal("the other computer's sync didn't give pdf to claude")
+ }
+ before := mustJSON(t, carry(t))
+
+ // B turns it off here
+ ok(t)(SkillHere("pdf", false))
+ if given(b, ".claude", "pdf") {
+ t.Fatal("off here, claude still has pdf")
+ }
+ if v := offView(t, "pdf"); !v.OffHere || !slices.Equal(v.Agents, []string{"claude"}) {
+ t.Fatalf("off here: %+v", v)
+ }
+ // nothing a sync carries changed: B's off doesn't go up to the others
+ if after := mustJSON(t, carry(t)); after != before {
+ t.Fatalf("turning it off here changed what a sync carries:\n%s\n%s", before, after)
+ }
+
+ // A, which has it on, gives it to Codex too and syncs
+ at(t, a)
+ ok(t)(SkillAgents("pdf", []string{"claude", "codex"}))
+ if !given(a, ".claude", "pdf") || !given(a, ".codex", "pdf") {
+ t.Fatal("A's own agents lost pdf")
+ }
+ fromA = carry(t)
+
+ // B takes A's: still off here, with A's ticks kept for the others
+ at(t, b)
+ ok(t)(Put(&fromA))
+ if given(b, ".claude", "pdf") || given(b, ".codex", "pdf") {
+ t.Fatal("a sync from a computer with it on gave pdf to an agent here again")
+ }
+ if v := offView(t, "pdf"); !v.OffHere || !slices.Equal(v.Agents, []string{"claude", "codex"}) {
+ t.Fatalf("after a sync: %+v", v)
+ }
+
+ // the reverse: B's library, with pdf off here, goes to A, where it is on
+ fromB := carry(t)
+ at(t, a)
+ ok(t)(Put(&fromB))
+ if !given(a, ".claude", "pdf") || !given(a, ".codex", "pdf") {
+ t.Fatal("a sync from the computer it is off on took it from this one")
+ }
+ if v := offView(t, "pdf"); v.OffHere {
+ t.Fatalf("B's off reached A: %+v", v)
+ }
+
+ // on again on B: its agents get it as the others have it
+ at(t, b)
+ ok(t)(SkillHere("pdf", true))
+ if !given(b, ".claude", "pdf") || !given(b, ".codex", "pdf") {
+ t.Fatal("on again here, the agents didn't get pdf back")
+ }
+}
+
+// A library.json from before, with no offHere, reads as on: nothing
+// changes for a user who never turned a skill off here.
+func TestSkillOffHereOldLibraryIsOn(t *testing.T) {
+ h := sandbox(t)
+ setUpLibrary(t, h)
+ raw, err := os.ReadFile(path())
+ if err != nil {
+ t.Fatal(err)
+ }
+ var m map[string]any
+ if err := json.Unmarshal(raw, &m); err != nil {
+ t.Fatal(err)
+ }
+ for _, s := range m["skills"].([]any) {
+ if _, has := s.(map[string]any)["offHere"]; has {
+ t.Fatalf("a skill never turned off here writes offHere: %s", raw)
+ }
+ }
+ ok(t)(SkillAgents("pdf", []string{"claude"}))
+ if !given(h, ".claude", "pdf") || offView(t, "pdf").OffHere {
+ t.Fatal("an old library's skill isn't on")
+ }
+ if _, err := SkillHere("nope", false); err == nil {
+ t.Fatal("turned off a skill the library hasn't")
+ }
+}
diff --git a/internal/library/skill_how.go b/internal/library/skill_how.go
index 6ce4294cb..73133533e 100644
--- a/internal/library/skill_how.go
+++ b/internal/library/skill_how.go
@@ -125,7 +125,7 @@ func (l *Library) behind(targets []*Target) map[string][]string {
continue
}
for _, s := range l.Skills {
- if !slices.Contains(s.Agents, t.Agent.ID) {
+ if !s.gives(t.Agent.ID) {
continue
}
p := filepath.Join(t.Skills, s.Name)
diff --git a/internal/library/skills.go b/internal/library/skills.go
index 3c8345e08..d4d9ce0ad 100644
--- a/internal/library/skills.go
+++ b/internal/library/skills.go
@@ -44,6 +44,30 @@ type Skill struct {
// Gone is when an update or a check found its source without it: it
// was removed there (skill_gone.go). Kept on this computer only.
Gone string `json:"gone,omitempty"`
+ // OffHere turns the skill off on this computer alone (hanslin1666 on
+ // Discord): no agent here gets it, whatever Agents says. Agents is
+ // what a sync carries and stays as the other computers have it; this
+ // is never carried (Collect leaves it out) and a sync keeps it (Put).
+ OffHere bool `json:"offHere,omitempty"`
+}
+
+// gives reports whether the agent id gets the skill on this computer: it
+// is ticked for it, and the skill isn't turned off here.
+func (s *Skill) gives(id string) bool {
+ return s != nil && !s.OffHere && slices.Contains(s.Agents, id)
+}
+
+// SkillHere turns a skill on or off on this computer alone. Which agents
+// it is ticked for stays as it is, and so does every other computer's.
+func SkillHere(name string, on bool) (*Result, error) {
+ return change(func(l *Library) error {
+ s := l.skill(name)
+ if s == nil {
+ return fmt.Errorf("no skill called %s", name)
+ }
+ s.OffHere = !on
+ return nil
+ })
}
// Source is where a skill came from: a GitHub repository it can be updated
@@ -481,7 +505,7 @@ func (l *Library) syncSkills(t *Target, res *Result, all []*Target) {
if s == nil {
return false
}
- return slices.Contains(s.Agents, id) || slices.ContainsFunc(sharers, func(o string) bool { return slices.Contains(s.Agents, o) })
+ return s.gives(id) || slices.ContainsFunc(sharers, s.gives)
}
// an agent that reads ~/.agents/skills as well as its own folder finds
// a skill magpie put there for another (Kimi Code) already: a link in
@@ -498,7 +522,7 @@ func (l *Library) syncSkills(t *Target, res *Result, all []*Target) {
}
p := filepath.Join(sharedSkillsDir(), s.Name)
return slices.ContainsFunc(all, func(o *Target) bool {
- return o.Skills != "" && realDir(o.Skills) == shared && slices.Contains(s.Agents, o.Agent.ID)
+ return o.Skills != "" && realDir(o.Skills) == shared && s.gives(o.Agent.ID)
}) && (ours(p, s.Name) || realDir(p) == realDir(skillDir(s.Name)))
}
var mine []string
@@ -521,7 +545,7 @@ func (l *Library) syncSkills(t *Target, res *Result, all []*Target) {
res.changed(id)
}
for _, s := range l.Skills {
- if !slices.Contains(s.Agents, id) {
+ if !s.gives(id) {
continue
}
// an agent gone from here is given nothing: what it has still
diff --git a/internal/library/sync.go b/internal/library/sync.go
index 78edf4ece..3faed9993 100644
--- a/internal/library/sync.go
+++ b/internal/library/sync.go
@@ -439,6 +439,9 @@ type SkillView struct {
// Gone is when its source was found without it: removed there, the
// page offers to take it out (skill_gone.go)
Gone string `json:"gone,omitempty"`
+ // OffHere is set when it is turned off on this computer alone: Agents
+ // are still the ones a sync carries to the others
+ OffHere bool `json:"offHere,omitempty"`
}
// View is the Library page.
@@ -592,7 +595,7 @@ func readView(problems []Problem, glance bool) (*View, error) {
v.Subagents, v.SubagentAgents = l.subagentsView(targets, of)
tr := &tracer{}
for _, s := range l.Skills {
- sv := SkillView{Name: s.Name, Agents: append([]string{}, s.Agents...), Icon: skillIcon(s), Problems: of("skill:" + s.Name), Repo: tr.repoOf(s)}
+ sv := SkillView{Name: s.Name, Agents: append([]string{}, s.Agents...), Icon: skillIcon(s), Problems: of("skill:" + s.Name), Repo: tr.repoOf(s), OffHere: s.OffHere}
if s.Source != nil {
sv.Source, sv.Kind = s.Source.String(), s.Source.Kind
}
diff --git a/internal/library/targets.go b/internal/library/targets.go
index 9b90f2f17..68a02aaf7 100644
--- a/internal/library/targets.go
+++ b/internal/library/targets.go
@@ -798,7 +798,7 @@ func (l *Library) held(have []*Target) []*Target {
if a := l.Applied[id]; a != nil && (len(a.Skills) > 0 || len(a.MCP) > 0 || len(a.Hooks) > 0) {
return true
}
- return slices.ContainsFunc(l.Skills, func(s *Skill) bool { return slices.Contains(s.Agents, id) }) ||
+ return slices.ContainsFunc(l.Skills, func(s *Skill) bool { return s.gives(id) }) ||
slices.ContainsFunc(l.MCP, func(s *Server) bool { return slices.Contains(s.Agents, id) }) ||
slices.ContainsFunc(l.Hooks, func(h *Hook) bool { return slices.Contains(h.Agents, id) })
}
diff --git a/internal/tui/library.go b/internal/tui/library.go
index 7a4b709b9..33a79c95e 100644
--- a/internal/tui/library.go
+++ b/internal/tui/library.go
@@ -73,6 +73,10 @@ func (m *model) reloadLibrary() {
} else if s.Gone != "" {
r.about, r.bad = "removed from "+s.Source+" · d takes it out", r.bad+1
}
+ if s.OffHere {
+ // ticked agents are other computers' too; none gets it here
+ r.about = "off on this computer · magpie library skill on-here " + s.Name
+ }
m.lib = append(m.lib, r)
}
for _, f := range v.FoundServers {