Tech article

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

No preview is available. Read the original article for the full story.

Hacker News | Sep 22, 2026 | 91awebsi

Automated excerpt

Scan a codebase for similar or duplicate code blocks using tree-sitter AST analysis and locality-sensitive hashing. treepeat detect --format sarif -o results. sarif /path/to/codebase --progress is intended primarily as interactive CLI feedback. The current implementation writes tqdm progress bars to stderr, leaving normal command output on stdout or --output. Shows the original source code side-by-side with the normalized token representation.

Selected automatically from source text; not independently written or fact-checked. Read the original for full context.

Read the original article

More tech news