Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Sourcegraph 4 min read Case study mediumAdept

Keeping code moving with clearer review expectations

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.

Assumes: GitHub pull request workflowcode review processes

Related posts

  • Accelerating Delivery: How AI Agents Can Own the Initial Code Draft

    8th Light easyNovice

    A multi-agent workflow turns a Jira ticket prompt like "Let's work on FEAT-123" into a review-ready pull request. An orchestrator spawns narrowly scoped planning, coding and review agents to avoid context rot. Safety comes from branch permissions, scoped hooks and mandatory human merge. Reliability comes from a hierarchy of hooks/scripts, then specialized agents, then repository context files, along with caps on review rounds and build-repair attempts that hand control to a developer. Adversarial plan review, holistic changeset review and a retrospective that writes lessons back to agent context files produced a fourfold increase in PRs opened without flooding reviewers, though the text gives little implementation detail.

  • Four minutes after midnight, Codex said the page was live

    Render mediumAdept

    OpenAI's Dominik Kundel argues that with agentic delegation, code is no longer the bottleneck. What matters is the harness around the agent: context, validation and verification. Codex reaches context through plugins (Slack, Notion, Drive, Linear), Memories and Chronicle. It validates its own work with fast tests, linters like Vale for docs, parallel app copies, CDP debugging and deployment-watching plugins. Changes get verified by a separate Codex review session tuned via AGENTS.md to flag only P0/P1 issues, plus deploy previews or videos. Recurring feedback should become skills, lint rules or tests rather than repeated corrections, illustrated by Codex shepherding a midnight docs deploy end to end.

  • Better tools made Copilot code review worse. Here’s how we actually improved it.

    GitHub Engineering mediumAdept

    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. Benchmark traces exposed the browsing loop, and rewriting tool guidance around a reviewer's workflow (form questions from the diff, narrow with grep/glob, batch discovery, view only known ranges, recover from failed searches with simpler queries or glob) cut average review cost about 20% in production without a quality regression. The same focused instructions did not help the interactive CLI, so tool prompting must match the product's job.

  • Automating cross-repo documentation with GitHub Agentic Workflows

    GitHub Engineering mediumAdept

    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 agent gets read-only access and emits intent, while a narrowly scoped safe-outputs handler with a two-repo GitHub App token, branch allow-lists, protected files and draft-only PRs performs the writes. A deterministic bash resolver maps milestones to docs release branches before the agent runs. Over 30 days, 396 runs produced 82 docs PRs, all merged, at a median 44.8 hours, after the prompt was tightened with negative examples to cut an initial ~13% false-positive rate.

  • The Interaction Changes Everything: Treating AI Agents as Collaborators, Not Automation

    Engineering@Microsoft mediumAdept

    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. The result was 80–90% accuracy, with each repository done in under 2 hours instead of 4–6 weeks. The shared eight-part prompt template covers identity and mission, purpose, prioritized goals, steps with examples and escalation triggers, never/always security boundaries, self-validation and PR documentation, an explicit escalation process (including stopping after the same error twice), and a closing of recognition. Reported effects include more escalation instead of guessing, better PR descriptions, more graceful failures, and reuse of the template for security analysis, code review and documentation.

The quest for software engineering knowledge.

Look:
Layout: