How LINE Games Built a Code Review Agent Linking MR Reviews to API Documentation Change Proposals

Key point

LINE Games completed 338 reviews across 263 MRs with an agent connecting code reviews to reviews of API documentation change proposals.

1 / 14

Details

  • LINE Games and GS Neotek implemented an agent workflow that applied relevant code and repository-specific team review criteria to code reviews, and had owners review API documentation change proposals aligned with the final MR changes.
  • In an internal golden set of 20 MRs, reviews based only on diffs found all affected configurations in 2 cases, while reviews supplemented with relevant code and reference-search tools found them in all 20 cases.
  • From September 28 to November 10, 2026, the agent completed 338 code reviews across 263 distinct MRs. Direct review requests came from 20 repositories, or 22 when webhook-triggered automatic reviews were included.
  • The agent presented API documentation change proposals with supporting evidence, allowing owners to accept them, provide feedback for another review, or exclude them.

Code Review Agent

  • When a developer specified a GitLab MR on the web or a GitLab webhook sent a request to Amazon SQS, an agent in Amazon Bedrock AgentCore Runtime ran the same review workflow and stored the results and history.
  • Tree-sitter found code for the functions or classes containing changed lines, and LSP looked up definitions and references. SCIP indexes were stored in S3 to reuse code context matched to the repository and commit.
  • During reviews, the agent allocated a separate number of exploration steps to each candidate, prioritized running lint and relevant tests for changed files, and requested E2E tests in a sandbox when needed. SOP defined the shared procedures, and Amazon Bedrock AgentCore Memory stored only repository-specific design intent confirmed by the owner.

API Documentation Change Proposals

  • The agent used a Map-Reduce approach to extract changes from MR descriptions and discussions, commits and diffs, related code, and review records, then compare them with the final implementation. By default, Map used Claude Haiku 5.5, while Reduce and comparison against the source used Claude Sonnet 5.5.
  • It searched for relevant documentation using the repository, SDK category, and game engine as search criteria, and divided reviews according to the impact of the change: Tier 1 examined one section, while Tier 2 checked multiple document sections and examples. For Tier 2, the same Claude Sonnet 5.5 was called in the roles of proponent, challenger, and final verifier to check the proposals' supporting evidence and consistency.
  • In actual Unity NTSDK cases, MR 429 had 3 proposals across 2 documents pass validation, and MR 454 had 1 proposal in 1 document pass. MR 425 was put on hold due to insufficient evidence about the execution environment, MR 450 was categorized by document as either not needing changes or needing further review, and MR 415, which changed only documentation, was excluded from review.

Operational Metrics and Future Plans

  • The time from review request to result was a median of 3.0 minutes, with the top 10% taking 6.9 minutes. Reviewer execution took 2.2 minutes, Context exploration 19.1 seconds, repository checkout 1.3 seconds, and validation of issues requiring changes 0.1 seconds.
  • By change size, the number of runs, median cost, and median time were: under 200 lines, 82 runs, $0.28, and 1.2 minutes; 200–1,000 lines, 96 runs, $1.25, and 2.5 minutes; 1,000–5,000 lines, 111 runs, $2.98, and 3.8 minutes; and 5,000 lines or more, 49 runs, $4.66, and 5.1 minutes.
  • The median model cost per review was $1.59, and the average was $2.72. Runs in the top 10% by cost accounted for 38.5% of total costs. The median change size was 15 files and 820 lines, while the number of reviews of the same MR was a median of 1, 2 for the top 10%, and a maximum of 8. Some model calls exceeded $10, and the team is adjusting the system to reduce initial input, exploration depth, and number of runs.
  • As a next step, the team plans to apply owner-approved proposals to Confluence and connect the published documentation to the Nexus AI knowledge base.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.