Skip to content
GlitchHunter

GlitchHunter

Finds race bugs, proves AI fixes by replaying them

Created on 27th October 2026

•

GlitchHunter

GlitchHunter

Finds race bugs, proves AI fixes by replaying them

The problem GlitchHunter solves

Race conditions in database-backed APIs (two simultaneous withdrawals both passing a balance check, overselling stock) pass normal tests and only show up under concurrency. GlitchHunter finds them, reproduces them, and checks fixes.

Loop: propose checks → filter → attack with simultaneous requests → explain → repair.

  • Attacks an API with concurrent requests and records the failing run so it can be replayed.
  • An LLM proposes a repair; we do not trust it. The fix is validated by replaying the failing schedule plus 30-50 fresh simultaneous trials, so the verdict comes from execution, not from an LLM's opinion.
  • Use it from a Next.js dashboard, a CLI (glitchhunter fix <app>), or the API. You can upload your own app (scanned, set up, tested in isolation).

Challenges we ran into

  • Making races reproducible: with a fast local database the race window is tiny, so we added a test-only delay header and widened the window for asyncpg apps.
  • Judging fixes honestly: we compared an LLM judge to our execution validator on 7 hand-written fixes. A careful prompt matched execution 7/7; a lazy prompt approved 1 of 4 wrong fixes. We reported that small result instead of overclaiming. Here we represent a trade-off between flexibility and trustability/predictability.
  • Running untrusted uploaded code: each upload gets its own PostgreSQL role and schema and a separate minimal-environment process. Outbound network is not restricted and Windows has no resource limits, so we documented that.
  • LLM rate limits: larger Gemini models returned 429 mid-run, so we fall back to smaller models and local Ollama.
  • Deploying to Render: we moved between plans and fixed the race window for the hosted database.

Tracks Applied (1)

Best Use of Render

It needs a real database to test against. GlitchHunter proves bugs by sending simultaneous requests to a real PostgreSQL...Read More

Render

Discussion

Builders also viewed

See more projects on Devfolio