gitwtfhub

wtf is charon?

aloim/charon — explained in plain English

Analysis updated 2026-05-18

2Audience · developerComplexity · 2/5LicenseSetup · easy

TL;DR

A Claude Code prompt that audits a repo for dead and duplicate code, then removes confirmed dead code via reviewed, build-verified branches.

Mindmap

mindmap
  root((Charon))
    What it does
      Finds dead code
      Detects duplicates
      Reviewed removal branches
    Tech stack
      Claude Code prompt
      Language detectors
      jscpd clone detection
    Use cases
      Pre-refactor cleanup
      Dead code trend tracking
      Works with Phanes
    Audience
      Developers
      AI coding agents

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 dead code and unused dependencies before a large refactor.

REASON 2

Detect duplicated logic clusters across a codebase for cleanup.

REASON 3

Automatically remove confirmed dead code on a reviewed, verified branch.

REASON 4

Track dead-code trends over time across repeated audits.

What's in the stack?

Claude Codeknipvulturejscpd

How it stacks up

aloim/charon0-bingwu-0/live-interpreter010zx00x1/faresnipe
Stars222
LanguagePythonPython
Setup difficultyeasymoderateeasy
Complexity2/52/52/5
Audiencedevelopergeneralgeneral

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

How do you spin it up?

Difficulty · easy Time to first run · 5min

Requires Claude Code installed, runs language-specific detector tools it selects automatically per project.

Creative Commons Attribution-NonCommercial: free for noncommercial use and adaptation with credit, commercial use requires contacting the author.

Wtf does this do

Charon is a single prompt file for Claude Code that audits a codebase for dead code, unused files, unused dependencies, and duplicated logic, then optionally removes what it confirms is truly dead. It is named after the mythological ferryman who only carries the already dead, and the tool takes that idea seriously: it only acts on findings it can prove, only after an independent review step, and only on a separate branch that you choose to merge yourself. Running the command asks you to pick one of two modes: one where confirmed clean removals are executed automatically after the audit, and one where the process stops at a written report and only acts on the specific findings you approve. Before removing anything, Charon studies the project to understand its languages, build system, and public interfaces, since a library's exported functions count as alive even if nothing inside the project calls them directly. It then runs established, language-specific dead-code and duplicate-code detection tools appropriate to the codebase, and organizes what they find into removal candidates, findings needing human judgment such as code reached through reflection or plugin systems, and clusters of duplicated code. Every accepted removal happens as its own change on a dedicated cleanup branch, checked over by a separate reviewer step whose only job is to argue the code might still be alive, and verified against your build and tests before being kept, anything that fails this gets reverted automatically. The tool never merges its own branch, never resolves judgment-required findings without you, and leaves your repository completely untouched if you decide not to act on the report at all. It works standalone in any repository, but was designed to pair with a companion project called Phanes, feeding its findings and cleanup work into that project's existing review and documentation systems when both are present. The project is released under a Creative Commons Attribution-NonCommercial license, so noncommercial use, sharing, and adaptation with credit is permitted, but commercial use requires contacting the author separately.

Yoink these prompts

Prompt 1
Run /charon in approve-first mode and explain the removal candidates.
Prompt 2
Help me interpret Charon's judgment-required findings in this report.
Prompt 3
Walk me through installing Charon's command file for Claude Code.
Prompt 4
Show me how Charon's clone cluster report suggests a canonical copy.

Frequently asked questions

wtf is charon?

A Claude Code prompt that audits a repo for dead and duplicate code, then removes confirmed dead code via reviewed, build-verified branches.

What license does charon use?

Creative Commons Attribution-NonCommercial: free for noncommercial use and adaptation with credit, commercial use requires contacting the author.

How hard is charon to set up?

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

Who is charon for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

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