Latest Findings · ASI Lab

HGARena Teaches AI Agents to Fix Real GitHub Bugs on a Budget

Real GitHub issue resolution is a different game from writing a single function: the system must read a bug report, hunt through thousands of files, edit across several of them, and prove the fix with executable tests. HGARena, a new role structured multi agent LLM framework from ASI Lab, sets up a lightweight typed graph over files, symbols, tests and edits, then runs a submitter, reviewer and executor loop under a hard 20 call budget. On the full 300 task SWE bench Lite benchmark it resolves 25.3 percent of real GitHub issues with GPT 4o, staying competitive with much heavier agent stacks.

Yuchen Cao, Jacky W. Keung, Yifei Wang, Yicheng Sun, Zhenyu Mao
Agentic Software Intelligence Research Lab · Department of Computer Science, City University of Hong Kong
COMPSAC · 2026

Real GitHub issue resolution is a different game from writing a single function: the system must read a bug report, hunt through thousands of files, edit across several of them, and prove the fix with executable tests. HGARena, a new role structured multi agent LLM framework from ASI Lab, sets up a lightweight typed graph over files, symbols, tests and edits, then runs a submitter, reviewer and executor loop under a hard 20 call budget. On the full 300 task SWE bench Lite benchmark it resolves 25.3 percent of real GitHub issues with GPT 4o, staying competitive with much heavier agent stacks.

![HGARena overview: task instance, graph retriever with four stages, and the submitter, reviewer and executor arena loop with its typed graph legend]
How HGARena works. A repository snapshot, issue description and test commands feed a graph retriever that builds the heterogeneous RepoGraph, ranks files at level one, expands symbols and tests at level two, and packs a compact context. The arena loop then alternates a submitter, a reviewer providing critique, file scope and follow up suggestions, and an executor running Docker tests, which alone decide success and feed failures back into the next iteration. The legend below shows the four node types, files, symbols, tests and patch hunks, and the typed coverage, definition, call and touch edges that connect them.

Why it matters

Most public coding benchmarks ask an AI to fill in a function in isolation. Real maintenance work does not work that way. A bug report arrives as plain language, the evidence is scattered across issue threads, source files, function bodies, call sites, failing tests and stack traces, and the only authority on whether a fix is correct is the test suite. That is a search problem over a huge and messy edit space, and any weak choice of context burns an attempt. HGARena reframes repository level issue resolution exactly this way, as a budgeted search problem, so a software engineering agent must decide not only what patch to write but what evidence to look at next.

The framework treats the repository as a typed graph rather than a pile of text chunks. Files, symbols, tests and patch hunks become distinct node types, joined by definition, import, call, coverage and touch edges. Because failing tests and past edits sit in the graph as first class signals, the system can follow a failure from a test to the symbol it covers and onward to the code that symbol calls, which is exactly what a human engineer does by hand. On top of that, HGARena makes the reviewer a guide rather than a judge. LLM as a judge is known to be unstable, so reviewers here only point out likely failure causes and promising follow up edits, while Docker test execution remains the sole acceptance oracle. That combination is what makes the review loop trustworthy and reproducible in principle.

Key findings

One typed graph, three roles, twenty calls

What it means for practitioners

For teams building software engineering agents, the practical lesson is that iteration matters far more than prompt polish, but unbounded iteration quietly drains your API budget. Adding a cheap structural index over the repository as a retrieval scaffold is a near zero cost way to shrink the context you drag through each round, and it declines gracefully when graph signals are missing because lexical recall still carries coverage. Structured reviewer feedback also converts the sparse pass or fail signal from a test runner into a concrete next edit, which is precisely where most repair loops stall.

The design is also deliberately deployment friendly. The graph is built with ordinary parsers, the reviewer ensemble costs a single call per round, and the acceptance criterion is whatever test command the project already ships. Because quality held steady across three different commercial models with only a modest spread, teams can pick their backbone purely on cost, latency or availability, and expect comparable resolution quality. The released code and case study records make it straightforward to reproduce the setup and extend it toward multilingual repositories and open source models.

Related reading

Get the paper & cite it

Download full PDF ↓ View at DOI

Official citation: Yuchen Cao, Jacky W. Keung, Yifei Wang, Yicheng Sun, Zhenyu Mao (2026). HGARena: Budgeted Test-Driven Multi-Agent Repository Issue Resolution with Heterogeneous Graph-Augmented Retrieval.. COMPSAC. DOI: 10.1109/COMPSAC69091.2026.00062.

multi-agent GitHub issues retrieval software engineering code generation