deterministic-machines/deslop-please
Developer ToolsA Rust linter that flags module cycles, tangles, field leaks and shallow modules to push for deep modules and narrow interfaces.
What it does
deslop-please is an opinionated Rust linter that targets structural "slop" rather than style issues. Its rules are built around one idea from A Philosophy of Software Design: deep modules with narrow interfaces. It reports four rule families (illustrated in the README with before/after diagrams): module-cycle for modules that mutually depend on each other, tangle for modules that know each other's internals across layers, field-leak for struct fields accessed outside their defining module, and shallow-module for modules whose many small functions are called directly from outside.
The output for a field-leak rule is a source location, the number of external usages grouped by module, and which fields are exposed versus kept private, which helps a team see where an abstraction boundary is leaking.
Quick start
Cargo is required; install the CLI from crates.io:
cargo install deslop-please
Then run it from the root of the project you want to check:
deslop-please
The tool prints one diagnostic per violation, for example a field-leak on RunQueue::items with the four call sites that expose it, and a final count. To accept the current state as a baseline, generate an allow file and pass it on subsequent runs:
deslop-please --update-allow .deslop-please.allow
deslop-please --allow .deslop-please.allow
The README also suggests adding a short block to AGENTS.md instructing coding agents to run the linter and fix flagged issues by rethinking the design, not by mechanically silencing them; the block names the four rule families and asks for before/after diagrams.
Constraints
- The tool is written in Rust and distributed via Cargo/crates.io, so the install path assumes a working Rust toolchain.
- It targets structural problems, not formatting, naming or style; its rules encode one specific design philosophy and are explicitly opinionated.
- The allow-file workflow silences existing findings, so it should be used deliberately rather than as a permanent blanket suppression.
- The README does not document configuration beyond the allow file, nor any non-Rust language support.
- Licensed under MIT.
HotRepo's take
On HotRepo's new-project board for 2026-11-23, the repository recorded 59 net new stars over roughly one hour (from 114 to 173) with 2 new forks. That is a single short observation window, not enough to characterize a trend. The project's appeal is easy to see from the material: it turns a well-known design book's principles into executable checks with unusually readable diagnostics, and its AGENTS.md guidance is aimed squarely at AI-assisted codebases where structural drift is common.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.