Scan your whole stack
Are you using codefactory-cli?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.20.2
codefactory-cli was last scanned on 26 Nov 2026 at version 0.20.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.20.2 LATEST | 26 Nov 2026 | No rules fired |
| 0.20.1 | 26 Nov 2026 | No rules fired |
Findings for v0.20.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.20.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
See a codebase as a factory floor, find what's wrong with it, and turn that into work.
codefactory reads a repository without running it, builds a map of every file, function and call, and checks that map for copied code, database calls inside loops, dead code, import loops and dozens of security, reliability and delivery problems. It shows the result as an interactive floor plan, writes a technical review, ranks the fixes, and hands each one to you, or to an AI coding agent, as a ready-made task.
It works on Python, TypeScript/JavaScript, Go, Java, Kotlin, Swift, Rust, C/C++, C#, Ruby, PHP and more, runs entirely on your machine, and needs no account, server or API key.
pip's own source (150 files), zoomed out: one hall per area of the code, one conveyor per pair of areas, labelled with the number of calls it carries. Dashed orange conveyors run backwards, from a lower layer up into a higher one.
pip install "codefactory-cli[languages]"
cd path/to/your/repo
codefactory review -o review.md # a technical review of the repository (--online: also vulnerable dependencies)
codefactory view # the interactive map, in your browser
codefactory plan # what to fix first, ranked; then: codefactory prompt 1
codefactory profile # what kind of project it thinks this is (findings are ranked for it)
codefactory hotspots # where change happens: complex code that keeps changing
codefactory-cli on PyPI (codefactory there is an unrelated project); the command is
codefactory. Installed from GitHub before? codefactory update moves you over.py -m pip if pip isn't found.
On a Mac, brew install pipx and then pipx install "codefactory-cli[languages]" (Homebrew's Python refuses a
plain pip install, and the built-in python3 is too old).npm install in the project first, because codefactory uses the project's
own TypeScript compiler (needs Node.js). Without it, those files are still analyzed, less
precisely.[languages] adds the tree-sitter language pack for everything beyond Python and TypeScript. Leave it out for
a dependency-free install.codefactory update.Map. Every file is a machine, every call between files a belt, every layer a zone. Zoom out for the halls and how they depend on each other; zoom in for files and functions; click a function to light up everything it calls.
Find. Each finding points at a file:line and says what to do about it:
| Area | Examples |
|---|---|
| Performance | Database or network calls once per item (N+1), searches inside loops over loaded data, writes outside a transaction |
| Duplication | Identical and near-identical functions, merged into one task per group |
| Structure | Import loops, layer-rule breaks, unused code, functions nobody tests, very long or complex functions |
| Data flow | Python: request values traced variable by variable, through helper functions, into SQL, shell commands, eval, file paths, outgoing URLs, redirects and templates, with sanitizers (int(), bound SQL parameters, shlex.quote…) respected |
| Privacy | Personal data (contact details, birth dates, location, health readings, device ids) in logs, analytics and unencrypted storage; iOS permissions without usage descriptions; required-reason APIs without a privacy manifest (App Store rejections) |
| Security | Every HTTP endpoint and whether it checks who's asking; endpoints that change data without an auth check; risky lines (SQL built from strings, shell, eval, raw HTML) ranked by whether a request reaches them, with the route → … → line chain; leaked credentials, including ones deleted but still in git history; debug mode, CORS *, insecure cookies, unverified JWTs, weak crypto and random numbers; unsafe CI workflows, root containers, secrets in images; known-vulnerable dependencies (--online) |
| Reliability | Swallowed errors, network calls without a timeout, missing error boundaries |
| Apple platforms | Swift: disk or database work on the main thread, retain cycles in stored closures, try!/as!; entitlements that weaken code signing |
| Shell, Make, YAML, HTML, Pkl | Credentials in config files (quoted or not); curl … \| sh, rm -rf "$DIR/" with an empty variable, eval of a variable (scripts and Makefile recipes); docker-compose and Kubernetes: privileged or host-network containers, databases published on every interface, committed passwords and Secrets; HTML: scripts and forms over plain HTTP, CDN scripts without integrity hashes; plain-HTTP URLs in Pkl, TOML and Terraform |
| Patches | codefactory diff --patch pr.diff checks the lines a unified diff adds, with no repository: a downloaded pull request, a mailing-list patch, an AI agent's proposed change |
| Delivery | No CI or CI without tests, floating dependency versions, no lockfile, no runtime pin |
Assess. Before judging, it works out what the project is: a local-first mobile app, a deployed API with accounts, a LAN tool, a command-line tool or a library; where it runs, who uses it, and whether it holds health, financial or other sensitive data. Findings are ranked for that, each change with its reason: SQL built from strings matters less in a single-user offline app; an untested write matters more when the phone holds the only copy. Git history adds the other half: hotspots (complex code that changes every week, where debt costs the most), files that always change together with nothing linking them, and code only one person knows.
Review. codefactory review writes a technical review in the shape a principal engineer would: summary,
project profile, system map, where change happens, findings by severity with evidence, what's working, gaps and
open questions. No AI needed.
Fix. codefactory plan turns findings into ranked tasks with steps and the tests to run. Each task becomes a
self-contained prompt for Claude Code, and a baseline keeps new problems out in CI.
| Duplication lens. Files holding copies of each other's code, joined by arcs labelled with their similarity. | Trace. Everything a function eventually calls, by depth, with the total amount of code involved. |
| Language | How calls are resolved | Notes |
|---|---|---|
| Python | Precisely: imports, self/cls, classes, re-exports, dispatch tables, getattr |
Standard library only |
| TypeScript, JavaScript | Precisely: the project's own TypeScript type checker (path aliases, hooks, JSX, lazy require) |
Needs Node.js and npm install |
| Go, Java, Kotlin, Swift, Rust, C, C++, C#, Ruby, PHP, Scala, Dart, Lua, Elixir and more | By name, plus declared types, through tree-sitter | [languages] install; grammars download once, then work offline |
Shell, Makefiles, YAML (docker-compose, Kubernetes, GitHub Actions), HTML, Pkl, TOML, Terraform, .diff/.patch |
Not a call graph: line checks for credentials, unsafe commands and configuration | No install needed |
For the by-name languages, call, impact and unused-code findings are leads to confirm, and the review says so.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.