Resource leaks, null dereferences, and missing awaits caught in real time — entirely on your machine, with no server, no model, no latency.
Open the file → red underlines appear instantly → Ctrl+. three times → all clean.
// TypeScript — all three detection classes in one file async function fetchLeaderboard(apiUrl: string) { const response = fetch(apiUrl);⚠ await-missing const json = await (response as any).json(); return json; } const USERS = [{ id: 1, name: "Alice", score: 92 }]; function getTopScore(userId: number) { return USERS.find(u => u.id === userId).score;✗ null-deref } function streamUpdates(url: string) { const ws = new WebSocket(url);✗ resource-leak return () => ws.close(); // only on happy path }
After pressing Ctrl+. three times:
async function fetchLeaderboard(apiUrl: string) { const response = await fetch(apiUrl);✓ await added return await response.json(); } function getTopScore(userId: number) { const user = USERS.find(u => u.id === userId); if (!user) return 0;✓ null guard return user.score; } function streamUpdates(url: string) { const ws = new WebSocket(url); ws.onerror = () => ws.close();✓ error-path close added return () => ws.close(); }
Every pattern below is detected via deterministic rules — no heuristics, no machine learning, no guessing.
Opened resource without a matching close on all execution paths. ΣQ invariant: every open must be balanced by a close.
malloc/free · fopen/fclose · socket/close · WebSocket · DB connections
Property or method access on a value that may be null or undefined — without a prior guard check.
array.find() · document.getElementById() · map.get() · string.match()
An async function called without await inside an async context — the Promise is never resolved before use.
fetch() · fs.readFile() · db.query() · sendMail() · 30+ async APIs
We make a narrow, verifiable guarantee — and we tell you exactly where it ends.
No configuration. No API key. No sign-up.
Real-time inline diagnostics + one-click Ctrl+. repairs.
Or search Bug0 in the VS Code Extensions panel.
Static analysis in CI/CD pipelines and pre-commit hooks.
Run directly via npx — no global install needed.
Every guarantee is verifiable — open the network tab and watch it stay empty.
Engine runs in a local WebAssembly sandbox. The VS Code extension requests zero network permissions.
No usage data, no analytics, no crash reports. Nothing is collected, ever.
The 7,344-rule database is AES-256-GCM encrypted at build time. Plain-text rules never ship.
Built with -g0 -s ASSERTIONS=0 -s DYNAMIC_EXECUTION=0. No debug symbols. No eval.