The Manuscript · Field Notes

Blog

Notes on duplicate detection, AI-era codebases, and the decisions behind Deslop.

AI-Generated Code and Duplicate Code: What to Check

AI-generated code can multiply duplicate logic before review catches it. This guide explains what to check, why duplicate code becomes technical debt, and where to read the full Deslop research background.

Read arrow_forward
Duplication is the tax LLMs charge for speed

Coding agents generate plausible code faster than humans can review it. They also duplicate it faster. Here's why Deslop treats that as the defining problem of the era, not a side-effect.

Read arrow_forward
Why the ranking formula is the entire product

Deslop ranks clusters by clone_node_count × (cluster_size − 1) × log2(1 + spanned_bytes). Every decision in the tool flows from that one line. Here's why it's not configurable.

Read arrow_forward
Regex on source code is illegal

Deslop parses every language with tree-sitter. No regex, no line-matching, no heuristics. Here's why that constraint matters more than any feature the tool ships with.

Read arrow_forward