Latest / Developer tools

Treepeat

github.com · Package · Active

Code similarity detection using Tree-sitter

Visit github.com ↗Share

Stars
93
Forks
5
Open issues
4
Last commit
Releases
13
Found
2 months ago

GitHub figures as of . They are context, not a ranking.

A tool that finds duplicate and near-duplicate code blocks by comparing syntax structure rather than lines. It ignores differences such as whitespace and names, and the repo is Python. It suits developers cleaning up a codebase who want matches that are meaningful rather than purely textual.

Repository description on GitHub: “Code similarity detection using treesitter”

What it does

  • Finds duplicate code blocks at the class and function level
  • Near-duplicate matching that ignores whitespace, strings and names
  • Structural matching that anonymizes identifiers and constants
  • Tree-sitter parsing for many languages, including Python, Go and TypeScript

Good for

  • Find copy-pasted functions and classes across a codebase
  • Detect structurally similar code with the loose normalization ruleset

Suits: Developers cleaning up large codebases who want meaningful duplicate matches.

Worth knowing: The maker calls it a proof of concept and says language support is still limited.

What you can try

Read the README on GitHub and install from source.

Install

pip install treepeat

Taken from the project’s README. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw Treepeat on , when 91awebsi posted it to Show HN. The oldest published release on GitHub is v0.0.1, dated . Treepeat had been shipping tagged releases for 308 days before it was found. 13 releases have been published in total; the latest is v0.11.0 ().

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 75 points, 8 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 75 points, 8 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (13 in total, busiest month 3).
  1. Repository created on GitHub: dsummersl/treepeat
  2. Release v0.0.1 (pre-release)
  3. Release v0.6.0
  4. Release v0.7.0
  5. Release v0.8.0
  6. Release v0.9.0
  7. Found: 91awebsi posted it to Show HN. Show HN
  8. Release v0.10.0
  9. Release v0.11.0
  10. Day-7 check recorded by Kip (details)
  11. Day-30 check recorded by Kip (details)

Showing the first and the 6 latest of 13 releases. All releases on GitHub

Quick answers

When was Treepeat released?
Its first tagged release on GitHub is dated 18 Nov 2025. Kip found it on Show HN on 22 Sep 2026.
Is Treepeat open source?
Its source is public on GitHub at dsummersl/treepeat under the Apache-2.0 licence.
What does Treepeat run on?
Command line.
Is Treepeat free?
It is open source, so the code is free to read and run; check the licence for terms.
Is Treepeat still maintained?
Yes. It had a commit or release in the last 90 days as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorydsummersl/treepeat
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-49804359. Summary written by KipFound’s editor.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.