Claktor
A CLI that helps coding agents find duplicate logic and measure code reduction.
What does it do?
After a coding agent reads the guide and gets familiar with the repository, Claktor analyzes repeated logic. It uses a parser and approximate AST matching to find parts that could be shared even when names or syntax differ, then ranks candidates by the amount of code that could be saved by combining them. After the agent writes the logic once and runs the project checks, Claktor reports how much code the change removed.
Key features
- Find repeated logic in a repository
- Compare code with different names and syntax using approximate AST matching
- Rank refactoring candidates by estimated code savings
- Report how much code was removed after a change