Can an AI code reviewer get sharper by actually learning your project's house style and what reviewers have rejected before?
Can AI agents improve accuracy by learning a project's style guide and review history?
This explores whether an AI agent, especially one reviewing code, gets more accurate when it absorbs a project's local conventions and the record of what past reviewers accepted or rejected, rather than relying on general training alone.
This explores whether an AI agent gets more accurate when it learns a specific project's conventions and its history of past review decisions, instead of applying general-purpose judgment. The corpus doesn't hold a direct test of an agent trained on a style guide and review log, so there's no clean before-and-after number to give you. What it does hold is a strong case for why that missing local knowledge is the main thing going wrong, plus several adjacent results showing that accumulated history does improve accuracy when it's stored and used carefully.
Start with the diagnosis. A study of 31,073 CodeRabbit reviews across 239 repositories found developers rejected 56.3% and accepted 36.4%, with rejections driven mostly by false positives that came from misunderstanding the system's design and the surrounding code context Do developers actually accept AI code review suggestions?. That's the interesting part: the reviewer isn't failing at general programming knowledge, it's failing at knowing how this particular project works. That is exactly the gap a style guide and a review history would be meant to fill, which makes the idea plausible, though the study itself measures the problem rather than the cure.
The closest evidence that history helps comes from a different angle. XConf improves a model's sense of when it's right by retrieving its own past episodes and reading their actual success rates, matching ten-sample self-consistency at a tenth of the cost, and the ablations show the benefit comes entirely from the stored outcomes, not from the retrieval prompt Can past performance predict when a model will be right?. Translated to review: a log of which suggestions were accepted and which were thrown out is the valuable part, more than any instruction to 'be careful.' Similarly, SkillOpt treats an agent's skill document as something trainable, accepting an edit only if it improves performance on held-out cases, and it gains accuracy with no added inference cost Can skill documents be optimized like neural network weights?. A style guide that gets revised against real review outcomes is essentially that.
Two cautions make this less simple than 'feed it everything.' First, memory can carry mistakes forward: an agent-based evaluator cut judge inconsistency from 31% to 0.27%, but its memory module cascaded errors, so one bad stored judgment contaminated later ones Can agents evaluate AI outputs more reliably than language models?. A review history full of sloppy approvals would teach an agent the sloppiness. Second, where the knowledge lives matters. Fin's Blueprint Team recommends keeping factual content in a retrievable knowledge base and reserving instructions for tone and behavior rules Should factual content and behavior rules live separately?, which suggests conventions about how to behave belong in the agent's instructions while the bulk of project facts and past decisions should be looked up when relevant.
So the honest answer is: probably yes, and the corpus explains why, but the gain depends less on having the history than on filtering it. The pattern across these results is that outcome records beat written advice, and that anything learned needs a check against held-out cases before it's trusted.
Sources 5 notes
A study of 31,073 CodeRabbit reviews across 239 repositories found 56.3% rejected (mostly as false positives), 36.4% accepted, with rejections driven by misunderstanding of system design and code context.
XConf matches ten-sample self-consistency at a tenth of the cost by retrieving the model's past episodes with similar confidence levels and reading their historical success rates. Ablations show the signal depends entirely on stored outcomes, not on the retrieval prompt itself.
SkillOpt treats skill documents as trainable external state of frozen agents, using a text-space optimizer with held-out validation gating to accept only edits that improve performance. Across 52 benchmark cells and seven models, the approach matches or exceeds baselines while adding zero inference cost and enabling transfer across models.
Eight-module agentic evaluation achieved 0.27% judge shift versus 31% for LLM-as-a-Judge on complex tasks. However, the memory module cascaded errors, revealing that agentic systems need error isolation mechanisms to maintain gains.
Fin's Blueprint Team recommends routing factual content to retrievable knowledge bases while keeping only tone and behavioral directives in agent instructions. This split aligns with instruction-tuning research showing models follow what-to-do rules better than what-to-ignore constraints.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- LatentSkill: From In-Context Textual Skills to In-Weight Latent Skills for LLM Agents
- Confidence Comes from Experience: Experiential Confidence Estimation from Reasoning to Agents
- Is Agentic Code Review Helpful? Mining Developers' Feedback to CodeRabbit Reviews in the Wild
- SkillOpt: Executive Strategy for Self-Evolving Agent Skills
- Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debate
- Finance Agent Benchmark: Benchmarking LLMs on Real-world Financial Research Tasks
- When AIs Judge AIs: The Rise of Agent-as-a-Judge Evaluation for LLMs
- Agent-as-a-Judge: Evaluate Agents with Agents