Your AI copilot writes code.
Prune keeps it clean.

Detect structural anti-patterns in TypeScript codebases.
Duplicated interfaces. God files. Dead exports. Found in seconds.

curl -fsSL https://prunecode.ai/install.sh | sh

or cargo install prune

The Problem

AI coding assistants generate code fast. Too fast. They don't see your existing abstractions, so they create new ones. Every time.

Interface Sprawl

20 variations of UserData, UserInfo, UserDTO across your codebase.

God Files

utils.ts with 50 exports because it was convenient to add "just one more function."

Dead Exports

Symbols exported but never imported. Cluttering autocomplete. Confusing new devs.

The Solution

Prune scans your codebase and finds these patterns. Run it locally. No cloud. No config needed.

$ prune

Scanning... 847 files in 3.2s

Found 23 issues:

[HIGH] God File: src/utils/helpers.ts
       47 exports, 1,200 lines

[HIGH] Interface Sprawl: UserData pattern
       5 similar types across 4 files

[MED]  Dead Export: formatCurrency
       Exported but never imported

Press 'p' for refactor plan, 'q' to quit

What Prune Detects

God Files

Files with too many exports or lines of code that should be split.

Interface Sprawl

Duplicate or near-duplicate type definitions across your codebase.

Redundant Logic

Functions with similar implementations that should be consolidated.

Barrel Bloat

index.ts files re-exporting too many modules, hurting tree-shaking.

Dead Exports

Exported symbols that are never imported anywhere.

Over-Abstraction

Wrapper functions that just call another function with no added value.

Pricing

Start with a 14-day trial. No credit card required.

Solo

$29
one-time
  • CLI tool
  • All 6 pattern detectors
  • Refactor plans
  • 1 year of updates
Buy Solo

Team

$249
per year
  • Everything in Pro
  • 5 seats included
  • CI integration
  • Shared .prunerc config
Buy Team

Need more seats or custom terms? Contact us

Try Prune in 30 seconds

curl -fsSL https://prunecode.ai/install.sh | sh && prune