Graph-First, Reproduce-First: A Small-Model Coding Agent Design for Gemma 4 E4B Under a 12-Hour Budget

Small open models lose coding-agent benchmarks twice: once on reasoning, and once on the clock. In the Gemma 4 Developer Agent Competition an agent must fix roughly 120 hidden Python tasks inside a single 12-hour run, with a 32,768-token context window, using one fixed Gemma 4 checkpoint for every agent and sub-agent. A slow 31B model that times out on half the tasks scores worse than a fast 4B model that finishes all of them. This paper proposes a design built for that constraint rather than against it: a graph-first, reproduce-first agent on Gemma 4 E4B. Localisation walks the repository's code graph before any file is read in full; a reproduce-first sub-agent writes a failing test before any patch is attempted; a test-runner skill keeps raw test output out of the context window; and hard per-task time, turn and tool-call caps stop one stubborn task from eating the shared budget. Fine-tuning is restricted to LoRA adapters trained only on the agent's own passing trajectories on public tasks, so no outside model's outputs and no hidden test data enter training. The design is drawn from three small-model agent systems the author has actually built and run — a multi-provider agent HUD, a multi-agent debate bot, and a personal retrieval system — and from two published public findings: scaffolding lifts E4B from 10.0% to 15.4% resolved while barely moving larger models, and the best public walkthrough scores 0.15. The first measured run, reported in Section 5, resolved 12 of the 129 public development tasks (9.3%) in 3 hours 34 minutes — below the 15.4% the published scaffold study reported for E4B — so the design as built does not yet match the published result, and Section 5's failure ladder says where the next work belongs.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-25
DOI
https://doi.org/10.5281/zenodo.24538056
Primary Topic
Software Engineering Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Graph-First, Reproduce-First: A Small-Model Coding Agent Design for Gemma 4 E4B Under a 12-Hour Budget

Syed Shahed
4 links
Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
preprint

Graph-First, Reproduce-First: A Small-Model Coding Agent Design for Gemma 4 E4B Under a 12-Hour Budget

Syed Shahed
preprint en

Abstract

Small open models lose coding-agent benchmarks twice: once on reasoning, and once on the clock. In the Gemma 4 Developer Agent Competition an agent must fix roughly 120 hidden Python tasks inside a single 12-hour run, with a 32,768-token context window, using one fixed Gemma 4 checkpoint for every agent and sub-agent. A slow 31B model that times out on half the tasks scores worse than a fast 4B model that finishes all of them. This paper proposes a design built for that constraint rather than against it: a graph-first, reproduce-first agent on Gemma 4 E4B. Localisation walks the repository's code graph before any file is read in full; a reproduce-first sub-agent writes a failing test before any patch is attempted; a test-runner skill keeps raw test output out of the context window; and hard per-task time, turn and tool-call caps stop one stubborn task from eating the shared budget. Fine-tuning is restricted to LoRA adapters trained only on the agent's own passing trajectories on public tasks, so no outside model's outputs and no hidden test data enter training. The design is drawn from three small-model agent systems the author has actually built and run — a multi-provider agent HUD, a multi-agent debate bot, and a personal retrieval system — and from two published public findings: scaffolding lifts E4B from 10.0% to 15.4% resolved while barely moving larger models, and the best public walkthrough scores 0.15. The first measured run, reported in Section 5, resolved 12 of the 129 public development tasks (9.3%) in 3 hours 34 minutes — below the 15.4% the published scaffold study reported for E4B — so the design as built does not yet match the published result, and Section 5's failure ladder says where the next work belongs.

Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon