Manish Goyal

Case study AI code analysis tool

silentbug

Finds the bugs that pass your tests: errors that still return success, routes with no login check, and LLM calls that quietly run up the bill.

The local dashboard: findings with severity, the code and how to fix it

The problem

Tests prove the code does what you expected. They miss the code that fails quietly.

What I did

Designed and built it on my own: the analysis engine, the judge, the dashboard and the GitHub Action.

How it works

  1. Scan

    Reads the repository with Python’s own syntax tree and tree-sitter for JavaScript and TypeScript, plus adapters that know how frameworks declare routes and auth.

  2. Detect

    33 detectors flag suspects. They over-report on purpose; the next steps decide what is real.

  3. Suppress

    Inline ignores, a baseline and your own triage decisions remove what you have already judged.

  4. Redact

    Secrets are stripped before any code is shown to a model.

  5. Judge

    One model call per suspect, cached and on a budget. A local model first; a cloud model only when you set a key.

  6. Report

    Terminal, Markdown, JSON, HTML, SARIF and a badge. A GitHub Action runs it on every pull request.

Alongside: a cost map of LLM calls that needs no model at all, and a dashboard that only listens on your own machine.

silentbug architecture: scan, detectors, suppression, redaction, judge and reports
The architecture, from the project's own documentation.

Decisions that mattered

A local judge first

Free and private when a local model exists; a cloud model is used only when you have set a key.

No plugin system

Less code, a smaller attack surface (no third-party code loaded at run time), and one way to do things.

Repeats count less

Repeats of one kind of finding weigh less and less in the score, so one recurring issue can’t wipe the score out.

How it is tested

  • Detector evaluation on labelled cases: 87 true positives, 1 false positive, 0 false negatives (precision 0.99, recall 1.00). The README calls this a regression guard, not a coverage claim.
  • The model judge has its own labelled set of 47 suspects.

Screens

The HTML report of an audit
The HTML report of an audit
An audit running in the terminal
An audit running in the terminal

Built with

  • Python
  • ast and tree-sitter
  • LLM judge (Ollama, Claude, OpenAI, Gemini)
  • SARIF
  • GitHub Actions