MikeTrendsTrends right now

⬢github Python · 77 ★ +4 since we first saw it · pushed 5 d ago · Apache-2.0

dsummersl/treepeat

Code similarity detection using treesitter

treepeat is a Python CLI tool that detects duplicate and similar code in a codebase using tree-sitter AST analysis plus locality-sensitive hashing. It offers three normalization levels (exact duplicates, near-duplicates ignoring strings/whitespace, and structurally similar code with anonymized identifiers), adjustable similarity thresholds, side-by-side diffs, and SARIF output for CI integration.

Why now: It was featured in a Show HN post, where the author presented it as a proof of concept and invited pull requests to support more languages.

Who it is for: Developers and code reviewers who want to find copy-pasted or near-duplicated code in their repositories, especially in CI pipelines.

code-qualitystatic-analysistree-sitterclipythondeveloper-tools

Open on GitHub →

Stars over our 124 snapshots: 73 to 77, since 1 d ago.

Where people talked about it

API: https://socialmediatrends-api.osmike.com/v1/repos/dsummersl/treepeat