/claude-vm:claude-vm-apply-localfrom claude-vm
Apply a claude-vm guest worktree's changes onto the local source repo working tree, for a given run id (or the most recent run). Writes to the local source only; never pushes.
Ships in claude-vm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Apply the changes a claude-vm guest made (in its persistent worktree)
onto the local source repo's working tree. This is the explicit,
opt-in equivalent of the launcher's default copy-back — use it when
repo.copy_back: none was set, or to re-apply / apply a specific run's
changes after reviewing them with /claude-vm-diff.
This skill writes to the local source only. It never pushes to the
remote — that is /claude-vm-apply-remote.
Same as /claude-vm-diff: each run writes
$CLAUDE_VM_RUNS_DIR/<runid>/run.meta recording run_id, repo_src,
repo_mount, worktree, and copy_back, and this repo's runs are the
ones whose repo_src names it. The run dir persists after the guest
exits (clone mode).
bin/claude-vm-cleanup never removes a run's worktree/ or
run.meta, so a run it has reaped is still found.
<runid> (optional): the run to apply. Defaults to the most
recent run of this repo, selected the way /claude-vm-diff
selects it.<repo> (optional): the source repo root. Defaults to the
current repo.Resolve the run dir and read run.meta (see /claude-vm-diff). If
no recorded run exists, report and stop.
Confirm repo_mount is clone. For a live run the guest already
wrote to the source in place; there is nothing to apply, so report
and stop.
Show the changes first and get confirmation before writing.
Reuse the diff from /claude-vm-diff (working-tree diff, plus the
worktree's git log/diff). Present:
Apply the worktree's content onto the source working tree, excluding
.git so local history and branch state are untouched:
rsync -a --exclude='.git' "<worktree>"/ "<repo_src>"/
The user then reviews git status / git diff in the source and
commits as they see fit. This skill does not commit on the
user's behalf — staging and commit decisions stay with the user.
Report what changed (git -C "<repo_src>" status --short).
/claude-vm-diff (or step 3's preview) first./claude-vm-apply-remote or your normal git workflow once you have
reviewed and committed.claude-vm.sh, the
copy_back function) mirrors this skill's safety contract: it checks
whether the local source tree is dirty, previews what would change
with rsync --dry-run --itemize-changes, and requires explicit
confirmation before overwriting a dirty tree (skipping otherwise).
Keep the two in sync — the launcher copy-back and this skill are the
automatic and explicit halves of the same safe apply path. When the
launcher skips a copy-back over a dirty tree, this skill is how you
apply that run's changes after reviewing them.What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/claude-vmLaunch Claude Code inside an isolated Linux micro-VM on macOS with config-driven egress, mounts, VM resources, guest environment variables (including third-party API keys forwarded by name from the host, never written into config), and repo isolation (clone or live). All non-secret knobs come from four-file YAML (a bake file + a boot file per tier, global + per-repo, all optional); the immutable base image is APFS-cloned per run so concurrent sessions never leak state. The guest authenticates with the host's claude.ai OAuth credential extracted from the macOS Keychain at launch, plus an identity seed (userID + oauthAccount from the host's ~/.claude.json, plus synthesized onboarding/auto-update-off/version keys) so the in-guest session comes up already onboarded, logged in, and with self-update disabled./claude-vm-apply-remotePush a claude-vm guest worktree's committed changes to the remote, for a given run id (or the most recent run). Pushes only with explicit approval; never force-pushes.Other plugins' skills for the same job
/claude-vm-config-globalInteractively create the global claude-vm config PAIR at ~/.config/claude-vm/config-bake.yml + config-boot.yml from the resolved defaults (cpus 2, mem 4096, bundled-tinyproxy proxy default, egress.allow incl. api.anthropic.com, claude.version). Idempotent — detects existing files and offers to merge or leave rather than clobber.npx claudepluginhub thevoskamps/claude-plugins-marketplace --plugin claude-vm