AI Token Efficiency
When CPD output is fed to an LLM (for automated refactoring, code review, or deduplication workflows), output size directly impacts cost, latency, and context window usage. jscpd's --reporters ai flag is purpose-built for this — agents and LLM workflows should use it by default.
Compact formats designed for LLM context windows
Structured but limited coverage or verbose output
Verbose or unstructured output; not suitable for LLM context windows
Tokens/clone is not directly comparable across tools. Each tool defines "clone" differently — jscpd uses token-based code blocks, Duplo reports text matches (many false positives), Simian reports aggregate blocks, PMD CPD only processes 34 of 547 files, and Fallow only handles JS/TS. Compare within the same category for meaningful results.