Claktor
Claktor is a refactoring CLI for coding agents that uses custom AST parsing and processing to produce ranked 'leads' on what in a codebase should be looked into to reduce logic duplication, scoring via 'normalized tokens' (a normalized program parsed by an LLM tokenizer); it currently works with TS, JS, Rust and Python.
What it addresses
AI agents produce 'code smells' and logic duplication while writing code; Claktor greedily ranks leads on what to deduplicate so AI agents can remove more duplication for the same cost, making the codebase cheaper to read, extend, test and maintain by AI Agents.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Claktor
Claktor is a refactoring CLI for coding agents that uses custom AST parsing and processing to produce ranked 'leads' on what in a codebase should be looked into to reduce logic duplication, scoring via 'normalized tokens' (a normalized program parsed by an LLM tokenizer); it currently works with TS, JS, Rust and Python.
Problem: AI agents produce 'code smells' and logic duplication while writing code; Claktor greedily ranks leads on what to deduplicate so AI agents can remove more duplication for the same cost, making the codebase cheaper to read, extend, test and maintain by AI Agents.
Audience: coding agents
Posted by @mszbednarski · Original source ↗
Story title · @mszbednarski · · Source ↗
Show HN: Claktor – a refactoring CLI for coding agents
Submitted URL · @mszbednarski · · Source ↗
https://claktor.com/
Source text · @mszbednarski · · Source ↗
Claktor is a refactoring tool that leverages custom AST parsing and processing to produce ranked 'leads' on what in the codebase should be looked into to reduce logic duplication.
Source text · @mszbednarski · · Source ↗
I've been working on Claktor ever since I got frustrated with some 'code smells' AI Agents have been producing while writing Rust.
Source text · @mszbednarski · · Source ↗
The more normalized tokens we reduce while preserving behaviour, the more deduplicated to codebase is and cheaper it is to read, extend, test and maintain by AI Agents.
Source text · @mszbednarski · · Source ↗
'normalized tokens' which is a parsing of a normalized program by an LLM tokenizer
Source text · @mszbednarski · · Source ↗
Currently works with TS,JS,Rust and Python