quick
Fastest setup
Fork warm state and repair only proven freshness metadata.
cargo warm seed --profile quickcargo-warm forks useful Cargo and rustc state from a warm checkout into each new worktree's own writable cache. Agents start closer to warm without fighting over one mutable target directory.
cargo warm seedprofile balanced · source exact revision
cache forked · freshness verified
$cargo warm checkProfiles
Small crates should not pay for heavyweight priming. Giant crates should not make the first agent edit discover every relocation cost. Profiles let each repository choose.
Fastest setup
Fork warm state and repair only proven freshness metadata.
cargo warm seed --profile quickWarm compiler
Add a relocatable rustc prime before the first real edit.
cargo warm seed --profile balancedWarm package boundary
Also re-establish the selected package's own build-script boundary.
cargo warm seed --profile deepDoctor
Doctor works before you create a second worktree. It looks at the selected packages, Rust source size, build scripts, toolchain support, and cache shape. With two worktrees, it also explains freshness and path blockers.
.agents/.cargo-warm.toml.--probe classifies Cargo's actual fingerprint misses.project shape
rustc: 1.98.0 (Stable)
local Rust: 86,420 lines / 214 files
build scripts: 1 direct / 2 path deps
recommendation
profile: balanced
why: large local crate; relocatable rustc available
compare: quick, deep
Suggested .agents/.cargo-warm.toml
default-profile = "balanced"
clone-pressure = "auto"
manifests = ["Cargo.toml"]Safety boundary
cargo-warm optimizes the starting point without inventing a second build system. Unknown state stays stale; unsafe mappings fall back to ordinary Cargo revalidation.
Find a nearby compatible, quiescent worktree with real warm state.
Clone Cargo intermediates into a different writable destination path.
Synchronize freshness only across clean, equivalent inputs.
Let Cargo and rustc reopen, invalidate, and compile normally.
Guides
The docs focus on setup, profiles, diagnosis, and integration. The implementation is there when you need the deeper mechanics.
Go from install to a worktree hook in a few commands.
Open guide →02StartBuilt-in quick, balanced, and deep profiles plus project-local overrides.
Open guide →03StartProject diagnosis, worktree comparison, Cargo fingerprint probes, and a repeatable benchmark method.
Open guide →04ConceptsSource selection, cache forking, freshness proof, native state, and relocatable compiler priming.
Open guide →One hook
cargo install cargo-warm --lockedQuickstart →