debt-gate: an open-source CI gate that blocks new tech debt in AI-built code
This_Cell_1829 · reddit · 2026-09-23
AI coding tools generate technical debt fast, but existing approaches fail: blocking all known issues makes CI useless, and issue counts don't budge when you fix one old problem and add a new one.
The author built debt-gate, a simple gate model:
- Snapshot the repo's known issues (say A, B, C)
- A/B/C still present → pass; a new issue D appears → fail
- C disappears → you must prove it was actually fixed before removing it; if C returns later → fail
In short: existing debt may stay, new debt cannot be added. debt-gate finds nothing itself — it pairs with ESLint, Ruff, Semgrep, grep, or any deterministic checker. Install via npm install --save-dev debt-gate; no LLM calls, no service, no source upload.
The gate logic has been tested against JavaScript, Go, and Ruby repos, and the author welcomes edge cases that break the model.
More from coding & agent
- OpenAI launches GPT-6 Sol and Luna, permanently cuts API prices 50% — aziz4ai · 2026-09-23
- Claude Opus 5.5 generates a 10v10 Halo-style multiplayer game from one prompt — Scobleizer · 2026-09-23
- From UX to AX: the four things your service needs to be agent-friendly — kleffew94 · 2026-09-23
- Opus 5.5 Builds a Playable 3MB Single-File Game Inspired by the Antikythera Mechanism — edwinarbus · 2026-09-23
- Grok Build 1.0.41 Ships with Grok 4.7, Adds Subagent Controls — elonmusk · 2026-09-23
- GPT-6 Sol/Luna Share Astra's Cache Mechanics, Letting You Switch Effort Without Breaking Cache — brandon_galang · 2026-09-23