Runnable, but read-only
Linux, macOS, and Windows now have degraded development-grade read-only scanners exposed through the same `sweepx scan` / `scan --tui` entry points. macOS traversal is handle-bound and Windows traversal is handle-relative.
A runnable development disk-analysis CLI/TUI with guarded Trash, Linux quarantine, and bounded-directory Permanent previews.
CAUTION
SweepX also has a Linux bounded file/directory Permanent development preview. It requires the ordinary user to type a full digest at a foreground terminal, persists a closed plan, then writes intent, revalidates, and runs each unlinkat/rmdir action in postorder. It is not secure erase and does not cover links, over-limit trees, or other platforms; Trash failure never invokes it. General P3 plan/execution remains library-only simulation.
junk --details ROOT includes nested artifact rows: Rust incremental caches, dependencies/tests, build-script output, fingerprints, examples and conventional --target groups; Python .venv/venv and Vite .vite/deps have current bounded format observations. Rust profile rules require an ordinary .cargo-lock, the native debug/release parent and conventional target lineage; target groups also need compiler-info and cache-tag markers. Custom profiles/build paths are not resolved. These rules remain report-only: environment recovery inputs, personal files and process activity are unverified. TUI shows localized category labels and retains read-only directory inspection. JSON adds entryId, parentCandidateEntryId, detailsIncluded, topLevelCandidateCount and sizeSummaryScope; IDs only group this scan, never authorize actions. Nested byte values are included in their parent, so summaries count non-overlapping outer candidates only. Allocation/logical evidence does not establish uniquely reclaimable space. --details conflicts with cleanup flags.
In junk --tui, press Enter on a current directory candidate to inspect its read-only breakdown, then enter subdirectories and view files. Size and on-disk space are shown separately. Space records up to 32 paths for review, p shows the full path, and q returns to candidates; the latest breakdown's list is printed on exit. This list does not authorize deletion or classify children as junk, and d/Delete cannot execute Trash inside the breakdown. Refresh historical rows first. Native listeners keep collecting changes while automatic refresh admission is held, then resume processing on return. Details reuse the existing background identity-bound scanner, boundaries, cancellation and resource limits. See the CLI/TUI architecture.
| Capability | Current state |
|---|---|
| Linux directory scan | development-grade, read-only, degraded |
| macOS directory scan | development-grade, read-only, handle-bound degraded |
| Windows directory scan | development-grade, read-only, handle-relative degraded |
status | reads terminal state journal-first on Linux and supports degraded completed replay through sweepx --format ndjson status --operation-id ID --watch [--after SXCUR1]; macOS and Windows read legacy snapshots, with a current-user-private state directory enforced on Windows |
cancel | command exists; live cancellation is disabled |
explain | report-only analysis from bounded scan JSON |
cache status | read-only preview-cache diagnostics on Linux/macOS/Windows |
| Cleaner | read-only metadata list/show with compatibility gates; cargo-detect has fixed-input reads and typed evidence but remains hint/report-only |
| CLI/TUI | one sweepx entry point; terminal table by default; scan --tui enters first and scans progressively, retaining bounded current-level rows while a single-flight 30 s background pass aggregates recursive sizes |
| Trash / Permanent | single-item Trash preview, plus Linux /tmp quarantine and a bounded file/directory Permanent preview; link/over-limit/cross-platform Permanent is absent |
The CLI and TUI auto-detect zh-CN / en-US and accept an explicit --locale override. Current machine scan output stays JSON, and scan --format ndjson remains disabled. cache status supports human/JSON only; NDJSON is a usage error. Missing state/cache returns absent without creating directories, and inspection is bounded to preview-cache/current.json, the current generation file, and the flat generations/ / quarantine/ directories; it does not scan, repair, quarantine, or reveal cached entries or path contents. Linux status --watch --format ndjson replays only a completed, persisted stream: it performs one same-snapshot full validation, then returns pages of at most 1024 events; an unknown but syntactically valid cursor yields stream.reset_required, while malformed cursor usage remains a usage error. Because events are still constructed after the scan, this is not live streaming, does not wait for new events, does not create a background operation, and does not support cancel. Release automation builds five target archives, checksums, installers, and this GitHub Pages site. The v0.0.1 development release is published; no stable release has been published yet.
Tool cache roots, browser and known-cache discovery in junk --system shares a bounded invocation layout snapshot with classification. Version expansion and shard checks consume the shared budget; classification does not enumerate or resolve paths per candidate. Permission, observation or resource failures set layoutDiscovery.complete to false with an incompleteReason, report partial and return exit code 4. Confirmed results remain visible; an empty list does not prove there is no junk. The native deadline is cooperative between calls and cannot interrupt blocking OS access. Non-interactive cleanup/Trash requests are rejected before discovery.
Whole-root candidate records bind the currently enabled rules and discovery scope, triggering fresh classification when they change. File-length caches are validated independently, so an old empty candidate report cannot hide results introduced by newly enabled rules.
On macOS, ordinary junk reports and the junk TUI share one attribution pass for multi-root cache publication. An exhausted auxiliary budget warns and omits the affected cache update while retaining current observations; missing cached facts need fresh observation next time. Nested roots remain separate, and historical previews never authorize Trash.
Candidate-cache hits also rebuild current Git interpretation. Changes to ignore configuration, the index or repository boundaries outside the selected root cannot replay historical confidence. Git queries only enrich existing project-rule candidates; they neither discover junk by themselves nor authorize deletion.
| What you want to know | Page |
|---|---|
| What is actually implemented | Introduction |
| How to run current commands | CLI and guarded cleanup previews |
| Why imported reports cannot execute | Safety model |
| Whether a Cleaner is a rule or a script | Cleaner concepts |
| What an Agent may do | Agent boundaries |
| How the crates are layered | Architecture |
| Where P3 ends and future mutation begins | Roadmap |
SweepX is now a runnable development preview: scanning, TUI browsing, single-item Trash, Linux stale-temp quarantine, and Linux bounded file/directory Permanent can be exercised. General plan, approve, execute, and broader Permanent remain future work.
Project junk candidates remain visible, selectable and refreshable. Exclusive ownership and inactivity are still unverified, so junk --trash and TUI Trash refuse them. Names, risk tiers, formats and Git ignore do not substitute for that proof; generic build-output rules explicitly allow reporting only.
pnpm-store / osdk-cache inspect individual package versions, model aliases and download caches. pnpm shows links, observed projects and project logical totals while preserving shared content; single links and scope-limited absence do not prove global disuse. OSDK downloads use Trash; models use a separate manager operation. Commands and boundaries.