Skip to content
CAI
Software that uses CAICheck a score

Byron/dua-cli

64.7

Adequate · 14 November 2026

26k

lines of production code

Rust

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add GitHub release installation script and CI validation

Introduces a new \ci/install.sh\ script that allows users to install the \dua\ binary directly from GitHub releases, supporting options for specifying the crate, version tag, target platform, and installation directory (defaulting to \$CARGO\_HOME/bin\). The change also adds platform-specific package installation helpers (\ci/ubuntu-install-packages\, \ci/macos-install-packages\) and a validation script (\ci/validate-release-install.sh\) to verify the installation process works correctly for specific release tags.

ci · high confidence

Extracted filesystem walker into the new dua-lib crate

The filesystem traversal logic has been extracted into a new \dua-lib\ crate, providing a parallel, work-stealing directory walker. This library supports streaming roots, cancellable walks, and configurable entry ordering (parent-first or completion-based) across Windows and macOS platforms, while optimizing performance by reusing workers and avoiding unnecessary metadata queries. Also in this area: 5 commits (2 fixes) modifying crates/dua-lib; Fix buffer overread when parsing Windows directory entries near buffer boundaries; Configurable result buffering per worker.

crates/dua-lib/src · medium confidence · unverified

Interactive mode rewritten with new UI components and parallel deletion

The interactive application has been completely refactored to use a new component-based architecture (tui-react) and a modernized event loop. This introduces several new capabilities: parallel file deletion with progress tracking, a dedicated 'Clean Hub' view for grouping cleanup candidates, and Git-aware cleanup marking that respects .gitignore rules. Users can now cycle through multiple byte visualization modes (percentage, bar, long bar), toggle sorting by modification time with different scopes (entry, recursive newest/oldest), and configure keybindings via a configuration file. The UI also supports terminal focus notifications, case-sensitive glob search, and improved handling of symlinks and broken entries during traversal and deletion.

src/interactive/app · high confidence

Introduce snapshot-based diff and aggregate commands with Git-aware cleanup

The tool now supports comparing disk usage via a new \diff\ command that reads traversal snapshots, and an \aggregate\ command that summarizes multiple paths with optional totals and sorting. A new \clean\ subcommand identifies cleanup candidates (like \node\_modules\ or \target\) using Git-aware heuristics and supports background deletion. These features rely on a new binary snapshot codec (\snapshot/mod.rs\) for storing and replaying traversal data, and a new \diff.rs\ module for computing and displaying added, removed, and modified entries between snapshots.

src · high confidence

Behavioural changes

302 commits (20 fixes) modifying (repo-wide)

A change to existing behaviour in (repo-wide) — 302 commits (20 fixs), 6 files: “update changelog prior to release (\#124)”; “Fix inconsistent cargo.lock file; update all deps”; “Bump version”; and 263 more (refs \#124, \#123, \#72, \#2, \#102, …).

(repo-wide) · low confidence · unverified

Interactive UI rewritten with new widget components and localization

The interactive interface has been rebuilt using a new set of dedicated widget modules (entries, footer, glob, header, help, mark, and main) that replace the previous rendering logic. This change introduces a localized UI that automatically detects the user's language from environment variables (supporting English, German, Japanese, Korean, and Chinese) and renders all interface text accordingly. The new layout includes a dedicated help pane, a glob search pane with case-sensitivity toggling, and a mark pane for managing deletion candidates, all integrated into a main window that handles focus, scrolling, and pane minimization.

src/interactive/widgets · high confidence

New interactive module structure with path utility

The src/interactive directory now contains a new mod.rs file that establishes the module structure for the interactive component. This file declares the app and widgets submodules, re-exports app components, and provides a path\_of utility function that retrieves the file system path for a given tree node index. This change reorganizes the interactive module's public interface and adds a helper for resolving paths within the tree structure.

src/interactive · high confidence

macOS bulk directory reads are now conditionally enabled based on deployment target

dua-lib now detects whether the target macOS version and architecture support the \getattrlistbulk\ API during the build process. If the deployment target is older than macOS 10.10 or the architecture is not x86/x86\_64/aarch64, the library falls back to standard directory enumeration instead of linking against unavailable symbols. This ensures compatibility with older systems (like PowerPC or pre-10.10 macOS) while preserving the performance benefits of bulk reads on modern systems. The build script also respects the \MACOSX\_DEPLOYMENT\_TARGET\ environment variable to make this decision.

crates/dua-lib · high confidence

macOS directory scanning now uses native bulk attribute APIs for accurate APFS clone accounting

The macOS directory scanner has been rewritten to use the native \getattrlistbulk\ API instead of per-entry system calls. This change significantly improves scan performance by batching metadata requests and allows the tool to correctly identify and count APFS copy-on-write clones, ensuring that shared storage is not double-counted in disk usage reports. The implementation also introduces compact in-memory structures for metadata and entries to reduce memory overhead during traversal. Also in this area: 5 commits (2 fixes) modifying crates/dua-lib; dua-core v5.0.1: macOS fallback for older systems and Windows OOB read fix; Configurable result buffering per worker.

crates/dua-lib/src/macos · medium confidence · unverified

Test coverage

Added comprehensive integration tests for the interactive app; Added comprehensive test coverage for disk usage analysis features; Added snapshot tests for disk usage analysis features; Added tests for filesystem walker behavior and options; Expanded test fixtures for Unicode, grapheme, and file system edge cases.

Dependencies

dua-cli v2.45.0 release with workspace restructuring and dependency upgrades

This release updates the project to version 2.45.0 and restructures the codebase into a workspace containing the main CLI and a new \dua-core\ library (v4.1.0). Key dependency upgrades include switching the argument parser from \structopt\ to \clap\ v4, the TUI backend from \tui\ to \ratatui\ v0.30.2, and the trash library to v5.2.0. The project also adopts the Rust 2024 edition, enables fat LTO for smaller binaries, and updates various other crates such as \crossbeam\, \anyhow\, and \gix\.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 66 → 65 (-1.7)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 88 → 84 (-4.1)
  • Architecture 95 → 95 (+0.0)
  • Maturity 55 → 55 (+0.1)
  • Readiness 68 → 68 (-0.1)
  • Security 76 → 66 (-9.3)
  • Event Sourcing 100 → 100 (+0.0)

Resolved (6)

  • Duplicated block (9 lines × 2) (src/diff.rs)
  • Hotspot: crates/dua-lib/src/macos/mod.rs (crates/dua-lib/src/macos/mod.rs)
  • Hotspot: src/interactive/app/common.rs (src/interactive/app/common.rs)
  • Medium vulnerability: [GHSA redacted] (Cargo.lock)
  • No ADRs found
  • Outdated: trash

New (12)

  • Duplicated block (5 lines × 2) (src/crossdev.rs)
  • Duplicated block (9 lines × 2) (crates/dua-lib/src/lib.rs)
  • Duplicated block (9 lines × 2) (src/diff.rs)
  • Edited copy of a member (11 corresponding lines) (src/diff.rs)
  • Edited copy of a member (16 corresponding lines) (src/interactive/app/handlers.rs)
  • Edited copy of a member (25 corresponding lines) (src/interactive/widgets/entries.rs)
  • Edited copy of a member (26 corresponding lines) (src/interactive/widgets/i18n.rs)
  • Low coverage: src/main.rs (src/main.rs)
  • Medium advisory (unsound): RUSTSEC-2026-0486 (Cargo.lock)
  • No ADRs found (Cargo.toml)
  • Outdated: bitflags
  • Outdated: unicode-width

Changes since last survey

  • 30 commits — 23 feature/other, 7 fixes

By area

  • (root) — 11 commits
  • crates/dua-lib — 10 commits
  • (repo) — 7 commits
  • .github/workflows — 2 commits

Notable commits

  • fix: Merge pull request #431 from Byron/fix-macrunners
  • fix: Merge pull request #432 from Byron/fix-ubuntu-builds
  • fix: fix!: retain filesystem paths in traversal errors (#421)
  • fix: fix: install the current Ubuntu LZ4 tools package
  • fix: fix: provide standard FileType traits on native platforms (#422)
  • fix: fix: select the Unix trash backend explicitly (#428)
  • fix: fix: use supported macOS release runners (#430)
  • change: Add license link to dua-core so it gets published to crates.io too
  • change: Expose windows file attributes. Mirror std FileType Debug impl.
  • change: Merge pull request #420 from blinxen/main
  • change: Merge pull request #424 from Byron/better-error-handling
  • change: Merge pull request #426 from Byron/api-check
  • change: Merge pull request #427 from raldone01/feat/windows_file_attributes
  • change: Merge pull request #429 from Byron/trash-build
  • change: Release dua-cli v3.0.1
  • change: Release dua-cli v3.0.2
  • change: Release dua-cli v3.0.3
  • change: Release dua-core v5.0.2
  • change: Release dua-core v6.0.0, dua-cli v3.0.0, safety bump 2 crates
  • change: Release dua-core v6.1.0
  • …and 10 more

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

Byron/dua-cli was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit a6d1a98aeac25bd91b7fd77fab55081dddefccc1 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-e1a3b69fc8ee.