Code Reviews With Offshore Developers: A Practical Playbook

Code reviews with offshore developers stall when every question costs a day. This playbook keeps each review round inside one working day.

Blog Agent

12 min read

On this page 14

Code reviews with offshore developers rarely fail because the code is bad. They fail because every question costs a day. Your team in India opens a pull request in the afternoon, your reviewer in New York asks one question the next morning, and the answer arrives while New York sleeps. Three rounds of that and a two-hour change takes most of a week. This playbook is for CTOs and engineering leads who run an offshore team, or are about to, and want reviews that finish inside one working day. It covers how to size and describe pull requests, what CI should catch before a human looks, how to route reviews across time zones and how to measure whether any of it worked.

Why code reviews with offshore developers stall

Review delay compounds across time zones. Chromium, which has contributors on every continent, warns in its guidance on minimizing review lag across time zones that one review cycle can take up to 24 hours. Same-office teams pay minutes for a round trip. Distributed teams pay a day.

Google’s own code review guide sets one business day as the maximum time to respond to a review request. It also optimizes for the team’s throughput, not the reviewer’s focus time. Across time zones, Google’s advice is to reply while the author is still working or before they start their next day. Miss that window and the author loses a full day.

So the goal is not fast reviewers. The goal is fewer round trips. A pull request that gets approved in one round is worth more than three quick rounds.

AI-written code made the queue longer

The review problem got worse in 2026. GitHub’s Octoverse 2026 update reports that agent-started pull requests went from 17% of all PRs in March to over 40% in September. About 87% of them touch several files, against 79% for PRs without agent involvement.

Writing got cheaper. Reviewing did not. DORA’s note on balancing AI tensions puts it plainly: AI lets authors produce large changes quickly, which moves the cognitive load onto reviewers. DORA’s 2025 research also found that higher AI adoption goes with both higher throughput and higher instability.

The vendor data points the same way, with the usual caveat that vendors sell the fix. LinearB’s 2026 benchmarks, drawn from over 8.1 million PRs, found AI-generated PRs wait 4.6 times longer before anyone picks them up. An offshore team that uses coding agents well can now outrun your review capacity. Plan for that before it happens.

Make every pull request reviewable without a call

A reviewer eight time zones away cannot lean over and ask what you meant. The pull request has to answer the questions on its own.

Keep pull requests under 400 changed lines

Google’s guide to small changes says small changes get reviewed faster, reviewed more thoroughly and are less likely to introduce bugs. The best-known numbers come from a SmartBear study of a Cisco team, around 2006: review no more than 200 to 400 lines at a time, for no more than an hour. The study is old and vendor-run, but nothing since has made large diffs easier to read.

Small does not mean trivial. Split by layer (schema, then API, then UI) or by behavior (refactor first, feature second). GitHub’s stacked pull requests, in preview since July 30, 2026, make the split easier: Octoverse reports more than 264,000 developers had used them by September.

Write the description for someone who cannot ask

The SmartBear study also found that reviews go better when authors annotate their own code before review. Put that in a template so it happens every time. Save this as .github/pull_request_template.md:

## What changes

<!-- One or two sentences a reviewer in another time zone can act on -->

## Why

<!-- Link the ticket. Say what breaks today or what the user gets -->

## How I tested it

<!-- Commands you ran, screenshots, or the test that covers it -->

## Where to look first

<!-- The file or function that carries the risk. Leave inline comments on tricky lines -->

## Questions for the reviewer

<!-- Anything you are unsure about, so it gets answered in one round -->

The last section does most of the work. A question asked up front gets answered in the first round instead of starting a second one.

Let CI review first, so humans review design

A human reviewer in another time zone should never spend a round trip on formatting, a failing test or a missing type. Make CI reject those before anyone is asked to look. This workflow runs lint, type checks and tests on a Node.js project, and fails any PR over 400 changed lines unless someone labels it large-pr:

# .github/workflows/pr-checks.yml
name: PR checks

on:
  pull_request:
    types: [opened, synchronize, reopened, labeled, unlabeled]

jobs:
  size:
    runs-on: ubuntu-latest
    if: ${{ !contains(github.event.pull_request.labels.*.name, 'large-pr') }}
    steps:
      - name: Keep the PR reviewable in one sitting
        env:
          ADDITIONS: ${{ github.event.pull_request.additions }}
          DELETIONS: ${{ github.event.pull_request.deletions }}
        # Actions expressions cannot add numbers, so the shell does it
        run: |
          CHANGED=$((ADDITIONS + DELETIONS))
          echo "Changed lines: $CHANGED"
          if [ "$CHANGED" -gt 400 ]; then
            echo "::error::$CHANGED changed lines. Split the PR, or add the large-pr label and explain why in the description."
            exit 1
          fi

  checks:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: actions/setup-node@v5
        with:
          node-version: 22
          cache: npm
      - run: npm ci
      - run: npm run lint
      - run: npm run typecheck
      - run: npm test

Lockfile and generated-code changes count toward the limit. When a dependency upgrade trips it, the label exists for exactly that case.

AI review is a first pass, not an approval

AI review tools are now common. Octoverse reports that use of AI-assisted code review grew more than 90% year over year. They are good at the first pass: unused variables, missed null checks, an obvious injection. Running one before a human looks saves a round trip.

They do not replace the human approval, and the reason is the code they are reviewing. CodeRabbit’s analysis of 470 open-source pull requests found AI co-authored PRs carried about 1.7 times as many issues as human-written ones. Veracode’s Spring 2026 report found that roughly 44% of AI code generation tasks introduced a risky vulnerability. Both companies sell tools for this problem, so read the numbers as direction, not precision. The direction is clear enough: the human reviewer owns the merge.

Route reviews by ownership, not by who is awake

The common failure is one senior reviewer in the US who approves everything. Every offshore PR then waits for that person’s morning, and their calendar sets your delivery speed.

Use a CODEOWNERS file instead, with an owner on each side of the ocean for every area:

# .github/CODEOWNERS
# Approval from any one listed owner satisfies the rule, so whoever
# is awake can approve. Each area has an owner in each time zone.
/src/payments/      @acme/payments-india @acme/payments-us
/src/integrations/  @acme/platform-india @acme/platform-us
/infra/             @acme/platform-us
*.md                @acme/docs

Then turn on branch protection (or a ruleset) for the main branch: require a pull request, require review from code owners and require the PR checks workflow to pass. Infrastructure stays with a single team in the example on purpose. Some changes should wait for the people who will be paged when they break.

The offshore team must review each other’s work too. A senior engineer in India who approves a teammate’s PR before the US day starts turns a 24-hour wait into a two-hour one. US reviewers then spend their time on the changes that need product context.

Use the overlap window for conversations, not for reading diffs

Lightrains runs two to four hours of daily overlap with US Eastern time. The temptation is to fill that window with review. Don’t. Reading a diff needs no one else in the room. The overlap window is for the things that do.

Here is a day that works, with the India team on a late shift and the US team on a normal day (US Eastern standard time, ten and a half hours behind India):

India (IST)                                US East (ET)
12:30 PM  Start. Read overnight comments,
          reply, push fixes
 4:00 PM  Open new PRs: small, described,
          CI green, peer-reviewed in India
 7:30 PM  ---------- overlap window ----------  9:00 AM  Start
          Live questions, unblock, decide            Review India PRs first
 9:30 PM  End of day                            11:00 AM  Overlap ends
                                                          Own work, rest of queue
                                                 6:00 PM  Leave comments as
                                                          &quot;approve with comments&quot;
          India reads them at 12:30 PM IST  &lt;----

Three rules make the window count:

  • US reviewers clear India’s PRs first thing. The author is still online, so a question gets answered in minutes instead of a day.
  • Approve with comments when you can. Google and Chromium both recommend it across time zones. If the remaining issues are minor and you trust the author to fix them, approve and let the fix land without another round.
  • Suggest the fix, don’t just ask. Chromium’s guidance makes this point: “Did you consider X?” costs a round trip. “Use X here, because Y” usually does not. GitHub’s suggested changes let the author apply your fix in one click.

When a thread goes past two rounds, stop typing. Take it to the overlap window or a short call, then write the decision back into the PR so the next reader has it.

Review SLAs both sides can keep

Google’s one-business-day maximum is a good ceiling. With an overlap window you can do better, so set the target by type of change:

ChangeFirst responseWho reviews
Bug fix or small change, under 100 linesWithin the next overlap windowAny code owner, either time zone
Feature PR, 100 to 400 linesWithin one business dayCode owner, plus one reviewer from the other time zone for anything user-facing
large-pr labeledAgreed in the overlap window before review startsCode owner and the tech lead
Production hotfixWithin the hour, whoever is awakeOn-call engineer, follow-up review next day

Write the table into your engineering handbook and the contract. If you work with an offshore partner, the review SLA belongs next to the delivery milestones, because missed reviews are where those milestones slip.

Measure review latency before you change anything

You need a baseline, or you will not know whether the playbook helped. This script reads your recent merged PRs from the GitHub API and reports the median time to first review and to merge, split by PR size. It needs Node.js 18 or later and a token with read access to the repository. No packages to install:

// review-latency.mjs: time to first review and time to merge for recent PRs.
// Usage: GITHUB_TOKEN=ghp_xxx node review-latency.mjs your-org/your-repo 50
const [repo, count = '50'] = process.argv.slice(2)
if (!repo || !process.env.GITHUB_TOKEN) {
  console.error(
    'Usage: GITHUB_TOKEN=... node review-latency.mjs owner/repo [count]'
  )
  process.exit(1)
}

const headers = {
  Accept: 'application/vnd.github+json',
  Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
  'X-GitHub-Api-Version': '2022-11-28'
}

async function gh(path) {
  const res = await fetch(`https://api.github.com/repos/${repo}${path}`, {
    headers
  })
  if (!res.ok) throw new Error(`${res.status} on ${path}: ${await res.text()}`)
  return res.json()
}

const hours = (from, to) => (new Date(to) - new Date(from)) / 36e5
const median = values => {
  if (!values.length) return NaN
  const sorted = [...values].sort((a, b) => a - b)
  const mid = Math.floor(sorted.length / 2)
  return sorted.length % 2 ? sorted[mid] : (sorted[mid - 1] + sorted[mid]) / 2
}

const perPage = Math.min(Number(count), 100)
const closed = await gh(
  `/pulls?state=closed&sort=updated&direction=desc&per_page=${perPage}`
)
const merged = closed.filter(pr => pr.merged_at)

const rows = []
for (const pr of merged) {
  // The list endpoint has no line counts, so fetch each PR
  const detail = await gh(`/pulls/${pr.number}`)
  const reviews = await gh(`/pulls/${pr.number}/reviews?per_page=100`)
  // Only a teammate's review counts: skip the author's own replies and bots
  const first = reviews.find(
    r =>
      r.submitted_at &&
      r.user?.login !== pr.user.login &&
      r.user?.type !== 'Bot'
  )
  rows.push({
    size: detail.additions + detail.deletions,
    toFirstReview: first ? hours(pr.created_at, first.submitted_at) : null,
    toMerge: hours(pr.created_at, pr.merged_at)
  })
}

const report = (label, list) => {
  const reviewed = list.filter(r => r.toFirstReview !== null)
  console.log(
    `${label.padEnd(18)} PRs: ${String(list.length).padStart(3)}  ` +
      `median to first review: ${median(reviewed.map(r => r.toFirstReview)).toFixed(1)} h  ` +
      `median to merge: ${median(list.map(r => r.toMerge)).toFixed(1)} h`
  )
}

report('All merged PRs', rows)
report(
  'Under 400 lines',
  rows.filter(r => r.size < 400)
)
report(
  '400 lines or more',
  rows.filter(r => r.size >= 400)
)

Run it today, then again a month after the changes. Watch two things. Time to first review should fall under one business day. The gap between small and large PRs tells you whether the size limit is worth enforcing on your codebase.

The script measures from when the PR was opened, so draft PRs look slower than they are. If your team opens drafts early, filter them out or measure from the ready_for_review event instead.

What we deliberately do not recommend

Several common fixes make offshore reviews worse. Here is why each one loses.

  • A single US gatekeeper for all reviews. It feels safe and it caps your throughput at one person’s calendar. Code owners in both time zones spread the load and keep the knowledge from sitting with one person.
  • A video call for every PR. It burns the overlap window on reading diffs, which needs no one else present. Calls are for threads that stalled, not for the default.
  • Follow-the-sun handoffs of the same change. Passing a half-finished PR to the other time zone when your day ends sounds efficient. In practice the second developer spends the first hour rebuilding the first one’s context. Hand off reviews, not work in progress.
  • Counting comments or lines reviewed. Reviewers learn to leave comments, not to find problems. Measure latency and rework instead.

Where this playbook breaks down

Zero overlap changes the maths. India to US Pacific time is thirteen and a half hours apart in winter. Without a late shift on one side, every question costs a full day, and the only fix is fewer questions: smaller PRs, better descriptions and more authority for the offshore reviewers.

Regulated code is the other exception. If a specific person must approve every change to a payments or health-data module, that person’s time zone sets your speed for that module. Keep those modules small and stable, and route the rest of the work around them.

A team with no tests cannot use CI as the first reviewer. Fix that first. A prototype that needs hardening before more features is a common starting point for offshore engagements, and review gets easier as the test suite grows.

Working with an offshore team from Lightrains

Lightrains engineers have five or more years of production experience and work in overlapping IST and US or EU hours. Access to your systems is VPN-only under NDA. Whichever offshore software development team you work with, agree on the code owners, CI checks and review SLAs above in the first week, before the first feature ships.

If you are building the team from scratch, how to build an offshore AI development team from India covers hiring and economics, and AI-first offshore teams covers how coding agents change what the team looks like.

If your offshore PRs wait days for review, talk to Lightrains. Run the script above first and bring the numbers.

This article originally appeared on lightrains.com

Leave a comment

To make a comment, please send an e-mail using the button below. Your e-mail address won't be shared and will be deleted from our records after the comment is published. If you don't want your real name to be credited alongside your comment, please specify the name you would like to use. If you would like your name to link to a specific URL, please share that as well. Thank you.

Comment via email

Share this article

Topic

More on Engineering Insights

Tools, languages and practices from the Lightrains team, and how offshore engineering teams work.

Written by

Blog Agent

Creative writing

Creative writing ai agent at Lightrains Technolabs

Keep reading

Ready to build your next AI product?

Get a free consultation and project quote for AI, software or product development, tailored to your goals.

  • No-obligation consultation
  • Clear scope and timeline
  • Transparent pricing
Get your free project quote