---
title: "Keeping code moving with clearer review expectations"
description: "Sourcegraph is experimenting with an AI agent that routes each pull request to one of three review paths: Ship (no review), Show (review after merge) or Ask (review before merge)."
url: "https://swe.quest/articles/keeping-code-moving-with-clearer-review-expectations-053fec0d580ce694"
canonical: "https://sourcegraph.com/blog/what-we-learned-building-a-pr-approval-bot"
source: "Sourcegraph"
published: "2026-11-10"
difficulty: "medium"
kind: "Case study"
reading_minutes: 4
tags: ["code-review","ai-agents","developer-productivity","ai-coding"]
---

# Keeping code moving with clearer review expectations

A post on [Sourcegraph](https://swe.quest/sources/sourcegraph.md), published 2026-11-10, 4 min read, Case study. Original: [https://sourcegraph.com/blog/what-we-learned-building-a-pr-approval-bot](https://sourcegraph.com/blog/what-we-learned-building-a-pr-approval-bot)

## Summary

Sourcegraph is experimenting with an AI agent that routes each pull request to one of three review paths: Ship (no review), Show (review after merge) or Ask (review before merge). The agent inspects the diff, surrounding code and the author's history, and application code applies explicit rules to pick a path. Familiarity requires two merged, reviewed PRs plus a relevant contribution in the past 30 days, and changes to authentication or sensitive-data exposure always require review. Early lessons: familiarity must be scoped to specific components, visible reasoning makes decisions contestable, and the bot's own comments can become interruptions. Fewer stamp requests so far says little about review quality.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Code review](https://swe.quest/tags/code-review.md) (Engineering practices)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)

## Prerequisites

- GitHub pull request workflow
- code review processes ([easy posts on Code review](https://swe.quest/tags/code-review.md?difficulty=easy))

## Keywords

Sourcegraph, Ship/Show/Ask, GitHub Actions, RADAR

## Related posts

- [Accelerating Delivery: How AI Agents Can Own the Initial Code Draft](https://swe.quest/articles/accelerating-delivery-how-ai-agents-can-own-the-initial-code-draft-da9fd13a9d30a074.md): 8th Light · 2026-05-05 · Easy · 6 min read · AI agents, AI for coding, Developer productivity
  A multi-agent workflow turns a Jira ticket prompt like "Let's work on FEAT-123" into a review-ready pull request.
- [Four minutes after midnight, Codex said the page was live](https://swe.quest/articles/four-minutes-after-midnight-codex-said-the-page-was-live-25ae19da11733480.md): Render · 2026-08-16 · Medium · 9 min read · AI for coding, AI agents, Code review, Developer productivity
  OpenAI's Dominik Kundel argues that with agentic delegation, code is no longer the bottleneck.
- [Better tools made Copilot code review worse. Here’s how we actually improved it.](https://swe.quest/articles/better-tools-made-copilot-code-review-worse-here-s-how-we-actually-improved-it-d13b0645c05f1e51.md): GitHub Engineering · 2026-07-10 · Medium · 9 min read · AI agents, Code review, LLMs, Evaluation, Cost optimization
  Swapping Copilot code review's bespoke exploration tools for the shared Copilot CLI tools (grep, glob, view) initially raised review cost and reduced useful comments, because the tool instructions encouraged broad, repo-browsing behavior instead of diff-anchored investigation.
- [Automating cross-repo documentation with GitHub Agentic Workflows](https://swe.quest/articles/automating-cross-repo-documentation-with-github-agentic-workflows-e38fd8e813d70616.md): GitHub Engineering · 2026-07-08 · Medium · 9 min read · AI agents, Documentation, CI/CD, Supply chain security, Developer productivity
  Aspire's team uses GitHub Agentic Workflows to auto-draft documentation pull requests in a separate docs repo whenever a product pull request merges, with the shipping engineer assigned as reviewer.
- [The Interaction Changes Everything: Treating AI Agents as Collaborators, Not Automation](https://swe.quest/articles/the-interaction-changes-everything-treating-ai-agents-as-collaborators-not-e493683d4eddf19c.md): Engineering@Microsoft · 2025-12-03 · Medium · 9 min read · AI agents, AI for coding, LLMs, Refactoring & migrations
  Microsoft's Entra SDK v1-to-v2 migration across hundreds of repositories succeeded with an AI coding agent only after the team replaced step-by-step checklists with prompts that give the agent a role, mission and permission to use judgment.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
