Loading
Loading
How Indpro reduced PR review cycles from 3.2 to 1.4 over 6 months using AI Code Factory guardrails. Month-by-month breakdown of what changed and why it worked.
Author
Tom Bergström
Published
21 May 2026
Reading time
6 min read
Topics
nordic-tech, architecture, scaling
A review cycle is every round-trip between author and reviewer. A PR with 3.2 average cycles means reviewers sent it back twice on average before it merged. Each cycle represents time: time writing the review, time waiting for the fix, time re-reviewing. At 3.2 cycles across 20+ PRs per sprint, that's a significant fraction of total engineering time consumed by review overhead.
We brought it to 1.4 over 6 months on a client engagement. Here's exactly what we changed each month, and which changes moved the needle most.
3.2 review cycles is not unusual. For teams without automated quality enforcement, it's close to average. The breakdown: roughly 1 cycle for issues the author would have caught themselves with more time, 0.7 cycles for style and pattern violations that an automated tool should handle, and 0.5 cycles for the legitimate technical feedback that review is actually for. Only that last 0.5 requires a human reviewer. The rest is preventable automation work.
The guardrail approach attacks the first two categories — eliminating the cycles that exist because of missing automation. Human review time shifts from "catching obvious issues" to "evaluating technical decisions." That's the right job for a senior engineer's attention.
M1
Added Husky pre-commit hook running ESLint with auto-fix and tsc. Style violations stopped reaching review. Type errors stopped reaching review. Most immediately impactful single change.
Review cycles: 3.2 → 2.6
M2
Wrote backend, frontend, and testing SKILL.md files. Agent-generated code started following team conventions by default. Pattern deviation comments in reviews dropped sharply.
Review cycles: 2.6 → 2.1
M3
Added coverage gate to on-push hook. PRs without adequate test coverage stopped reaching review. Reviewers stopped requesting tests in comments — the gate handled it automatically.
Review cycles: 2.1 → 1.9
M4
Deployed PR review agent in advisory mode. Spent the month calibrating false positives and tuning the skill file exceptions. Team started trusting agent output. Human reviewers began focusing on agent-cleared PRs differently.
Review cycles: 1.9 → 1.7
M5
Flipped PR review agent to blocking for critical and high severity findings. Authors started fixing agent findings before requesting review. Human reviewers no longer catching standard violations.
Review cycles: 1.7 → 1.5
M6
Added specialized skill files for authorization patterns and database query patterns — the two areas where most remaining review comments were concentrated. Agent stopped generating code that required architectural correction.
Review cycles: 1.5 → 1.4
The full 6-week AI Code Factory implementation sprint covers all of this and more.
Month 1 had the largest single-month impact: 0.6 cycles removed by adding pre-commit hooks. It's the most straightforward intervention and the most underutilized. Most teams know they should have automated style enforcement. Many have it in CI but not locally. The difference between CI enforcement (catches issues after push, blocks the build 20 minutes later) and local pre-commit enforcement (catches issues before commit, fixed in 30 seconds) is substantial. The local hook removes the issue from the feedback loop before it can generate a review comment.
Month 2's SKILL.md implementation had the second-largest impact and the longest tail — the skill library continues to improve, and each improvement reduces future review cycles. The month 1 hook is a floor. The skill library is a ceiling that keeps rising.
"The journey from 3.2 to 1.4 review cycles isn't about making reviewers faster. It's about making the work that reaches reviewers different. At 1.4 cycles, reviewers are mostly doing genuine technical evaluation. At 3.2, they were doing manual quality control. The guardrail system changes the reviewer's job description." — Aash, Engineering Lead, Indpro AB
Two things we tried that had minimal impact: PR size limits (we tried limiting to 400 lines — developers just split PRs without changing the underlying work) and reviewer rotation (changing who reviews didn't change what they caught or how quickly). The improvement came from changing what arrived at review, not from changing the review process itself.
Ready to map the guardrail journey for your team's codebase?
Q: Is 1.4 review cycles the practical floor, or can you go lower?
1.4 is close to the practical floor for a team with active human review. The remaining 0.4 cycles above 1.0 represents legitimate technical feedback — PRs that had a real issue caught by human review. Getting below 1.4 would require either reducing the quality of review (not desirable) or further improving the pre-review quality of PRs. 1.4 is a healthy steady state.
Q: How do you measure review cycles accurately?
We count review cycles as the number of times a PR receives a "changes requested" review before approval. GitHub's API provides this data directly. We track it per sprint, per developer, and per PR category (feature vs. bug fix vs. refactor) to identify where the remaining cycles are concentrated.
Q: Can this approach be applied to a legacy codebase with significant existing style debt?
Yes, but the pre-commit hook rollout requires extra care. On a codebase with existing lint violations, the hook will block every commit until the existing issues are fixed. We typically run a dedicated lint cleanup sprint (2–4 days for most codebases) before enabling the blocking hook. The SKILL.md approach works fine from day one — it applies to new code regardless of legacy state.

CTO & Co-Founder
Tom leads Indpro's technology strategy and engineering standards. With 20+ years of experience building and leading engineering teams across the Nordic region, he ensures every engagement delivers at the highest technical level.
Connect on LinkedIn →A detailed breakdown of how one client saved SEK 4.2M in year one by switching from in-house engineering hiring to Indpro's managed team model. All numbers explained.
10 pages of practical insight on operating models, compensation benchmarks, and a hiring playbook. Free PDF.
Download the Free GuideOr reach us directly: sales@indpro.se · +46 73 932 21 38