devvm 0.1.0's agent import copied the whole of ~/.claude/plugins into
the agent store, each plugin's data and installed_plugins.json
included, and every VM with Claude Code mounts the store's plugins
folder whole as its seed, so that data kept reaching every VM until
agent import ran again. Every start (starter.bringUp) now takes out of
each seed's folder in the store the entries a seed doesn't have
(agents.MachineOwn), before the VM runs, and warns once, naming them
(agent_seed_cleaned). The folder itself stays, so no VM's mounts or
Lima config change. A running VM stops seeing them through its mount
at once on macOS; on Linux, 9p's cache can keep what it read until its
next start.
The folder is reached from devvm's config folder as a root, each part
of the path below it a folder: a link there (only a hand-made store
has one, and the VM's mount would follow it, perhaps to the user's own
~/.claude/plugins) is refused (agent_seed_link), a link among the entries is removed,
never followed, and the opened folder is checked to be the one
checked. The temporary files a concurrent agent import or save writes
known_marketplaces.json through, regular files, stay. A folder that can't be cleaned
fails the start of a VM with that agent and warns for any other
(agent_seed_clean_failed, naming what the folder should hold).
- vm: Env.cleanSeeds, cleanSeed and seedTemp (agents.go), called
first in bringUp with the VM's agents.
- msg: agent_seed_cleaned, agent_seed_clean_failed, agent_seed_link.
- Tests: TestCleanSeeds (0.1.0-style store, a link entry, a concurrent
import's temporary file, no store, once only), TestCleanSeedsFails
(a link at the store, .claude or plugins, for a VM with and without
Claude Code; an entry that can't go); fixture_v010_plugins.txtar
(0.1.0's app with the store's plugins as 0.1.0's import left them and
their mount: the warning, no edit but the ssh port's, the seed's link
to a folder without data/, nothing said again; then the store's
plugins folder a link, and an entry that can't go, each refusing
app's start with agent_seed_link or agent_seed_clean_failed).
- Docs: coding-agents, internals/agents, the design note's threat
check; CHANGELOG Breaking, After you upgrade (running VMs, Linux's
cache, plugin logins) and #56's Fixed entry.
Co-Authored-By: Claude Opus 5.5 <[email protected]>