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
- IDE push guard, hooks into IntelliJ's native push dialog via
the
prePushHandlerextension point. - Smart compile scope, compiles only the modules containing
changed files, and automatically falls back to a full project build when build
files (
build.gradle,pom.xml, …) or file deletions are in play. - IDE problem check: if IntelliJ already reports errors in the files being pushed, the push is blocked instantly, skipping a redundant compile.
- Terminal push guard, installs a managed
pre-pushhook so pushes from the terminal, Sublime Merge, SourceTree, or GitHub Desktop are also protected. - Compilation Checker tool window, a right-side panel that lists errors from the last check with file icons. Double-click to jump to the offending line.
- Refresh action: fix your errors, click refresh in the block dialog, and the push flow resumes without restarting anything.
- Per-branch build snapshots: verdicts are keyed by working-tree content and kept per branch until it's deleted, so switching branches restores its errors without a rebuild.
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.
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
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
Design decisions
- Two surfaces, one source of truth. Both the IDE push and the
terminal hook write to the same
.idea/pre-push-checker/last-run.log, which the IDE parses into the tool window so the experience is identical wherever the push came from. - Idempotent hook installation. The
pre-pushhook is written respectingcore.hooksPath, worktrees, and submodules, and chains non-destructively with any existing user hook. - Escape hatch. The
PRE_PUSH_CHECKER_COMMANDenvironment variable lets teams substitute any custom check command (e.g. a lint+test combo) without forking the plugin. - Fail fast, then fail well. If the IDE already knows there are errors, don't waste seconds on a compile. Just surface them immediately.