SERA: Soft-Verified Efficient Repository Agents
Abstract
Open-weight coding agents should hold a fundamental advantage over closed-source systems because they can specialize to private codebases, encoding repository-specific information directly in their weights. Yet the cost and complexity of training has kept this advantage theoretical until now. We present Soft-Verified Efficient Repository Agents (SERA), an efficient method for training coding agents that enables the rapid and cheap creation of agents specialized to private codebases. Using Soft Verified Generation (SVG), we generate thousands of trajectories from any code repository, without requiring unit tests. Beyond repository specialization, we apply SVG to a larger corpus of codebases, generating 200,000+ synthetic trajectories. Using only supervised finetuning (SFT), SERA achieves leading results among fully open-source (open data, method, code) models while matching the performance of open-weight models like Devstral-Small-2. Creating SERA models is 26x cheaper than reinforcement learning and 57x cheaper than previous synthetic data methods to reach equivalent performance. We use our dataset to provide detailed analysis of scaling laws, ablations, and confounding factors for training coding agents. Overall, we believe our work will greatly accelerate research on open coding agents and showcase the advantage of open-source models that can adapt to private codebases.
Lay Summary
Closed-source models are the backbone of most coding agents but still struggle in personal and enterprise repositories because they contain code that is not seen in training data. Due to their adaptive nature, open-weight models possess an inherent advantage to be trained on these codebases at test-time. Yet the cost and complexity of training has kept this advantage theoretical until now. We present Soft-Verified Efficient Repository Agents (SERA), an efficient method for training coding agents that enables the rapid and cheap creation of agents specialized to private codebases. Our method, Soft Verified Generation (SVG), generates thousands of data samples from a single code repository without requiring unit tests. Training on these trajectories allows SERA to outperform models up to 3x its size through specialization. Beyond repository specialization, we apply SVG to a larger corpus of codebases, generating 200,000+ synthetic data samples. Using only supervised finetuning (SFT), SERA achieves leading results among fully open-source (open data, method, code) models. Creating SERA models is 26x cheaper than reinforcement learning and 57x cheaper than previous synthetic data methods to reach equivalent performance. We also conduct extensive data anaysis on scaling laws, ablations, and confounding factors for training coding agents. Overall, we believe our work will greatly accelerate research on open coding agents and showcase the advantage of open-source models that can adapt to private codebases.