Skip to content

Releases

v0.1.0

Choose a tag to compare

@BidyutRoy2 BidyutRoy2 released this 26 Nov 22:56
7b58b2f

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 list double-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 via ollama rm; direct deletion is limited to
    refcount-0 orphans and partials. Loaded and corrupt models are BLOCKED,
    --apply re-scans first (stale-plan abort), and a restore-list.txt
    with ollama pull commands 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); use huggingface-cli to delete HF
    snapshots.
  • Unused-model detection uses manifest mtime (default: 90 days).
  • No PyInstaller binary yet; pip install -e . is the install path.