Repository navigation
Releases
Releases · BidyutRoy2/ollaprune
v0.1.0
Release Notes — ollaprune v0.1.0 (2026-11-27)
First public release. ollaprune is the ollama prune command that
doesn't exist: a zero-dependency Python 3.9+ CLI that audits and safely
prunes local AI model stores.
What's in it
ollaprune scan— audits Ollama manifests/blobs, the Hugging Face
hub cache and GGUF directories. Per-model true size with shared-layer
dedup (ollama listdouble-counts shared blobs), orphan and partial
detection, corrupt-model reporting, and a Disk Health Score 0–100.ollaprune prune— safe prune plan, dry-run by default. Ollama
models are removed only viaollama rm; direct deletion is limited to
refcount-0 orphans and partials. Loaded and corrupt models are BLOCKED,
--applyre-scans first (stale-plan abort), and arestore-list.txt
withollama pullcommands is written.ollaprune guard 40G— pre-pull space check with 10% headroom;
exits 2 when the pull cannot fit, so CI fails before a mid-pull
disk-full.ollaprune report/doctor/demo— Markdown/JSON/HTML reports;
a setup check that exits 0 even with no stores; a deterministic demo
fixture.
Demo numbers (pinned, reproducible with sh demo.sh)
- Total store: 14,100,004,000 bytes (13.13 GB)
- Waste: 3,160,000,000 bytes (2.94 GB)
- Disk Health Score: 75/100 (C)
- Prune dry-run savings: 7,760,001,000 bytes (7.23 GB)
Install (source only — not on PyPI)
git clone https://github.com/BidyutRoy2/ollaprune.git
cd ollaprune
pip install -e .Tests
34 tests pass on a bare clone with no install:
python3 -m unittest discover -s tests -t .
Known limits (v0.1.0)
- HF models are never auto-candidates for pruning (only their orphans
and incomplete snapshots are); usehuggingface-clito delete HF
snapshots. - Unused-model detection uses manifest mtime (default: 90 days).
- No PyInstaller binary yet;
pip install -e .is the install path.