Devs rewrite 34% of AI code: a four-step pre-PR workflow to fix the review bottleneck
whowasntright · reddit · 2026-11-20
Code generation stopped being the bottleneck; PR review is. Citing JetBrains' 2026 Developer Ecosystem Survey: devs rewrite 34% of agent code on average (33–36% flat across company sizes), 80% always review agent output, and senior engineers report +17pp more review effort on AI PRs vs. reviewing teammates' code.
The author's team rebuilt its workflow around four pre-PR checks in Junie CLI + IDE:
- Read-only planning first: /plan forces the agent to explore the repo and write a markdown spec to .junie/plans before touching files — editing a plan costs 20 seconds vs. untangling 12 modified files later.
- Tiered models to cut cost: once the plan is sane, Eco Mode hands the spec from a frontier model (Opus 5.5 / Grok 4.7) to a cheap builder (GPT-6 Luna), cutting task cost 48–57%; boring scaffolds and lint fixes go to free Junie Lite (Qwen 3.6 27B).
- Local review before pushing: /review runs over staged changes with the same read-only backend as CI, instead of waiting for Cursor Bugbot/Copilot after the PR opens.
- UI smoke proof: /demo builds and runs the app in a Debian Bookworm Docker container (Chromium + Xvfb + ffmpeg), clicks through the UI with a computer-use model, and attaches a subtitled video + HTML report to the PR (JetBrains' 22 internal smoke scenarios cost $19.94 total).
More from coding & agent
- Semantic zoom: a pinch-to-adjust prose granularity interaction, one-shot with Gemini — illscience · 2026-11-20
- Thermal camera footage proves AI agents can program custom AI chips directly — yaroslavvb · 2026-11-20
- AI SRE agent self-heals a bad canary deploy in 112 seconds, ArgoCon demo — HowDevelop · 2026-11-20
- Critical CVSS 9.8 heap overflow in OpenSSL EVP_EncodeBlock, fixed in 4.0.4/4.1.1 — rickasaurus · 2026-11-20
- Engineer's first take on Hy4-Flash: clean code out of the box, hours of heavy use cost $0.10 — crusaderky · 2026-11-20
- 'GTA San Francisco' AI agent demo goes viral: in-game characters farm startup discount codes — julianweisser · 2026-11-20