Checkouts
A checkout is the working tree for one dispatch run within a broader workspace.
Why Pro checkouts exist
In Starter Kit (OSS), every dispatch run gets a plain git worktree with its
own copy of source files, dependencies, and build output. On a busy host running
many concurrent or historical runs — especially Rust (target/), Node
(node_modules/), or monorepo builds — plain worktrees duplicate gigabytes per
run and fill disks quickly.
Pro checkouts preserve disk space on hosts with a valid Kit Pro license in three ways:
- Copy-on-write seeding (
driver = "cow"): clones the repository using APFS clones on macOS or Linux reflinks (XFS, Btrfs) so unchanged files share disk blocks instead of duplicating them (falls back to Git checkout when unsupported). - Slot-pooled build caches: instead of every run keeping its own multi-GB
build cache, each active attempt leases one cache slot per repository up to
the host’s
cap, reusing compiled artifacts across attempts. - Compaction: finished runs can reclaim their entire working tree while keeping run metadata, reports, and review notes intact, restoring the commit automatically if you rework or retry later.
The receiving host decides eligibility from its local license projection.
In the receiver’s dispatch config ([workspace] is also accepted as a legacy alias):
cap = 8
[checkout]
mode = "auto"
root = "~/workspace"
driver = "cow"
auto_compact_done = false
auto enables Pro features when licensed. oss selects plain Git worktrees.
pro requires a valid Pro license. The legacy top-level string
workspace = "~/workspace" still sets the repository search directory.
The cow driver tries an APFS clone or Linux reflink and falls back to Git
checkout. Set driver = "git" to always use Git checkout.
On supported hosts each Pro attempt leases one slot per repository up to the
receiver’s cap. Rust attempts with a root Cargo.toml inherit a slot’s
cargo-target directory unless their environment already sets
CARGO_TARGET_DIR. hev dispatch gc evicts unlocked caches idle over seven days.
Run hev dispatch compact NAME or hev dispatch compact --all on a Pro host.
Closing an eligible run also attempts compaction. Enable
auto_compact_done to attempt it after successful work. Compaction requires
an idle run, a clean worktree (including untracked source), and a HEAD
reachable from origin or equal to the original base. Worktree and Git
administration paths must resolve within the host home directory.
Compaction keeps run metadata, reports, and review notes. Rework, retry,
and amend restore the recorded commit and branch before the next attempt.