Repository navigation
Releases
heavy-gate v1.0.1
Patch release: closes five gaps the final code review found in v1.0.0. Upgrading is recommended for everyone who uses the Claude Code hook or runs heavy run on Unix with non-UTF-8 file names.
Fixed
- The hook now recognizes a quoted build subcommand or script path (
cargo "build",pwsh -File './build.ps1'), which the shell passes on as the plain word. - The hook recognizes global options before a build subcommand (
cargo --offline build,npm --prefix web run build,go -C sub build). - PowerShell strings end where PowerShell ends them: a backslash before the closing quote (
"C:\") no longer hides the rest of the command. - Command substitutions are checked where the shell runs them:
$(...)and Bash backticks inside double quotes are classified as commands, and a substitution in the arguments ofheavy run --counts as outside the wrapper, since it runs beforeheavystarts. heavy runpasses arguments that are not valid UTF-8 through to the command instead of panicking.
heavy run -- COMMAND itself is unchanged: it starts a command only when a slot is free and available physical memory meets the configured floor. It controls admission only; a running command can still use as much memory as it needs.
Assets
| Platform | Asset |
|---|---|
| Windows x86-64 | heavy-v1.0.1-x86_64-pc-windows-msvc.zip |
| Linux x86-64, glibc 2.34 or newer | heavy-v1.0.1-x86_64-unknown-linux-gnu.tar.gz |
| macOS 11 or newer, Apple Silicon | heavy-v1.0.1-aarch64-apple-darwin.tar.gz |
| Checksums | SHA256SUMS |
Each archive holds the heavy executable with README.md, CHANGELOG.md, and LICENSE. Verification steps are in the README. The binaries are not code-signed: Windows SmartScreen may warn on first run, and on macOS a browser download needs its quarantine attribute cleared after the checksum check (xattr -d com.apple.quarantine heavy); curl downloads are not quarantined.
Or build from source: cargo install --git https://github.com/vsolano9/heavy-gate --tag v1.0.1.
See CHANGELOG.md for the full history.
heavy-gate v1.0.0
First public release of heavy-gate: run builds and renders through a shared slot and free-memory gate on Windows, Linux, and macOS.
heavy run -- COMMAND starts a command only when a slot is free and available physical memory meets the configured floor, so heavy work from parallel agent sessions, subagents, and scripts on one machine starts a few at a time instead of all at once. It controls admission only: a command that is already running can still use as much memory as it needs. It runs locally, needs no service or account, and makes no network requests.
Highlights
- Shared admission across processes of one user: kernel locks (Windows named mutexes, Unix
flock) that free their slot at once when a holder crashes or is killed. - Native memory readings:
GlobalMemoryStatusExon Windows,MemAvailableon Linux,kern.memorystatus_levelon macOS. - Child cleanup: a kill-on-close Job Object on Windows, signal forwarding on Unix, and a parent-death signal for the direct child on Linux.
- Machine-sized defaults from RAM and CPU count, a TOML config with clear per-key warnings,
heavy configto show effective values,heavy statusto show holders and memory. - An optional Claude Code
PreToolUsehook (heavy hook) that denies unwrapped builds and suggests the wrapped command, withheavy checkto test verdicts.
Assets
| Platform | Asset |
|---|---|
| Windows x86-64 | heavy-v1.0.0-x86_64-pc-windows-msvc.zip |
| Linux x86-64, glibc 2.34 or newer | heavy-v1.0.0-x86_64-unknown-linux-gnu.tar.gz |
| macOS 11 or newer, Apple Silicon | heavy-v1.0.0-aarch64-apple-darwin.tar.gz |
| Checksums | SHA256SUMS |
Each archive holds the heavy executable with README.md, CHANGELOG.md, and LICENSE. Verification steps are in the README. The binaries are not code-signed: Windows SmartScreen may warn on first run, and on macOS a browser download needs its quarantine attribute cleared after the checksum check (xattr -d com.apple.quarantine heavy); curl downloads are not quarantined.
Or build from source: cargo install --git https://github.com/vsolano9/heavy-gate --tag v1.0.0.
See CHANGELOG.md for the full list and the README for limits.