gitwtfhub

wtf is clactor?

copiumnicus/clactor — explained in plain English

Analysis updated 2026-05-18

1RustAudience · developerComplexity · 3/5LicenseSetup · easy

TL;DR

A Claude Code plugin that scans Rust, Python, and TypeScript codebases for duplicated code and messy function signatures, then lets AI agents fix approved issues.

Mindmap

mindmap
  root((clactor))
    What it does
      Scans for duplicated code
      Flags messy signatures
      Applies approved fixes
    Tech stack
      Rust
      Python
      TypeScript
    Use cases
      Dedup detection
      Shape refactor suggestions
      Human approved edits
    Audience
      Software developers
      Claude Code users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Find duplicated or drifted code across a large Rust, Python, or TypeScript codebase.

REASON 2

Detect functions with messy parameter lists that should be grouped into a struct.

REASON 3

Review AI-suggested refactors at the file and line level before approving any change.

REASON 4

Automatically re-run build, lint, and test commands after each approved refactor.

What's in the stack?

RustPythonTypeScriptClaude Code

How it stacks up

copiumnicus/clactorabc3dz/mixxxabyo-software/ferro-stash
Stars111
LanguageRustRustRust
Setup difficultyeasymoderatemoderate
Complexity3/52/54/5
Audiencedevelopergeneralops devops

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Installing via the Claude Code plugin marketplace needs no local Rust toolchain, running from source requires cargo build.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

Wtf does this do

Clactor is a plugin for Claude Code that helps find and clean up messy patterns in large codebases written in Rust, Python, or TypeScript. It works by first scanning a project with a fast, purpose built Rust program that looks for specific kinds of code problems in a consistent, repeatable way. AI agents then review each thing the scanner found and decide whether it is worth fixing. Nothing gets changed automatically: a person has to approve each suggestion first. Only after approval does a separate AI agent make the actual code edit, then re-run the project's build, lint, and test commands to make sure the change did not break anything. The tool offers two main checks. The first, called dedup, looks for duplicated or copy-pasted code, including cases where the copies have since drifted apart, for example two pieces of code that were once identical but were only updated in one place, which can hide real bugs. It compares the structure of functions rather than just their exact text, so it can catch duplicates even after renaming or reformatting. The second check, called shape, looks for functions whose parameters are messy, either because they should be grouped into a single data structure that already exists, or because the same set of unrelated parameters keeps showing up across many functions and would be clearer as a new structure. Clactor understands the module boundaries of each supported language, such as recognizing a Rust project by its Cargo.toml file or a JavaScript project by its package.json file, and it can be installed directly as a Claude Code plugin without needing to have Rust installed, since it downloads a ready built version of the scanner. It can also be built and run locally from source for those who prefer that. A configuration file in the target project controls which folders to scan, which to skip, and which commands to run to verify a fix. The project is released under the MIT license.

Yoink these prompts

Prompt 1
Explain the difference between clactor's dedup and shape checks.
Prompt 2
Walk me through installing clactor as a Claude Code plugin and running it on my repo.
Prompt 3
Show me how to set up a clactor.toml config file for my project.
Prompt 4
Help me understand what a DIVERGED verdict means in clactor's dedup results.

Frequently asked questions

wtf is clactor?

A Claude Code plugin that scans Rust, Python, and TypeScript codebases for duplicated code and messy function signatures, then lets AI agents fix approved issues.

What language is clactor written in?

Mainly Rust. The stack also includes Rust, Python, TypeScript.

What license does clactor use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is clactor to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is clactor for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.