← Back to Product Feed

Hacker News Show HN: Treepeat – Code similarity detection using Tree-sitter

No tagline provided.

75
Traction Score
8
Discussions
Sep 25, 2026
Launch Date
View Origin Link

Product Positioning & Context

treepeat is a tool that finds similarities in your codebase.Find duplicate code blocks meaningful to the language (classes/functions), not just lines.Find near-duplicates: ignore whitespace, strings, high level AST nodes such as function and names.Find structurally similar code: anonymize identifiers, constants, etc.Pull requests welcome: This is very much an proof of concept - I'm happy with it, but I haven't supported very many languages at present.Languages supported: astro, bash, css, go, html, javascript, lua, markdown (plus codeblocks), python, sql, typescript, java, kotlin, rust, yaml

Related Ecosystem & Alternatives

Discover adjacent products, open-source repositories, and developer tools sharing similar technical architecture.

Deep-Dive FAQs

What is Treepeat – Code similarity detection using Tree-sitter?
Treepeat – Code similarity detection using Tree-sitter is a digital product or tool described as: treepeat is a tool that finds similarities in your codebase.Find duplicate code blocks meaningful to the language (classes/functions), not just lin...
Where did Treepeat – Code similarity detection using Tree-sitter originate?
Data for Treepeat – Code similarity detection using Tree-sitter was aggregated directly from the Hacker News community ecosystem, providing a stored public-discussion sample, not a representative customer survey.
When was Treepeat – Code similarity detection using Tree-sitter publicly launched?
The initial public indexing or launch date for Treepeat – Code similarity detection using Tree-sitter within our tracked developer communities was recorded on September 25, 2026.
How popular is Treepeat – Code similarity detection using Tree-sitter?
Treepeat – Code similarity detection using Tree-sitter has recorded public engagement of 75 traction score and facilitating 8 recorded discussions or engagements.
Is Treepeat – Code similarity detection using Tree-sitter recognized by media or academic researchers?
Yes. It has been covered by media outlets like Github.com. These are topic matches, not evidence of scientific or commercial validation.
What are some commercial alternatives to Treepeat – Code similarity detection using Tree-sitter?
Text similarity retrieved a product for further investigation: Zigzag Browser. Functional substitutability has not been verified.
How does the creator describe Treepeat – Code similarity detection using Tree-sitter?
The original author or development team describes the product as follows: "treepeat is a tool that finds similarities in your codebase.Find duplicate code blocks meaningful to the language (classes/functions), not just lines.Find near-duplicates: ignore whitespace, string..."

Community Voice & Feedback

adityamishra241 • Sep 25, 2026
Nice approach. AST-level similarity seems much more useful than simple text matching.
Game_Ender • Sep 24, 2026
Thank you for a README that is readable. It might have a bit of AI help but it’s concise and makes it clear how to use the tool.
ryuuseijin • Sep 24, 2026
This is what I wanted to help with duplicate code detection, which is now a real problem with agentic programming since the agent tends to duplicate helper functions a lot in bigger codebases.I ended up writing my own tool [1] that uses vector search, which works but can be unusably slow in large codebases.I will give this a shot.[1]: https://github.com/ninjaxtools/slopdex
bradleyy • Sep 24, 2026
Thanks for posting this; I'm very interested in finding similar chunks of code in an AST-ish fashion, and using tree-sitter seems perfect.

Discovery Source

Hacker News Hacker News

Aggregated via automated community intelligence tracking.

Tech Stack Dependencies

No direct open-source NPM package mentions detected in the product documentation.

Media Tractions & Mentions

Deep Research & Science

No direct peer-reviewed scientific literature matched with this product's architecture.