Build Governor, builds that slow down instead of crashing.
Lightweight governor that sits between your build system and the compiler. Adaptive concurrency based on commit charge — zero config, automatic throttling, actionable OOM diagnostics.
Setup
.\scripts\enable-autostart.ps1
Build
cmake --build . --parallel 16
Status
gov status
Why Build Governor?
Parallel builds shouldn’t be a gamble.
Zero Config
Wrappers auto-start the governor on first build. No daemon setup, no config files, no admin required.
Adaptive Throttling
Monitors commit charge in real time. Builds slow down gracefully instead of freezing your machine.
Actionable Diagnostics
Classifies failures as OOM, paging death, or normal errors. Recommends the right -j value.
Fail-Safe
If the governor is down, wrappers run tools ungoverned. Your build never depends on the governor being healthy.
Token Cost Model
Assigns costs by operation type: normal compile (1), template-heavy (2–4), LTCG link (8–12). Matches real memory profiles.
NuGet Libraries
Gov.Protocol and Gov.Common let you build custom tooling on top of the governor’s memory metrics and OOM classifier.
Quick Start
Automatic (recommended)
# One-time setup (no admin required)
cd build-governor
.\scripts\enable-autostart.ps1
# That's it! All builds are now protected
cmake --build . --parallel 16
msbuild /m:16
ninja -j 8 NuGet libraries
Throttle Levels
Adaptive response based on system commit charge.
Token Cost Model
Costs reflect real-world memory profiles.