/claude-vm:claude-vm-difffrom claude-vm
Read-only — show what changed inside a claude-vm guest worktree versus the local source repo, for a given run id (or the most recent run). Makes no changes.
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.
Show what a claude-vm guest changed, by diffing the persistent guest
worktree against the local source repo. This skill is
read-only: it never writes to the source, the worktree, or the
remote.
Use it after a claude-vm run (clone mode) to review the guest's work
before deciding whether to apply it locally (/claude-vm-apply-local)
or push it to the remote (/claude-vm-apply-remote).
Each claude-vm run writes a run.meta file into its persistent run
directory, under the runs root every repo on the host shares:
$CLAUDE_VM_RUNS_DIR/<runid>/run.meta
run.meta records run_id, repo_src, repo_mount, worktree, and
copy_back. The run directory persists after the guest exits (clone
mode) precisely so this skill can find it. repo_src is what tells this
repo's runs apart from every other repo's.
bin/claude-vm-cleanup never removes a run's worktree/ or
run.meta, so a run it has reaped is still found.
Resolve the runs root through the plugin's own config library rather than spelling the path:
RUNS_DIR="$(. "$CLAUDE_PLUGIN_ROOT/payload/lib/config.sh" && printf '%s' "$CLAUDE_VM_RUNS_DIR")"
<runid> (optional): the run to inspect. When omitted, use the
most recent run of this repo: among the run dirs under $RUNS_DIR
whose run.meta repo_src is <repo>, the highest-sorting run_id,
which is timestamp-prefixed.<repo> (optional): the source repo root. Defaults to the
current repo.Resolve the run dir:
If <runid> is given, use $RUNS_DIR/<runid>/.
Otherwise, pick the most recent run whose run.meta names this
repo:
find "$RUNS_DIR" -mindepth 2 -maxdepth 2 -name run.meta \
-exec grep -lxF "repo_src=<repo>" {} + 2>/dev/null | sort | tail -n 1
<repo> is spelled the way the launcher records it: the output of
git rev-parse --show-toplevel. The run dir is the printed file's
directory. If nothing matches, report that this repo has no
recorded runs and stop.
Read run.meta. Confirm repo_mount is clone. For a live run
there is no separate worktree — the guest wrote to the source in
place — so report that a diff against a separate worktree does not
apply and stop.
Diff the worktree's tracked content against the local source.
Because the worktree is a --no-hardlinks clone of the source, a
structural diff of the two working trees (excluding .git) shows
exactly what the guest changed:
diff -ruN \
--exclude='.git' \
"<repo_src>" "<worktree>"
For a git-aware view of changes the guest committed inside the worktree, run (read-only):
git -C "<worktree>" --no-pager log --oneline "<base>..HEAD"
git -C "<worktree>" --no-pager diff "<base>..HEAD"
where <base> is the commit the source was on at clone time
(git -C "<worktree>" merge-base HEAD origin/HEAD is a reasonable
default when the source's branch tip is unchanged).
Print the diff. Make no changes.
/claude-vm-apply-local (to the local source) or
/claude-vm-apply-remote (to the remote).repo.copy_back: local) may already have
mirrored the guest's changes onto the source. If so, a working-tree
diff against the source shows nothing — diff the worktree's git
history instead (the git log/git diff form above).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub thevoskamps/claude-plugins-marketplace --plugin claude-vm6 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-localApply 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./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./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./claude-vm-config-repoInteractively create the per-repo claude-vm config PAIR at <repo>/.claude-vm/config-bake.yml + config-boot.yml, writing ONLY the keys this repo overrides on top of the global config (e.g. bump mem 4096 -> 6144 for a heavy-build repo). Reads the global config as the basis so you see what you are overriding. Idempotent — detects existing per-repo files and offers to merge or leave rather than clobber.