Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Deckard

github.com

  • Free plan
  • Windows
  • macOS
  • Linux
  • API
  • Self-hosted
7.4 Club score Visit github.com

What Deckard is

Deckard is an open-source tool for finding code clones and reporting bugs related to those clones. It builds vectors from parse trees and clusters them to identify similar code, using an abstract syntax tree approach. The documented syntax support covers C, Java 7, PHP 5, and Solidity. Shell scripts run batch workflows for clone detection, vector generation, and vector clustering, and can create vectors for selected portions of a source file. Clone detection components can run in parallel, with the maximum process count set in the configuration file. Clone and bug reports can be converted into HTML for browser inspection. Code interfaces provide programmatic access to clone subtrees, vectors, parse trees, and reports. Bug detection exists but is not enabled by default in batch clone detection. Deckard supports Linux, macOS, Windows, API use, and self-hosting.

Who it suits

Deckard suits developers and analysts who point it at application source code and configure languages and paths. It is also useful for programmable, self-hosted clone analysis.

Good to know, and what to watch

  • Open-source under a three-clause BSD license
  • Supports four documented programming languages
  • Parallel processing is configurable
  • Reports can become browser-viewable HTML
  • Programmatic interfaces expose clone data
  • Bug detection is disabled by default in batch mode
  • Windows Vista and 7 may block executables
  • No CI integration is listed
  • No IDE integration is listed

The verdict

Deckard offers configurable, script-driven clone detection with parallel processing and programmable report access. Users should account for its batch workflow, default bug-detection setting, and documented Windows executable warning.

What the maker publishes

Analysis
The README describes semantic clone analysis as a use of Deckard. source
Approach
Deckard uses parse trees, vector generation, and vector clustering for clone detection. source
Batch processing
The README provides scripts for batch-mode clone detection, vector generation, and vector clustering. source
Bug detection
Clone-related bug detection is available but is not enabled by default in batch clone detection. source
Detection method
It generates vectors from parse trees and clusters them to detect code clones. source
Installation
The README instructs users to build Deckard with a shell script in its src/main directory. source
Integration
The README describes a programmable interface for retrieving vectors and parse trees from clone reports. source
Intended users
The documented workflow is for users who point Deckard at application source code and configure the programming language and paths. source
Languages
The release notes describe support for C, Java 7, PHP 5, and Solidity syntax. source
License
The repository README identifies the license as a three-clause BSD license. source
License
The repository license permits source and binary redistribution subject to its stated conditions and disclaims warranties. source
Maintainer
The GitHub account associated with the repository identifies its user as Lingxiao Jiang and lists Singapore Management University and Singapore. source
Parallel processing
Clone detection components can run in parallel, with the maximum process count configured in the config file. source
Performance
Version 2.0 supports parallel execution, with the maximum process count set through the MAX_PROCS configuration value. source
Platforms
Installation instructions use bash or Cygwin; the release notes mention Mac OS compatibility, and the README notes Cygwin can run tens of times slower than Linux. source
Programmability
The README describes retrieving clone subtrees, vectors, and clone reports programmatically through Deckard’s code interfaces. source
Purpose
Deckard is a tree-based code clone detection tool that can also report clone-related bugs. source
Reports
The tool can convert clone or bug reports into HTML for inspection in a browser. source
Usage
Deckard runs through shell scripts in batch mode and can generate vectors for selected portions of a source file. source
Windows limitation
The README warns that Windows Vista and 7 may block compiled executables because of UAC false alarms. source

Checked against the maker's pages on 7 Oct 2026.