Find My AI Tool Logo
All tools

Claktor

Claktor is a refactoring CLI for coding agents that shows refactoring opportunities by finding repeated logic in a codebase so teams and agents have less code to maintain.

AI CodingDeveloper ToolsCoding AssistantsCode Quality

About Claktor

Claktor

Claktor is a command-line tool that helps coding agents find and remove duplicated logic. Installation is a single line using curl, after which the agent reads a guide provided by the CLI and maps the repository. Its analysis engine uses parsers and fuzzy AST matching to rank repetition by how much sharing it would save, even when names and syntax differ. The agent then writes the shared logic once, runs the repository's checks, and Claktor reports how much code the change removed. The page cites a merged example in steipete/Markdansi where three flush functions became one, removing 50 production lines, and states that Claktor removes 3x more than Claude Code alone per dollar across four open-source repositories. The page lists support for TypeScript, JavaScript, Python, and Rust, works on Linux, macOS, and with any coding agent, and is released under the MIT license.

Key features

  • One-line installation via curl script
  • Guided repository mapping by the coding agent through the claktor guide command
  • Finds repeated logic using parsers and fuzzy AST matching, ranked by potential savings
  • Detects repetition even when names and syntax differ
  • Similarity search command (claktor similar) reporting duplicate function families with line ranges and similarity percentages
  • Measures and reports how much code a refactor removes
  • Supports TypeScript, JavaScript, Python, and Rust

Best suited for

  • Teams maintaining codebases where coding agents generate duplicated code
  • Developers using coding agents who want to reduce code that must be read and maintained
  • Maintainers of TypeScript, JavaScript, Python, or Rust repositories

Pricing

Not stated on the website

refactoringCLIcoding agentscode duplicationstatic analysisASTdeveloper toolsopen source

Discussion

No comments yet. Start the conversation.