---
title: "Replaying merged changes: how we test whether a knowledge base makes coding agents better"
description: "Grab evaluates its per-service knowledge base for coding agents by replaying merged MRs: rewind to the pre-merge commit, scrub the request of solution hints, have two otherwise identical agents plan the change with and without the knowledge base, and have an LLM grader score each plan against the merged diff on an 8-point rubric."
url: "https://swe.quest/articles/replaying-merged-changes-how-we-test-whether-a-knowledge-base-makes-coding-76795194d6a248c9"
canonical: "https://engineering.grab.com/replaying-merged-changes-knowledge-base-coding-agents-better"
source: "Grab Engineering"
published: "2026-11-23"
difficulty: "medium"
kind: "Case study"
reading_minutes: 12
tags: ["ai-coding","evals","ai-agents","llms"]
---

# Replaying merged changes: how we test whether a knowledge base makes coding agents better

A post on [Grab Engineering](https://swe.quest/sources/grab.md), published 2026-11-23, 12 min read, Case study. Original: [https://engineering.grab.com/replaying-merged-changes-knowledge-base-coding-agents-better](https://engineering.grab.com/replaying-merged-changes-knowledge-base-coding-agents-better)

## Summary

Grab evaluates its per-service knowledge base for coding agents by replaying merged MRs: rewind to the pre-merge commit, scrub the request of solution hints, have two otherwise identical agents plan the change with and without the knowledge base, and have an LLM grader score each plan against the merged diff on an 8-point rubric. Across 50 MRs and five agent stacks, every stack with the knowledge base beat the strongest stack without it, and the weakest plans gained the most. Most of the lift came from code-derived flow documents, impact maps and live config values, which are built from static call-graph analysis before any LLM summarisation. The same replay now gates major knowledge-base updates, which ship only if scores hold.

Written by swe.quest, not by the author.

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

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM coding agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Git worktrees and merge requests
- LLM-as-judge evaluation ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Grab, Grab Bench, Git worktree, knowledge base, merge request replay

## Related posts

- [When AI Writes the Code, What Counts as Evidence?](https://swe.quest/articles/when-ai-writes-the-code-what-counts-as-evidence-b44b970cb226fefb.md): Stack Overflow Blog · 2026-11-25 · Easy · 7 min read · AI for coding, AI agents, Documentation, Testing, Developer productivity
  Coding agents increasingly investigate and fix failures in private sessions, delivering patches while discarding the reasoning, failed attempts and environmental context that teams used to preserve as shared troubleshooting knowledge.
- [How we make Together AI easy for coding agents to use](https://swe.quest/articles/how-we-make-together-ai-easy-for-coding-agents-to-use-b80d8f2951e810be.md): Together AI · 2026-11-16 · Medium · 13 min read · Evaluation, AI agents, AI for coding, Documentation, API design
  Together AI runs agent evals to measure how well coding agents use its platform, executing each realistic task prompt under baseline, docs-MCP and skills configurations across three models in sandboxes, with a proxy recording API calls and an LLM judge scoring pass/incomplete/fail.
- [Why coding agents fail in large codebases (and what to do about it)](https://swe.quest/articles/why-coding-agents-fail-in-large-codebases-and-what-to-do-about-it-67302cc99ae40bda.md): Sourcegraph · 2026-05-08 · Medium · 8 min read · AI for coding, AI agents, Search, Evaluation, RAG & retrieval
  Across 1,281 scored agent runs on 40+ large open-source repos (CodeScaleBench), coding agents fail in five repeatable ways: getting lost in exploration, picking the wrong file or symbol, partial completion, tool thrashing, and context overflow.
- [Sourcegraph MCP server and a cheaper model beat a Mythos-class model alone](https://swe.quest/articles/sourcegraph-mcp-server-and-a-cheaper-model-beat-a-mythos-class-model-alone-62154a407988cfbb.md): Sourcegraph · 2026-06-16 · Easy · 3 min read · AI agents, Evaluation, AI for coding, LLMs, Cost optimization
  On nine discovery-heavy CodeScaleBench tasks, Claude Sonnet 4.6 using the Sourcegraph MCP server with no source on disk scored a mean reward of 0.698, beating Claude Fable 5 with a full local checkout (0.568) and winning six of nine tasks at $1.02 versus $1.83 per quality point.
- [Introducing Supabase Evals](https://swe.quest/articles/introducing-supabase-evals-c82dd59072e477b7.md): Supabase · 2026-07-31 · Medium · 5 min read · Evaluation, AI agents, AI for coding, Testing
  Supabase has open-sourced supabase/evals, a framework that runs coding agents like Claude Code, Codex and OpenCode against real Supabase tasks in containerized hosted-like and local CLI stacks.

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)
