Back to plugins

// JetBrains plugin · Git · compilation guard

Pre-Push Compilation Checker

An IntelliJ IDEA plugin that intercepts every git push, from both the IDE dialog and the terminal, and blocks it if your code doesn't compile. It has since grown an AI layer on top: it reviews your diff against a findings list before the push goes out, can fix what it finds, and will write the commit message for you.

Role

Author & maintainer

Stack

Kotlin · IntelliJ Platform · Gradle/Maven · Git hooks

Distribution

JetBrains Marketplace

Version

3.3.0

JetBrains Marketplace ↗ GitHub ↗

The problem

"Oops, fixing broken build" commits are a universal developer experience. Most IDEs will happily let you push compilation-broken code. CI catches it a few minutes later, by which point you've already broken main for everyone else, and someone's Slacking you about it.

I wanted a fast, local feedback loop that blocks the push before it leaves your machine, without waiting on CI and without slowing down the pushes that are actually fine.

What I built

What it grew into

The compile gate stayed, but v3.x added a layer on top of it: the plugin now reads the diff before it leaves your machine, not just whether it compiles.

Code Review tab

Review findings, then fix them in one go

Changes get reviewed against your team's rule file before push. Tick findings or whole files and click Resolve Checked with AI: fixes apply in turn, up to two files at once, each diff shown before anything is applied. Off by default; turning it on makes review block the push until files are reviewed.

  • Findings remembered per file version, no re-review loops
  • Background AI fixes prepared ahead of time (max 3, one call at a time)
  • On-push review runs right after an IDE commit
AI commit messages

Generated from your staged diff, six-plus providers

One click in the Compilation Checker panel or the commit dialog. Pick JetBrains AI, OpenAI, Anthropic, Gemini, Ollama, or Detect Local CLIs, which finds the AI command-line tools already installed on your machine (Claude, Codex, Copilot, Gemini, llm, Cursor Agent and more) and lets you pick one, no API key needed.

  • Conventional Commits by default, fully configurable per project
  • Team-shared rules via .github/commit-instructions.md
  • Claude messages stream into the commit box as they're written
6+AI providers, incl. local CLI auto-detect
3.3.0current release
2files resolved with AI at once

Design decisions

Why the terminal hook matters: most "pre-push" plugins only cover the IDE dialog. Real teams push from terminals, GUI clients and CI scripts, not just the one dialog the plugin author happened to test. This plugin installs a hook that mirrors the IDE check and re-surfaces errors inside IntelliJ whenever it's open, even if you triggered the push from somewhere else entirely.

Links