Skip to content
Michael L. McKnight edited this page Dec 5, 2026 · 2 revisions

FAQ

Is Code Cleaner on PyPI?

Not yet. Installing from GitHub is the supported way. A PyPI release is on the roadmap.

pip install "git+https://github.com/ZodiacDog/Code-Cleaner@v1.4.0"

To install current main (the next release) instead, omit the @v1.4.0 tag.

What is the latest version?

The latest release is v1.4.0 (December 4, 2026). Python 3.10 or newer is required. The supported line is 1.4.x (SECURITY.md).

Current main is ahead of that tag. TypeScript, inline suppressions, [tool.code-cleaner] project config, Java taint tracking, and one-level Python inter-procedural taint are on main and ship in the next release. See Changelog.

Which languages are supported?

On main, twelve: Python, JavaScript, TypeScript, Java, C#, C++, SQL, Go, Ruby, Rust, HTML and SCRAWL. The v1.4.0 release covers eleven; TypeScript (.ts, .tsx, .mts, .cts) is on main and ships in the next release. See Languages.

Does it need the internet or an account?

No. The core runs offline, with no account and no server. The optional Fix Loop is the exception: if you use --provider openai it sends the whole file to the endpoint you configure. Use --provider mock or a local model for code you may not share.

How do I fail CI on serious findings?

code-cleaner analyze src/ --fail-on high --min-score 80

analyze defaults to --fail-on none (report only). Exit codes: 0 passed, 1 gate failed, 2 usage error. See Integrations and Scoring.

How do I turn off a noisy rule?

--disable-rule ID (repeatable) turns a rule off everywhere. Ids are listed in Rules and docs/rules.md.

On main (ships in the next release; not in v1.4.0) you can also suppress one line with # code-cleaner: ignore[rule-id] (or ignore[a, b], ignore[taint-*], or a bare ignore), and you can put project defaults in [tool.code-cleaner] in pyproject.toml. --no-inline-suppressions and --no-config turn those off. Details: Getting Started and Rules.

Why did it flag an import as hallucinated?

ai-hallucinated-import decides from installed packages and the project's dependency files. Run it in the project's environment, or pass --project-root / --known-module (known_modules), to avoid false reports. On main, JavaScript and TypeScript also treat tsconfig/jsconfig paths aliases and baseUrl folders as project modules.

Does taint tracking follow data into helper functions? What about Java?

In v1.4.0, Python taint tracking stays inside one function, and there is no Java taint tracking.

On current main (ships in the next release), Python taint tracking follows calls one level deep within the same file, and Java has taint tracking (servlet / Spring / JAX-RS sources to JDBC, Runtime.exec, and related sinks). Deeper chains and cross-file calls stay out of reach, and the other languages remain intra-procedural. There is still no taint tracking for HTML or SQL. See Taint Tracking.

What is SCRAWL, and can Code Cleaner compile it?

SCRAWL is ML Innovations Research Lab's instruction set for agent-to-agent messages, created to combat latency (SYNAPSE frames 75–85% smaller than equivalent JSON in SCRAWL's measurements). Code Cleaner v1.4.0 can analyze, check and compile ROSETTA text (.scrawl / .rosetta) with a built-in compiler. Running a program needs the separate rosetta tool. See SCRAWL.

My first pull request's CI says "action required".

If you have not had a pull request merged in this repository before, GitHub holds your workflow runs until a maintainer clicks Approve and run workflows. That is expected. See Contributing.

How do I report a security problem in Code Cleaner itself?

Do not open a public issue. Follow SECURITY.md: email ml.innovations.research.lab@gmail.com with the subject Code Cleaner security.

How do I cite Code Cleaner?

Use CITATION.cff. GitHub shows a "Cite this repository" button for it.

Who created it, and what is the license?

Michael L. McKnight / ML Innovations Research Lab created Code Cleaner and SCRAWL. Korg (AI assistant, Grok Bot) is a contributor. Licensed under the Apache License 2.0. See AUTHORS.md.

Clone this wiki locally