Back to browse
GitHub Repository

A Claude Code plugin for detecting and eliminating code duplication using jscpd

7 starsJavaScript

DRYwall – Claude Code plugin to to deduplicate code with jscpd

by nikhaldi·Feb 25, 2026·2 points·0 comments

AI Analysis

●●SolidSolve My ProblemNiche Gem

Pragmatic fix for Claude Code's duplication bias using deterministic tooling instead of prompting.

Strengths
  • jscpd (deterministic AST-based clone detection) is cheaper and more reliable than asking LLM to find duplication
  • Integrates directly into Claude Code workflow—no external tools, no new contexts to learn
  • Configuration via `.drywallrc.json` respects gitignore and lets teams set minTokens/minLines thresholds
Weaknesses
  • Audience limited to Claude Code users—no Cursor, Copilot, or VSCode integration
  • Requires Node.js; only solves duplication, doesn't prevent agentic duplication before it's written
Target Audience

Teams using Claude Code for development, codebases with creeping duplication from agentic code generation

Similar To

ESLint + prettier (code quality automation) · SonarQube duplication detection

Post Description

Motivated by the observation that coding agents such as Claude Code have a bias towards producing new code over reusing existing code or extracting common code. The resulting creeping code duplication weighs down AI-native codebases. The plugin makes ongoing deduplication quick and easy from within Claude Code.

Because DRYwall detects code duplication using a deterministic toolchain (the awesome jscpd), it's significantly more effective and cheaper in tokens than just telling an agent to find and refactor duplication.

Similar Projects

Developer Tools●●Solid

Fallow – Find unused code, duplication, and complexity in TS/JS (Rust)

Sub-second dead code detection in Rust when ESLint and TypeScript already exist.

SlickSolve My Problem
bartwaardenburg
422mo ago