Skip to content

feat(setup): install the picked plugins, name the three scopes, and recommend a baseline - #1209

Merged
potiuk merged 3 commits into
apache:mainfrom
potiuk:feat/install-selected-plugins
Sep 13, 2026
Merged

potiuk merged 3 commits into
apache:mainfrom
potiuk:feat/install-selected-plugins

Conversation

@potiuk

@potiuk potiuk commented Sep 13, 2026

Copy link
Copy Markdown
Member

Three related changes to how Magpie gets installed, each one removing work the
user was previously asked to do by hand.

1. The agent installs; it does not dictate commands to type

Step M4 of /magpie-setup install printed a block of /plugin … lines and
asked the user to type them, on the premise that "no tool can invoke it". That
is true of the slash command and false of the CLI beside it: claude plugin, codex plugin and gemini extensions are ordinary binaries, and
every skill's adoption-floor pre-flight has been calling them all along. The
install step now calls them too.

Four conditions gate running rather than printing, each reported with its
reason rather than silently swallowed:

Gate Why it exists
Source is not apache/magpie The same boundary the lock's url draws. Also why the third-party companion packages stay printed.
No install CLI VS Code / Copilot has none on this path.
Plugin store not writable Measured, not assumed: a sandboxed agent is the common case — Claude Code's own default sandbox denies ~/.claude/plugins/, where even claude plugin marketplace list fails EPERM. Degrades to printing, not to "install broken".
An install stops for a marketplace-declared command --yes is never passed. The flag exists to accept a catalogue-supplied command sight unseen; Magpie's manifest declares none (verified), so an install demanding it is not the catalogue the step assumed.

2. Claude Code's three scopes, named rather than defaulted past

--scope decides who gets the plugins, and the install step now says so:

--scope Recorded in Who gets it
user (default) ~/.claude/ you, every repository on this machine
local .claude/settings.local.json, gitignored you, this repository only
project .claude/settings.json, committed everyone who clones

--scope project is adoption, so the install step never passes it. Not
ceremony: the flag alone gives a project the plugin list with no
.apache-magpie.lock beside it — no version floor, no record of what the list
was derived from. A user asking for the whole project to get Magpie is handed
off to /magpie-setup adopt.

adopt.md Step 3 now says the same thing from the other side: on Claude Code
the "derived wiring" it used to hand-write as JSON is the --scope project
store, so it runs the CLI and lets the client write its own file — then reads
the result against the existing merge rules before showing the diff and
staging. Those rules stay the contract either way; hand-writing remains the
fallback.

3. A recommended baseline, and both ways to invoke everything

Every install page said "take magpie-setup, then pick families". It now
recommends three — magpie-setup, magpie-agent-guard, magpie-utilities —
which is exactly the floor a project commits when it adopts. That is the
argument for it: a set worth recommending to every contributor is a set worth
having yourself, and one recommendation is easier to hold than two.

magpie-setup is unremovable (it is the skill doing the installing); the
other two are strongly recommended and can be un-ticked, with what is given up
said once. Agent isolation joins the baseline as a run rather than a plugin
— quick start Step 3 is now "part of the default setup, not a later hardening
pass", and the install is not described as finished until it has been offered.

Both invocation forms, everywhere. Skills are model-invoked, so the slash
command is the shortcut and the plain-language sentence is the general case —
and harnesses without slash commands have only the sentence. One honest
exception, stated as such: the first install must be a client command,
because nothing is installed yet to hear the request.

Docs, animations, evals

  • docs/quick-start.md, docs/quick-start/families.md,
    docs/setup/marketplace-install.md carry the baseline and both forms.
  • Three install animations regenerated. One inconsistency this caught:
    magpie-setup.svg still showed a Run these: block handing commands to the
    user; it now shows four plugins installed at user scope, which is what the
    step does.
  • Two new eval suites — step-m3-baseline-pick (3 cases: pre-tick, un-tick,
    explicit skill-families: list) and step-m4-install-gates (7 cases: the
    happy path, all four gates, and the two scope requests).
  • Both decisions recorded in docs/designs/2026-09-13-install-adopt-upgrade.md.

Testing

prek passes in full, including check-doc-sync, check-quickstart-recording
(the SVGs are byte-stable regenerations) and check-family-plugins.

Not verified locally: the eval suites themselves could not be executed —
claude -p cannot authenticate from inside the sandbox this work was done in.
The suites are written and load correctly; they have not been graded.

🤖 Generated with Claude Code

https://claude.ai/code/session_017suKVbpWX8XT46uRbDxk8y

Step M4 of the marketplace install printed a block of `/plugin …`
lines and asked the user to type them, on the premise that "no tool
can invoke it". That is true of the slash command and false of the
CLI beside it: `claude plugin`, `codex plugin` and `gemini
extensions` are ordinary binaries, and every skill's adoption-floor
pre-flight already calls them to bring a machine up to a project's
floor. The install step now calls them too.

Four conditions gate running rather than printing, each reported
with its reason rather than silently swallowed:

- the source is not `apache/magpie` — the same boundary the lock's
  `url` draws, and the reason the third-party companion packages
  further down the skill stay printed;
- the harness has no install CLI;
- the plugin store is not writable — a sandboxed agent is the
  common case, and Claude Code's own default sandbox denies
  `~/.claude/plugins/`, so this degrades to printing rather than
  reporting a broken install;
- an install stops for a marketplace-declared command. `--yes` is
  never passed: the flag exists to accept such a command sight
  unseen, and Magpie's catalogue declares none, so an install that
  demands it is not the catalogue the step assumed.

Installs go in at `--scope user`, because a marketplace install is
a per-machine act; `--scope project` writes a file every
contributor gets, which is adoption and a maintainer's decision.

Adds a `step-m4-install-gates` eval suite covering the happy path
and all four gates, and records the decision in the merged design.

Generated-by: Claude Opus 5
Claude-Session: https://claude.ai/code/session_017suKVbpWX8XT46uRbDxk8y
…s adoption

Step M4 quietly passed `--scope user` with a one-paragraph aside. It
now names all three scopes and what each one means for who gets the
plugins:

- `user` (default) — `~/.claude/`, you, every repository on this
  machine, nothing written to the repo;
- `local` — `.claude/settings.local.json`, gitignored, you, this
  repository only;
- `project` — `.claude/settings.json`, committed, everyone who
  clones.

`--scope project` is adoption in everything but name: it is the same
committed file `/magpie-setup adopt` writes. So the install step never
passes it, and a user asking for the whole project to get Magpie is
handed off to `adopt` — which runs those commands at `--scope project`
itself, and writes the version floor beside the plugin list that the
flag alone would leave missing.

adopt.md Step 3 now says so from the other side: on Claude Code the
derived wiring is what `claude plugin … --scope project` produces, so
let the client write its own file and read the result against the merge
rules before staging, rather than hand-editing the JSON.

Two more eval cases: "only this repo" (`--scope local`) and "the whole
project" (hand off, do not set the flag).

Generated-by: Claude Opus 5
Claude-Session: https://claude.ai/code/session_017suKVbpWX8XT46uRbDxk8y
…to invoke

Two changes to the installation guides.

**A recommended baseline, not one required plugin.** Every install page
said "take `magpie-setup`, then pick families." It now recommends three:

- `magpie-setup` — install it first; nothing else installs, upgrades,
  configures or adopts without it, and it carries the isolation skills;
- `magpie-agent-guard` — the deterministic pre-execution guard;
- `magpie-utilities` — `list-skills` and the small tools.

That is exactly the floor a project commits when it adopts, which is the
argument for it: a set worth recommending to every contributor is a set
worth having yourself, and one recommendation is easier to hold than two.
Step M3 pre-ticks all three and says why each is ticked; `magpie-setup`
is unremovable (it is the skill doing the installing), the other two can
be un-ticked with what is given up said once. An explicit
`skill-families:` list stays verbatim and gains only `magpie-setup`.

Agent isolation joins the baseline as a run rather than a plugin: quick
start Step 3 is now "part of the default setup, not a later hardening
pass", and Step M5 says the install is not finished until it has been
offered.

**Both invocation forms, everywhere.** Skills are model-invoked, so the
slash command is a shortcut and the plain-language sentence is the
general case — and the harnesses without slash commands have only the
sentence. Every step now shows both. The one exception, stated as such:
the first install must be a client command, because nothing is installed
yet to hear the request.

The three install animations are regenerated: the wizard now shows four
plugins going in at user scope rather than a "Run these:" block, which
is what the step actually does since it started running the CLI.

Adds a `step-m3-baseline-pick` eval suite (pre-tick, un-tick, explicit
list) and records both decisions in the merged design.

Generated-by: Claude Opus 5
Claude-Session: https://claude.ai/code/session_017suKVbpWX8XT46uRbDxk8y
@potiuk
potiuk merged commit 74f0d33 into apache:main Sep 13, 2026
9 checks passed
@potiuk potiuk added the substrate:framework-dev Tool substrate: build / validate / eval the framework itself label Sep 25, 2026
@potiuk potiuk added capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) family:ci .github workflows, prek, validators family:docs Docs, MISSION.md, READMEs family:setup setup-* skills family:tools tools/* labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) family:ci .github workflows, prek, validators family:docs Docs, MISSION.md, READMEs family:setup setup-* skills family:tools tools/* substrate:framework-dev Tool substrate: build / validate / eval the framework itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant