Skip to content

About

Your code has problems. Blunt Code names them. — Local-first code quality & security for Windows: Ruff · Biome · Semgrep · SonarQube · secrets & TODO in one loopback app. No cloud, no account, no telemetry.

Topics

Resources

Contributing

Security policy

Accessibility

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Blunt Code mark

Blunt Code

Your code has problems. Blunt Code names them.
Local-first code quality & security scanning for Windows — no cloud, no account, no telemetry.

release platform privacy license ui

Website · ▶ Video · Install · Quick start · Features · CLI · Analyzers · Privacy · CI guide · Changelog

Blunt Code market video — the 35-second tour
▶ Watch the 35-second tour — scan to graded risk board, all on your machine. Direct link


🔍 What is this?

  • Twelve analyzers, one app. Ruff, Biome, Gitleaks, Semgrep, SonarQube, OSV Scanner (deep), Trivy (deep), Checkov (deep), the Pentest & Vulnerability Suite (static OWASP patterns + a live DAST probe on pentest scans given --target), plus built-in secrets, TODO/FIXME, and license detectors — one installer, zero PATH fights, no global Python/Java/Node.
  • Everything stays on your machine. Loopback-only server (127.0.0.1), findings in local SQLite, reports on disk. Offline after the first tool download.
  • Built for real workflows. Suppress at the source line, gate CI on --fail-on high+, diff against a baseline, export SARIF — then get back to writing code.
flowchart LR
    A["Your folder"] --> B["bluntcode.exe<br>loopback 127.0.0.1"]
    B --> C["Analyzers"]
    C --> D1["Ruff"]
    C --> D2["Biome"]
    C --> D3["Semgrep"]
    C --> D4["SonarQube"]
    C --> D5["Gitleaks"]
    C --> D6["Secrets"]
    C --> D7["OSV Scanner"]
    C --> D8["Trivy"]
    C --> D9["Checkov"]
    C --> D10["License"]
    C --> D11["TODO"]
    D1 --> E["Dedup + fingerprint"]
    D2 --> E
    D3 --> E
    D4 --> E
    D5 --> E
    D6 --> E
    D7 --> E
    D8 --> E
    D9 --> E
    D10 --> E
    D11 --> E
    E --> F[("SQLite<br>local db")]
    F --> G["Reports<br>MD · HTML · SARIF · CSV · JSON"]
    F --> H["CI gate<br>exit 0 · 1 · 2 · 3 · 4 · 130"]
Loading

🚀 Install

One-line installer (recommended)

PowerShell (Win+R → powershell):

irm https://github.com/sanketpatel32/Blunt-code/releases/latest/download/install-latest.ps1 | iex

Cmd (Win+R → cmd):

curl -fsSL -o "%TEMP%\install-bluntcode.cmd" https://github.com/sanketpatel32/Blunt-code/releases/latest/download/install.cmd && "%TEMP%\install-bluntcode.cmd"

Installs to %LOCALAPPDATA%\Programs\BluntCode, verifies SHA-256, creates Start Menu shortcut, launches app. No admin.

Options install-latest.ps1 -Version 0.38.0 -Silent -DesktopShortcut -WhatIf -WaitForCloseSeconds 30

Portable ZIP

  1. Download BluntCode-0.38.0-windows-amd64.zip + .sha256 from Releases
  2. Verify & run:
$pkg='.\BluntCode-0.38.0-windows-amd64.zip'
if((Get-FileHash $pkg -Algorithm SHA256).Hash -ne (Get-Content "$pkg.sha256").Split()[0]){throw 'checksum mismatch'}
Expand-Archive $pkg -DestinationPath .\BluntCode -Force; .\BluntCode\BluntCode*\bluntcode.exe

irm | iex never saves a .ps1, so ExecutionPolicy doesn't apply. For a saved uninstall.ps1: powershell -ExecutionPolicy Bypass -File .\uninstall.ps1.

From source — Go 1.26+ and Node 18+:

git clone https://github.com/sanketpatel32/Blunt-code.git; cd Blunt-code
.\scripts\build.ps1; .\bluntcode.exe

⚡ Quick start

  1. Launch from Start Menu or bluntcode.exe → opens http://127.0.0.1:<port> automatically
  2. Add workspace → pick a project folder
  3. Files & paths (optional) → exclude dist/, vendor/, or add .bluntcodeignore to commit excludes
  4. Run scan → first run downloads tools, next runs instant; progress bar finished/total + live analyzer pills
  5. Inspect → click a finding → source preview with highlight, Copy location/fingerprint
  6. Export → Markdown / HTML / SARIF / CSV (filters honoured) / JSON — or Scan history → Prune history --keep 20

Keyboard: g h/w/t/s/a navigate · n add workspace · / search · ? help · Ctrl+K command palette.


✨ Features

Private by design Loopback server, zero telemetry (bundled analyzers' telemetry off too), update check opt-in, SQLite at %LOCALAPPDATA%\BluntCode\bluntcode.db
Batteries included Ruff (Python), Biome (JS/TS + React auto-domain), Gitleaks (directory-wide secrets), Semgrep (25-rule security pack), SonarQube (polyglot), OSV Scanner (dependency CVEs, deep), Trivy (CVEs + secrets + Dockerfile/IaC misconfigs, deep), Checkov (Terraform/K8s/CloudFormation policies, deep), in-binary secrets (AWS, GitHub, Slack, JWT, Stripe, OpenAI, Anthropic, Azure) + TODO/FIXME trackers across 40+ file types + license detector (copyleft, conflicts, undeclared)
Dashboard that helps Overview cards, activity feed with severity dots, risk grades A–D (critical×10/high×5/med×2/low×1) with trend, severity bars, stacked history, suppressions panel
Workspaces that scale Tag chips with +N overflow, debounced tag filter, sort by Name / Last scan / Findings, 51→2 queries at 50 workspaces
Reports you can use Sticky filter toolbar, severity-tinted row edges, removable chips, page/page_size toggles (25/50/100/200 rows), hostile-corpus HTML-escaped
CI-grade CLI Profiles, gates, baselines, watch mode — see CLI
Tested 1,100+ automated tests (Go + web)
What's new in 0.23.x — provenance, coverage-aware baselines, hardened exports
  • Auditable scan provenance (IMP-07..16 hardening theme) — scan snapshots record content digests, effective configuration, analyzer/rule/parser versions, and dirty-tree state, so a stored result can be tied to the exact bytes that produced it.
  • Coverage-aware baselines — versioned fingerprints separate logical-issue from occurrence identity, and prior-scan comparisons mark findings not_evaluated instead of Fixed when the analyzer that would have caught them was disabled, failed, or excluded; incremental cache reuse keys on input digests and tool versions, never mtime alone.
  • Hardened exports & updates — every exported artifact (HTML, CSV, SARIF, JSON, markdown, baselines) is written atomically with CSV formula-injection neutralization and escaped GitHub workflow commands; managed-tool installs extract to a staged directory, reject zip-slip paths, and swap atomically with rollback.
  • Evidence-grade risk & accessibility — risk grades pair with scan coverage and a complete flag so partial scans can't present an unqualified grade; docs/release-evidence.md and docs/accessibility.md state exactly what is verified, narrowing the WCAG claim to tested evidence.

Earlier releases shipped coverage-aware gates, the headless CLI, live scan progress, workspace tags, suppression workflows, CSV/SARIF/JSONL exports, and the shadcn/Tailwind UI. See CHANGELOG.md.


💻 CLI

Blunt Code includes full headless CLI support for every core capability. Every operation in the web UI can be run from your terminal or CI/CD pipeline, with shared SQLite concurrency so CLI queries never conflict with a running GUI instance.

For exhaustive documentation, see the CLI Reference Manual or visit /cli in the web application.

# Scans & CI Gates
bluntcode scan "C:\my-app" --profile standard --fail-on high+ --format sarif --output audit.sarif
bluntcode scan "C:\my-app" --format github --fail-on high+ # GitHub Actions annotations
bluntcode scan "C:\my-app" --incremental --watch          # Continuous local scanning
bluntcode prune "C:\my-app" --keep 20                     # Prune historical scans

# Workspace Management
bluntcode workspace list [--json]
bluntcode workspace add . --name my-service
bluntcode workspace show my-service
bluntcode workspace tags my-service --set "backend,security"
bluntcode workspace tree my-service --path src

# Findings Search & Inspection
bluntcode findings search "AWS" --severity critical
bluntcode findings list . --format csv --output findings.csv
bluntcode findings preview <scan-id> <finding-id> --lines 5

# Comprehensive Reports
bluntcode report . --format md                          # SonarQube-style Markdown
bluntcode report . --format html --output report.html   # Self-contained HTML report
bluntcode report . --format sarif --output audit.sarif  # OASIS SARIF log

# History & Scans Compare
bluntcode history . --limit 10
bluntcode history compare <baseline-scan-id> <current-scan-id>

# Suppressions (False Positives)
bluntcode suppress list .
bluntcode suppress add . --fingerprint <hash> --reason "Mock secret in tests"
bluntcode suppress remove . --fingerprint <hash>

# Rules & Path Overrides
bluntcode rules list .
bluntcode rules overrides . --set "dist/**,build/**,vendor/**"
bluntcode rules disable . "tests/**"

# Managed Analyzers Toolchain
bluntcode tools list [--json]
bluntcode tools install semgrep
bluntcode tools repair gitleaks

# Dynamic Pentest & DAST Probing
bluntcode pentest probe http://localhost:3000
bluntcode pentest probe https://api.staging.internal --scope full --json

# Statistics, Trends & Risk Scores
bluntcode stats                      # Global statistics
bluntcode stats .                    # Workspace summary
bluntcode trends . --limit 15        # Historical severity trendline
bluntcode risk .                     # Risk score (0-100) and grade (A-D)

# Diagnostics, Updates & Built-in Manual
bluntcode doctor [--fix]             # Environment diagnostics & auto-repair
bluntcode update check [--json]      # Check for newer releases
bluntcode cli [command]              # Interactive built-in command documentation

Exit codes · 0 completed with full coverage · 1 --fail-on/--max-findings gate tripped · 2 usage error · 3 operational failure or incomplete coverage (failed/timed out/interrupted/degraded analyzers) · 4 cancelled · 130 double Ctrl+C

In CI — GitHub Actions

quality:
  runs-on: windows-latest
  steps:
    - uses: actions/checkout@v4
    - name: Run Blunt Code Security Gate
      run: |
        bluntcode scan . --profile standard --fail-on high+ --format sarif --output audit.sarif
    - name: Upload SARIF to GitHub Security Tab
      uses: github/codeql-action/upload-sarif@v3
      if: always()
      with:
        sarif_file: audit.sarif

For AI agents

Blunt Code ships llm.txt / llms.txt (llmstxt.org), bluntcode agent docs, and bluntcode agent scan for zero-overhead, machine-readable JSON integration without opening a browser.

bluntcode llm                  # cat llm.txt (same as llms.txt)
bluntcode agent docs           # same — agent guide to stdout
bluntcode agent scan "C:\my-app" --profile quick --fail-on high+  # forces --json --quiet, progress on stderr

llm.txt lives at the repo root and at http://127.0.0.1:<port>/llm.txt when the UI is running, plus embedded in the binary. See llm.txt:1 for full JSON schemas, API endpoints, exit codes, and PowerShell examples.


🧪 Analyzers & profiles

Analyzer Languages Checks
Ruff Python Lint, style, bugbear, SIM/C4/RET/ARG/PLR in Deep
Biome 2.5.6 JS/TS, React auto-domain Format, correctness, React hooks
Semgrep Python, JS/TS 25-rule security pack (injection, deserialization, secrets, postMessage)
Gitleaks 8.30.1 All file types, directory-wide External secrets scan; honors workspace .gitleaks.toml / .gitleaksignore
OSV Scanner 2.5.1 npm/PyPI/Go/Maven/NuGet/Composer/RubyGems/cargo lockfiles Known CVEs per pinned dependency (deep profile)
Trivy 0.74.0 Dockerfile, YAML, JSON, TOML Dependency CVEs + secrets + misconfigurations (deep; first run downloads its vuln DB)
Checkov 3.3.16 Terraform, Dockerfile, K8s, CloudFormation IaC misconfigurations against 1000+ built-in policies (deep)
SonarQube Polyglot project-wide Code smells, hotspots, metrics (cold boot ≤10 min, BLUNTCODE_SONAR_STARTUP_TIMEOUT)
Secrets (built-in) 40+ types inc. .env/Dockerfile/YAML AWS, GitHub, Slack, JWT, Stripe, OpenAI, Anthropic, Azure
TODO (built-in) Code & config where comments exist TODO/FIXME/HACK/XXX/BUG with owner TODO(jane):
License Scanner (built-in) LICENSE/COPYING + package.json/pyproject/Cargo/composer Copyleft (AGPL high, GPL medium), file-vs-manifest conflicts, undeclared workspaces
Pentest Suite (built-in) All file types Static OWASP Top 10 pattern pass (injection sinks, weak crypto, debug endpoints); dynamic probing runs in pentest scans given --target <url> (dast-probe) or via bluntcode pentest probe

Profiles · Quick Ruff+Biome · Standard +Gitleaks+Semgrep+SonarQube+Pentest · Deep +OSV+Trivy+Checkov+Ruff extended · Pentest Deep + live DAST probe of --target <url> (static-only without a target)

Ignore at source: // bluntcode:ignore or // bluntcode:ignore secrets.aws-access-key-id reason: test key · or suppress by fingerprint with reason (500 chars) · or .bluntcodeignore patterns (dir/**, **/name, basename, # comments, 1000/64 KiB cap).


🔒 Privacy

┌─────────────┐    ┌────────────────────┐    ┌──────────────┐
│  your disk  │◀──▶│ bluntcode.exe      │◀──▶│ your browser │
└─────────────┘    │ loopback 127.0.0.1 │    └──────────────┘
                   └─────────┬──────────┘
                             ✕  cloud · telemetry · accounts — never
%LOCALAPPDATA%\BluntCode
├── bluntcode.db      # workspaces, scans, findings (SQLite, PRAGMA quick_check in doctor)
├── reports\          # Markdown reports
├── logs\             # redacted diagnostics
└── tools\            # ruff, biome, semgrep, sonarqube (manifest-hashed)

Loopback only (127.0.0.1), no account, no telemetry. The only outbound requests are tool installs, the Trivy/OSV vulnerability-database downloads on deep scans, and update checks you ask for (automatic checks are opt-in) — every one is listed in docs/privacy.md, and Settings → Offline mode blocks them all. Open folders from Settings → Data folders. Full layout: docs/configuration.md · policy: docs/privacy.md.


📋 Requirements

OS Windows 10 / 11 64-bit (amd64)
Rights Standard user — no admin
Network Online only first run (tools download). Offline after
Deps None — no global Python/Java/Node required

Cross-building or running pieces on Linux/macOS is possible for development, but full scans, managed analyzers, and the official verify script target Windows — see CONTRIBUTING.md for what to run where and how to interpret Linux go test vs. Windows verification.


📚 Documentation


🛠 Troubleshooting

PowerShell blocks a saved script

irm | iex doesn't save a file → no policy check. For uninstall.ps1: powershell -ExecutionPolicy Bypass -File .\uninstall.ps1.

First scan slowDownloads sandboxed tools & warms SonarQube. Next scans use local cache and `--incremental` (hash `SHA-256` per file, persisted, invalidated on analyzer/profile/version change).
Offline modeSettings → Offline mode ON after first scan. Local-only analyzers (built-ins, installed tools) keep running; network-dependent ones are disabled (OSV/Trivy need local DBs, DAST probes loopback only).
"Only one process can use the data directory"SQLite lock. Close other instance or `bluntcode doctor` to inspect.
Where are reports?Settings → Data folders → Reports/Logs/Tools/DB, or `bluntcode config`.

🗑️ Uninstall

cd "$env:LOCALAPPDATA\Programs\BluntCode"
.\uninstall.ps1              # keep DB & reports
.\uninstall.ps1 -RemoveData  # full wipe

Installer auto-cleans Start Menu shortcut and refuses while app is running.


🤝 Contributing

.\scripts\verify.ps1          # gofmt + vet + build + tests + web gates
.\scripts\package.ps1 -Version 0.38.0

See CONTRIBUTING.md · docs/architecture.md — shadcn tokens live in web/src/tokens.css (--color-paper/ink/accent, --radius-*, --shadow-*), components in web/src/components/ui/*.


📄 License

MIT — see LICENSE. Third-party analyzers keep their licenses — see THIRD_PARTY_NOTICES.md.


Built for Windows. Audited for hostile corpora, tabular-nums, sticky glass headers, and 0 horizontal scroll at 320px.

About

Your code has problems. Blunt Code names them. — Local-first code quality & security for Windows: Ruff · Biome · Semgrep · SonarQube · secrets & TODO in one loopback app. No cloud, no account, no telemetry.

Topics

Resources

Contributing

Security policy

Accessibility

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages