Skip to content
PushGuard

PushGuard

Fix Before You Push...

Created on 3rd October 2026

•

PushGuard

PushGuard

Fix Before You Push...

The problem PushGuard solves

PushGuard solves the trust gap between “my code looks ready” and “my code is actually verified and safe to push.” In modern development, especially with AI-generated code, developers often push changes only to discover later through CI/CD that linting, type checks, tests, or builds are failing, leading to repeated push → fail → fix → push cycles. At the same time, an AI claiming that it has “fixed” an error does not prove that the code actually works. PushGuard moves this entire process before git push: it automatically detects the project, runs the real linting, testing, type-checking and build tools, identifies failures, lets a local AI such as Ollama propose targeted repairs, requires human approval before modifying anything, and then independently re-runs the real tools to verify every repair. Only after all required checks pass does PushGuard perform Git preflight checks, show the developer exactly what changed, and ask for a separate final authorization before allowing the push. In short, AI proposes, humans authorize, tools verify, PushGuard controls, and Git pushes.

Challenges we ran into

Challenges I Ran Into
One of the biggest challenges while building PushGuard was making it reliably understand different codebases and provide the local LLM with the right context. During testing, we found cases where a repository containing broken Python code was incorrectly considered healthy because PushGuard was only running git diff --check instead of detecting the Python files and running language-specific verification. We also faced issues such as large diagnostic outputs exceeding AI context limits, incorrect failure classification, stale repository locks after interrupted sessions, and AI-generated fixes that still failed the actual compiler or tests. We solved these problems by adding source-extension-based language detection, structured diagnostic parsing and classification, bounded context and root-cause grouping for the LLM, safer session-lock recovery, and—most importantly—a verification loop where every AI-generated patch is approved by the developer and then checked again using the project's real linter, compiler, tests, and build tools. This taught us an important lesson: the AI should propose the fix, but deterministic tools must prove that the fix actually works.

Technologies used

Discussion

Builders also viewed

See more projects on Devfolio