huacnlee forks Cargo to auto-shrink target dirs — 5 days of parallel AI dev without cleaning disk
dotey · x · 2026-11-05
@huacnlee released huacnlee/cargo, a drop-in Cargo fork that keeps Rust target directories small automatically — aimed at the AI era where parallel agents across many worktrees repeatedly rebuild and balloon disk usage.
- Install once, no config: build outputs are shared across worktrees/projects and self-cap under a size limit
- Real-world test: 5 days of fully automated AI development on 4 machines with zero target cleanups
- In a 525-crate workspace, each new worktree adds 0.4GB instead of 6.7GB
- Disktree screenshots show all Rust build output at 44.6GB (Linux) with 711GB free; Mac targets at 95.7GB with 329GB still free
- Supports cargo +nightly, rust-toolchain.toml, daily background self-update, --uninstall to revert
- His take: build speed and artifact size are becoming the real bottleneck of AI-assisted development
More from coding & agent
- Agent Tool 'Dot' Lets Users Send Feature Requests Directly to the Dev Team — dkundel · 2026-11-05
- Model gets stuck in a loop spamming "it failed!!!" — burning 140K tokens — CtrlAltDwayne · 2026-11-05
- AX to support migrating agentic workloads between local and production clusters — rakyll · 2026-11-05
- OpenAI upgrades Codex: marked-up images now pinpoint edits via API — OpenAIDevs · 2026-11-05
- Baseten Router cuts coding-task costs 72% with only 0.8pt pass-rate drop vs Opus 5.5 — baseten · 2026-11-05
- BrowserForge: open-source MCP server gives agents your real browser with human approval gates — mostafazog · 2026-11-05