Skip to content

Critical: per-session runtime copies in ~/.reflexio grow unbounded — 1 TB / 47.7M files, nearly filled a 1.9 TB drive #65

@MITIG473

Description

@MITIG473

Summary

On Windows 11, after about two weeks of normal daily use, claude-smart filled my C: drive. The cause is ~/.reflexio: it had grown to 1.0 TB across 47.7 million files, leaving 6.7 GB free on a 1.9 TB drive (99.6% full). This is a new laptop. It came within a few GB of being unbootable.

Root cause

.reflexio creates one folder per session (Cu<id>), and each one holds a full copy of the plugin's Python and Node runtime rather than a reference to a shared install. One session folder I opened was 1.56 GB, containing:

torch_cpu.dll                 293 MB
next-swc.win32-x64-msvc.node  130 MB
chromadb_rust_bindings.pyd     60 MB
torch_cpu.lib                  28 MB
libscipy_openblas (x2)        ~38 MB
torch_python.dll, libvips     ~36 MB
onnxruntime (.dll + pybind)   ~33 MB
typescript.js (x2), lightningcss, cygrpc, sleef, ...

That is the entire PyTorch + ChromaDB + ONNX + Next/TypeScript stack duplicated into every session, and never cleaned up.

The math

  • 671 Cu* session folders (dated 5/18 to 6/1, matching my session history)
  • ~1.5 GB each
  • 1,010 GB total, 47,717,635 files, 5,320,897 folders
  • 671 x 1.5 GB is the whole terabyte

Impact

  • Free space fell to 6.7 GB, then 2.4 GB mid-cleanup, on a 1.9 TB disk.
  • Uninstalling did NOT reclaim the space. It removed the code and left the 1 TB of data in ~/.reflexio.
  • Deleting 47.7M files via PowerShell Remove-Item was unusably slow; I had to wipe it with a multithreaded robocopy /MIR.

Expected behavior

  • Install the runtime once and share it across sessions (symlink/junction, a single venv + node_modules, or one long-lived backend) instead of copying gigabytes per session.
  • Garbage-collect old session folders (keep last N, or prune by age/total size).
  • Enforce a hard size cap on ~/.reflexio, and warn before it grows large.
  • uninstall should offer to remove ~/.reflexio.

Severity

Critical: unbounded disk growth with no cap, no cleanup, and no warning, ending in near disk-exhaustion and a genuine data-loss / unbootable risk. For a heavy daily user it fills a terabyte in roughly two weeks.

Environment: Windows 11, Claude Code, claude-smart (installed via the plugin marketplace, ~late May 2026).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions