Repository navigation
FAQ
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.
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.
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.
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.
code-cleaner analyze src/ --fail-on high --min-score 80analyze defaults to --fail-on none (report only). Exit codes: 0 passed, 1 gate failed, 2 usage error. See Integrations and Scoring.
--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.
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.
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.
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.
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.
Do not open a public issue. Follow SECURITY.md: email ml.innovations.research.lab@gmail.com with the subject Code Cleaner security.
Use CITATION.cff. GitHub shows a "Cite this repository" button for it.
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.
Created by ML / ML Innovations Research Lab. Korg (AI assistant, Grok Bot), contributor. · Repository · Apache License 2.0
Start here
Using Code Cleaner
Contributing