[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m

# cli-vmsync Multi-hypervisor VM image manager with incremental block-level sync. Manages disk images across KVM (qcow2) and Hyper-V (vhdx) formats, automatically syncing changes after each boot session. ## Usage ```bash # Import an existing disk image (any format qemu-img supports) vmsync import alpine-3.21-cloud.qcow2 vmsync import fedora-server.raw --name fedora-dev # Boot a VM (auto-detects KVM on Linux, Hyper-V on Windows) vmsync boot alpine # Manually sync if boot was interrupted vmsync sync alpine # Inspect VM state vmsync status alpine vmsync list # Update boot settings vmsync config alpine --memory 8G --cpus 8 ``` ## How it works ### Import 1. Detects the source image format via `qemu-img info` 2. Validates the image contains an EFI System Partition (UEFI-only requirement) 3. Converts to both `base.qcow2` (KVM) and `base.vhdx` (Hyper-V) 4. Stores both formats in `~/.local/share/vmsync/<name>/` with a `vmsync.jsonc` config ### Boot + incremental sync **On Linux (KVM): ** 1. Creates a qcow2 overlay backed by `base.qcow2` 2. QEMU boots from the overlay; all writes go to the overlay, reads fall through to the base 3. After shutdown, the overlay contains only changed blocks 4. `qemu-img map` identifies which blocks were written (depth 0 in the overlay) 5. Changed blocks are copied to `base.vhdx` via NBD block-level patching 6. The overlay is committed back into `base.qcow2` and deleted For a 100 GB disk with 2 GB of changes, sync takes ~4 seconds instead of ~5 minutes. **On Windows (Hyper-V): ** 1. Creates a temporary Gen2 VM pointing to `base.vhdx` 2. Hyper-V boots and writes directly to the vhdx 3. After shutdown, the vhdx is compared by checksum 4. If changed, a full conversion to qcow2 is performed Hyper-V checkpoint-based differencing (`.avhdx`) for incremental sync is a future optimization. ### Architecture constraints - **UEFI only**: images must contain an EFI System Partition. BIOS/Gen1 is not supported. - **NAT networking**: user-mode networking on KV…