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

CloneWorks

github.com

  • Free plan
  • Windows
  • macOS
  • Linux
7.4 Club score Visit github.com

What CloneWorks is

CloneWorks prepares source code as fragments and detects clones among those fragments. Its input builder supports Java, C, C++, C# and Python, with extraction at block, function or file granularity. The detector uses tokens and accepts a minimum similarity threshold from 0.0 to 1.0; the repository describes a test run for Type-3 clone detection. A partitioned partial-index mode is available when an index exceeds available memory, though the partition size must be determined experimentally. CloneWorks runs on Linux, macOS and Windows and requires FreeTXL 10.6 or later, gcc, make and Java 7 or later. The input builder is slower on Cygwin because process creation is slower on Windows. CloneWorks is free, but use requires acknowledgement, and its license requires copies, modifications and derivatives to remain under that license and be distributed without charge. The license also provides the software as-is without warranty. The maintainer invites questions and bug reports by email and offers help with using the tool.

Who it suits

CloneWorks may suit developers or researchers who need to prepare source code and locate code clones. Users should be comfortable meeting its listed tool requirements and license terms.

Good to know, and what to watch

  • Supports five listed programming languages.
  • Extracts code at block, function or file granularity.
  • Similarity threshold can range from 0.0 to 1.0.
  • Partitioned indexing is available for oversized indexes.
  • Requires FreeTXL, gcc, make and Java 7 or later.
  • Input building is slower on Cygwin.
  • Partition size must be determined experimentally.
  • License requires free distribution of derivatives.

CloneWorks

Free

Free plan

Getting started

  1. Open the CloneWorks GitHub repository
  2. Install FreeTXL 10.6 or later, gcc, make, and Java 7 or later
  3. Build or run CloneWorks on Linux, macOS, or Windows
  4. Select supported input languages and extraction granularity
  5. Set the detector's minimum similarity threshold
  6. Use partitioned partial-index mode when the index exceeds available memory

Limits to check

CloneWorks has no charge, but use requires acknowledgement and redistributed copies or derivatives must remain under its license and be free of charge. Partitioned indexing is available for large inputs, though its partition size must be determined experimentally.

The Club's review

CloneWorks is a self-hosted tool for preparing source code and finding similar fragments across repositories. It suits developers and researchers who want control over extraction and similarity settings. Its technical prerequisites and free-only distribution terms make it a poor fit for teams that need a turnkey or commercially redistributable product.

Overview

CloneWorks uses token-based detection to find code clones in prepared fragments. The input builder supports Java, C, C++, C#, and Python, and can extract blocks, functions, or whole files. A documented test run performs Type-3 clone detection, making the tool relevant when the search includes modified as well as identical code.

The detector accepts a minimum similarity threshold from 0.0 to 1.0. This gives users a direct control over how closely fragments must match, but selecting a useful threshold calls for judgment about the codebase and the results worth reviewing.

Key features

Extraction and comparison controls

Block, function, and file granularity let users set the unit of code being compared to match their review needs. That flexibility is useful for investigations at different scales; the stated input languages also mean projects written in other languages fall outside the builder’s supported set.

Large-input handling

Partitioned partial-index mode is available when an index exceeds available memory. It provides an option for constrained machines, but the partition size must be determined experimentally, so large-input setup may take iteration rather than following a fixed recipe.

Pricing

CloneWorks costs free. There are no paid tiers or seat quotas described. Use requires acknowledgement, and no charge may be made. Redistribution and derivatives must remain under the same license and be distributed free of charge, a significant restriction for organizations that package or sell software incorporating it.

The license permits copying, modification, and redistribution subject to those terms, but provides the software as-is without warranty, including implied warranties of merchantability or fitness for a particular purpose. Questions and bug reports can be sent to Jeffrey Svajlenko by email, and he invites users to ask for help with using CloneWorks.

Platforms

CloneWorks supports Linux, macOS, and Windows. It requires FreeTXL 10.6 or later, gcc, make, and Java 7 or later, so users must be prepared to assemble and maintain that toolchain. On Windows, the input builder runs more slowly under Cygwin because process creation is slower on that platform; teams prioritizing Windows throughput should weigh that limitation.

Who it's for

CloneWorks is best suited to technically equipped developers or researchers who need repository-level clone detection, want to choose extraction granularity, and can work within the free-distribution license. It is less suitable for teams seeking broad language coverage, a managed service, or commercial redistribution without licensing constraints.

Pros and cons

  • Pros: Configurable block, function, or file extraction helps match comparisons to the review task.
  • Pros: The similarity threshold spans 0.0 to 1.0, giving users control over the minimum match strength.
  • Pros: Partitioned partial-index mode offers a path when an index exceeds available memory.
  • Cons: FreeTXL, gcc, make, and Java 7 or later make setup more involved than a standalone download.
  • Cons: Cygwin’s slower process creation makes the Windows input builder slower.
  • Cons: Free-of-charge redistribution and derivative-work terms rule it out for some commercial distribution models.

Alternatives

For a different free code-clone detector, compare Simian Similarity Analyzer, available on Linux, macOS, and Windows under the Apache License 2.0. dcd is another free option for Linux and macOS under the AGPL-3.0 license, with priority direct email support offered as a separate plan at custom pricing. jscpd is a free alternative with Linux, macOS, Windows, API, and self-hosted platform availability.

Duplo is free software under GNU GPL v2 or later and provides prebuilt binaries for Alpine Linux, macOS, and Windows. PMD is a free BSD-style downloadable static code analyzer. CCFinderSW is a free MIT-licensed Windows option that requires Java Runtime Environment 8 or later. CodeMatch may suit Windows users considering a paid product; it has a free plan and free trial. For a wider comparison, see the Code Clone Detection Tools list.

Verdict

Choose CloneWorks if you need self-hosted, token-based repository clone detection with configurable extraction and can meet its build requirements and license terms. Its controls and memory-conscious mode are useful strengths, but the setup burden, Cygwin slowdown, and free-only redistribution conditions make another tool the better choice for teams seeking a turnkey workflow or commercial distribution flexibility.

The verdict

CloneWorks offers configurable code extraction and token-based clone detection across three operating systems. Its dependencies, Cygwin slowdown and free-distribution license terms are important considerations.

Questions people ask

Is CloneWorks free?

Yes. The CloneWorks plan is listed as free.

Which operating systems does it support?

It runs on Linux, macOS, and Windows.

Which languages can it process?

The input builder supports Java, C, C++, C#, and Python.

What clone detection method does it use?

CloneWorks uses token-based detection. Its repository describes a Type-3 clone-detection test run.

What does the license require?

Use requires acknowledgement. Copies, modifications, and derivatives must remain under the license and be distributed without charge.

What dependencies are required?

CloneWorks requires FreeTXL 10.6 or later, gcc, make, and Java 7 or later.

What the maker publishes

Clone types
The repository describes a test run that performs Type-3 clone detection. source
Granularity
The input builder supports block, function, and file granularity for code extraction. source
Languages
The input builder lists Java, C, C++, C#, and Python as supported input languages. source
Large inputs
A partitioned partial-index mode is available when the index exceeds available memory, and the README says its partition size must be determined experimentally. source
License terms
The license permits copying, modification, and redistribution of CloneWorks and derivatives if they remain under the license and are distributed without charge. source
Platforms
The README says CloneWorks can be used on Linux and other Unix-like systems, was tested on Ubuntu and OS X, and should work on Cygwin. source
Purpose
CloneWorks prepares source code and detects code clones in the prepared fragments. source
Similarity threshold
The clone detector accepts a minimum similarity threshold from 0.0 to 1.0. source
Support
Jeffrey Svajlenko invites questions and bug reports by email and says he is happy to assist with using CloneWorks. source
System requirements
CloneWorks requires FreeTXL 10.6 or later, gcc, make, and Java 7 or later. source
Warranty
The license provides CloneWorks as-is without warranty, including implied warranties of merchantability or fitness for a particular purpose. source
Windows limitation
The README says the input builder is slower on Cygwin because process creation is slower on Windows. source

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