/claude-vm:claude-vm-apply-remotefrom claude-vm
Push 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.
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.
Push the changes a claude-vm guest committed (in its persistent
worktree) to the remote. Use this when you want the guest's work to
land on a remote branch directly, without first mirroring it onto the
local source.
This skill pushes to the remote, so pushing requires explicit approval — show the commits and target branch, ask, and wait for a clear yes before pushing. Never force-push.
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 push. 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.<branch> (optional): the remote branch to push to. When
omitted, derive a descriptive branch name (e.g.
claude-vm/<runid>); do not push to the default branch
implicitly.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 — the worktree (a --no-hardlinks
clone of the source) carries the guest's commits and its own
origin pointing at the source. For a live run there is no
separate worktree; report and stop.
Show what would be pushed:
git -C "<worktree>" --no-pager log --oneline "<base>..HEAD"
git -C "<worktree>" --no-pager diff --stat "<base>..HEAD"
If the worktree has uncommitted changes, the guest's work was not committed — report that and stop (there is nothing to push). The user can commit inside the worktree, or apply locally and commit there.
Get explicit approval for the push, naming the target remote and branch. Wait for a clear "yes" / "push".
Push the worktree's branch to the remote. The worktree's origin is
the local source; to reach the true upstream, add/resolve the source
repo's origin remote URL and push there, e.g.:
upstream="$(git -C "<repo_src>" remote get-url origin)"
git -C "<worktree>" push "$upstream" "HEAD:<branch>"
Use a normal (non-force) push. If the remote rejects it (non-fast-forward), report the rejection and stop — do not force-push.
Report the pushed branch and, if applicable, suggest opening a PR.
/claude-vm-apply-local first.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-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.