https://github.com/quodeq/quodeq
AI-powered code quality and security scanner. Open source, MIT, runs locally. <๐งญ>
https://github.com/quodeq/quodeq
ai-tools cli code-analysis code-quality cwe devtools iso-25010 llm open-source python quality-assurance security static-analysis vulnerability-scanner
Last synced: about 1 month ago
JSON representation
AI-powered code quality and security scanner. Open source, MIT, runs locally. <๐งญ>
- Host: GitHub
- URL: https://github.com/quodeq/quodeq
- Owner: quodeq
- License: mit
- Created: 2026-02-25T17:32:28.000Z (4 months ago)
- Default Branch: develop
- Last Pushed: 2026-05-01T22:32:00.000Z (about 2 months ago)
- Last Synced: 2026-05-01T23:11:42.032Z (about 2 months ago)
- Topics: ai-tools, cli, code-analysis, code-quality, cwe, devtools, iso-25010, llm, open-source, python, quality-assurance, security, static-analysis, vulnerability-scanner
- Language: Python
- Homepage: https://quodeq.ai
- Size: 10.2 MB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
AI-powered code quality and security scanner
v1.1.2
Watch the 2-min demo ยท Website ยท Blog ยท Releases
---
AI models can now autonomously find and exploit zero-day vulnerabilities across operating systems, browsers, and web applications. Thousands of previously unknown flaws uncovered in weeks, not years.
The code you ship today will be read by models that can spot what humans miss. But the tools to prepare for this are locked behind enterprise contracts and partner programs.
Quodeq exists to change that.
**Open source. MIT license. Runs locally. No telemetry. No account. No servers.**
Scans any codebase with AI across six quality dimensions from [ISO 25010](https://www.iso.org/standard/35733.html):
**Security**, **Reliability**, **Maintainability**, **Performance**, **Flexibility**, and **Usability**.
Every finding maps to a [CWE](https://cwe.mitre.org/) identifier. You get grades, violations with line numbers, and a fix plan. Cloud providers (Claude, Gemini, Codex) for speed. Local models via [Ollama](https://ollama.com) for privacy.
---
## What It Finds
```
CRITICAL src/db.py:15 SQL injection via string concatenation CWE-89
query = f"SELECT * FROM users WHERE id = {user_id}"
MAJOR src/auth.py:42 Hardcoded credentials in source code CWE-798
credentials = {"user": "admin", "pass": "secret123"}
MINOR src/utils.py:23 Bare except clause hides errors CWE-396
except: pass
COMPLIANT src/api.py:88 Parameterized query prevents injection CWE-89
cursor.execute("SELECT * FROM users WHERE id = ?", (user_id,))
```
Each finding includes a reason, the offending code, and a fix plan. Results are stored as JSON on your machine.
---
## Getting Started
### 1. Prerequisites
| OS | Command |
|---|---|
| **macOS** | `brew install python node pipx` |
| **Windows** _(experimental)_ | `winget install Python.Python.3.13 OpenJS.NodeJS` then `python -m pip install --user pipx && python -m pipx ensurepath` |
| **Debian / Ubuntu** | `sudo apt install -y python3.12 python3-pip pipx nodejs npm` |
| **Fedora / RHEL** | `sudo dnf install -y python3.12 python3-pip pipx nodejs npm` |
| **Arch** | `sudo pacman -S python python-pipx nodejs npm` |
> **Debian/Ubuntu heads-up:** `nodejs` and `npm` are separate packages. `apt install nodejs` alone is not enough. If you also use the native desktop window (not `--browser`), you'll need `sudo apt install -y python3-gi gir1.2-webkit2-4.1` too โ otherwise quodeq will auto-fall-back to opening the dashboard in your default browser.
> **Windows heads-up:** Windows is supported on a best-effort basis. The full test suite runs green on `windows-latest` in CI, but we don't have a Windows machine to smoke-test the dashboard or end-to-end runs against โ so please [open an issue](https://github.com/quodeq/quodeq/issues) if anything misbehaves.
Minimum versions: Python 3.12+, Node.js 18+, npm 9+.
### 2. Install quodeq
```bash
pipx install quodeq # isolated, recommended
# or: pip install quodeq
```
### 3. Pick an AI provider
Quodeq needs an LLM to do the evaluation. You have two options:
**Local, free, private** โ [Ollama](https://ollama.com/download) with Gemma 4:
```bash
# install ollama from https://ollama.com/download, then:
ollama pull gemma4-26b-32k
ollama serve # runs in the background
```
**Cloud, faster** โ one of the agentic CLIs (at least one):
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview) โ `npm install -g @anthropic-ai/claude-code`
- [Codex CLI](https://developers.openai.com/codex/quickstart) โ `npm install -g @openai/codex`
- [Gemini CLI](https://geminicli.com/docs/get-started/installation/) โ `npm install -g @anthropic-ai/gemini-cli`
### 4. Launch the dashboard
```bash
quodeq
```
The dashboard opens at `http://127.0.0.1:7863`. Use **Settings โ AI Provider** to select the one you installed in step 3, then **Evaluate** to point at a project and start your first scan.
If the native window doesn't show up (common on Linux without GTK), run `quodeq --browser` instead.
### macOS App (beta)
Download the `.dmg` from [Releases](https://github.com/quodeq/quodeq/releases/latest), open it, and drag `Quodeq.app` to Applications. On first launch:
```bash
xattr -cr /Applications/Quodeq.app # Required for unsigned apps
```
Or right-click the app, select Open, then click Open in the dialog.
---
## Dashboard
- **Grades and scores** per dimension with A-F letter grades, numeric scores, and trends across runs
- **Violations explorer** to drill into findings by file, principle, or CWE classification
- **Code map** showing a visual heatmap of where issues concentrate in your codebase
- **Custom standards** to create your own evaluation dimensions or import from the library
Click any dimension, file, or principle to explore the details. Dismiss false positives directly from the UI.
Running `quodeq` is equivalent to `quodeq dashboard`. Both open the same UI.
### CLI
```bash
quodeq evaluate /path/to/project
quodeq evaluate /path/to/project --scope src/api # Scoped to a subdirectory
quodeq evaluate /path/to/project -d security # Single dimension
```
---
## AI Providers
Choose what fits your workflow. Configure in **Settings** from the dashboard.
| Provider | Type | Getting started |
|---|---|---|
| [Ollama](https://ollama.com/download) | Local | Free, private, code never leaves your machine |
| [llama.cpp](https://github.com/ggml-org/llama.cpp) | Local | Run any GGUF directly. Supports speculative decoding (MTP) via a draft model |
| [Claude Code](https://code.claude.com/docs/en/quickstart) | Cloud | Best balance of speed, quality, and cost |
| [Codex CLI](https://developers.openai.com/codex/quickstart) | Cloud | OpenAI models |
| [Gemini CLI](https://geminicli.com/docs/get-started/installation/) | Cloud | Google models |
> For local analysis we recommend [Gemma 4](https://deepmind.google/models/gemma/gemma-4/) ([`gemma4:26b`](https://ollama.com/library/gemma4:26b)). Reducing the context window to 32k still gives good results and allows running multiple subagents in parallel.
### Using llama.cpp
llama.cpp is one process per model, fixed at launch. Start `llama-server` yourself, then point Quodeq at it from **Settings โ AI Provider โ llama.cpp**.
```bash
# Quodeq creates ~/.quodeq/logs/ on first launch โ just redirect there
# and the CONSOLE button picks it up automatically.
llama-server -m path/to/target.gguf --port 8080 \
> ~/.quodeq/logs/llama-server.log 2>&1
# Speculative decoding (MTP), pair a target with a smaller drafter
llama-server -m path/to/target.gguf -md path/to/drafter.gguf --port 8080 \
> ~/.quodeq/logs/llama-server.log 2>&1
```
Quodeq probes `http://localhost:8080` and looks for the log file at `~/.quodeq/logs/llama-server.log` (or platform-standard locations like `~/Library/Logs/llama-server.log` on macOS). Override with `LLAMACPP_LOG_FILE`. To use a different port or host, set `LLAMACPP_BASE_URL`. To switch models, stop `llama-server` and relaunch with a different `-m`.
---
## How It Works
1. **Detect** languages, frameworks, and project structure
2. **Analyze** with AI agents that read the code using read-only tools
3. **Collect** findings as structured JSONL via tool calls
4. **Score** against [ISO 25010](https://www.iso.org/standard/35733.html) principles with [CWE](https://cwe.mitre.org/) classifications
5. **Report** per-dimension grades, violations, compliance, and fix plans
Results are stored in `~/.quodeq/evaluations/` and persist across sessions. Works with any language. The AI analysis engine reads and understands code regardless of the tech stack.
Quodeq scores each principle on a 0 to 10 scale using four independent constraints. Full details in [the scoring formula documentation](src/quodeq/core/scoring/README.md).
### Standards
By default, Quodeq evaluates the six ISO 25010 dimensions. It also ships with **Clean Architecture** and **Domain-Driven Design** standards. You can create your own from the dashboard, or ask any AI to generate one as a `.json` file and import it.
---
## Development
Run from a fresh checkout:
```bash
git clone https://github.com/quodeq/quodeq.git && cd quodeq
uv sync # install Python deps into .venv/
uv run quodeq # launch the dashboard
uv run pytest # run the test suite
```
Same OS prerequisites apply as for the pipx install โ Node.js 18+ + npm for the dashboard UI, and a configured LLM provider (Ollama or Claude Code / Codex CLI / Gemini CLI) before you can actually scan anything.
If the dashboard window doesn't appear on Linux, run `uv run quodeq --browser` (the native window needs `python3-gi` + `gir1.2-webkit2-4.1`, which aren't pulled in by the pip wheel).
## Changelog
See [CHANGELOG.md](CHANGELOG.md) for release history.
## License
MIT. See [LICENSE](LICENSE).