mgit v0.3.1-beta
mgit — a sandboxed, checkpointed working substrate for LLM coding agents
mgit gives a coding agent two things together: containment — its untrusted code (npm/pip installs, builds, tests) runs in a disposable per-task microVM, not on your machine — and a checkpointed working substrate — every step is a task-tagged micro-commit in an isolated .mgit store that never touches your real .git, so you review and land only the squashed result.
Beta. The microVM sandbox is the differentiator; it is live-validated on Linux (firecracker/KVM) and macOS (Apple Virtualization.framework, arm64). Windows runs core mgit without the sandbox. See Known limitations in the CHANGELOG.
Highlights
- Per-task microVM containment — installs/builds/tests run in a disposable, hardware-isolated VM; a poisoned dependency burns the VM, not your host. Default-deny per-task egress allowlist; verified land (dual-hash + task binding + host-anchored attestation) through an airlock.
mgit work— one command starts an agent on a task: a task-bound worktree with the agent's shell wired throughmgit runinto the sandbox.- Runs over your existing git repo — a self-contained
.mgitstore; your project's.gitis provably never mutated, and the base stays in sync with your local working state automatically (no manual sync). - Checkpointed, reviewable history — task-tagged micro-commits; backtrack / fork / cherry-pick to course-correct;
squash --to-git | git applylands a byte-for-byte patch. - Multi-agent worktree isolation, REST + MCP integration surfaces, dual-hash integrity, append-only audit.
- Pure Go, zero CGO — single static binary (Linux, macOS, Windows; amd64 + arm64).
Quality
- 530+ automated tests, race-detector clean under
-race, zero lint warnings.
Install
Each archive below ships two host binaries: mgit and, where a
sandbox backend exists (Linux and macOS arm64), the mgit-sandboxd
daemon next to it. Homebrew installs both.
# Homebrew (installs mgit + mgit-sandboxd)
brew install hyper-swe/tap/mgit
# Go — core mgit
go install github.com/hyper-swe/mgit/cmd/mgit@latest
# Go — the sandbox daemon (Linux works out of the box; on macOS the
# go-installed binary is unsigned and needs the virtualization
# entitlement — prefer brew or the release archive there)
go install github.com/hyper-swe/mgit/cmd/mgit-sandboxd@latest
# Binary — download the archive below for your platform (contains both)The microVM sandbox also needs a guest image; see
docs/INSTALL-SANDBOX.md.
Pairs with mtix
mgit + mtix form a closed loop for enterprise AI-driven development: mtix tracks what to build, mgit tracks what was built. Task IDs flow between both systems. The unit of failure is a task, not a session.
Changelog
- 07ea750 chore(docs): stamp 0.3.1-beta in the changelog
- d9cb948 feat(cli): mgit serve --project to target a repo without cwd (MGIT-60)
- b4a318d fix(sandbox): mgit run waits for guest readiness + resolves bare commands (MGIT-58)
- 165714e fix(sandbox): route mgit run to the parent repo's daemon and match canonical paths
- 93da7ab style(sandbox): gofmt e2e_workflow_linux_test (drop stray blank line)
- 135444e test(sandbox): fix stale e2e image-digest fixture (MGIT-59)