Predict bugs before they ship. Review like a staff engineer. Fix with a git-apply diff. Modernize legacy in hours, not months.
No API key. No backend. Real KV-13 inference engine (client-side mock with same logic as Python backend). Paste code, get instant analysis.
Finds null derefs, race conditions, logic errors from patterns — no execution needed.
OWASP Top 10 + CWE mapping with exploitability scoring.
Minimal unified diffs you can git apply with regression checks.
Decoder-only 40-layer transformer, GQA + SwiGLU + FlashAttention-2, 32K context extended to 128K for repo-level reasoning.
5120 hidden, 40 heads (8 KV), 13824 intermediate, RMSNorm + QK-LayerNorm for stability.
The Stack v2 dedup + 4M PR reviews + CVEFixes + Defects4J. RLHF on 180K human reviews + DPO.
AWQ 4-bit runs on consumer GPU / 16GB RAM laptop. Docker one-liner, fully offline.
| Feature | GPT-4 / Claude | KV-13 |
|---|---|---|
| Repo-level 128K | Truncated | Full symbol graph |
| Calibrated risk 0-100 | No | Yes |
| git-apply diff | Sometimes | Always + tests |
| Self-hostable | No | MIT, offline |
| Cost / 1M tokens | $10-30 | $0 |
Base URL: http://localhost:8000 or https://api.kv-13.netlify.app • OpenAPI at /docs
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/analyze | Full analysis (bugs + risk + security) |
| POST | /v1/fix | Generate auto-fix diff |
| POST | /v1/review | Autonomous PR review |
| POST | /v1/modernize | Legacy modernization |
| POST | /v1/test-gen | Test generation |
| GET | /health | Health check |