Infrastructure
Repo-level coding agents benefit from models that can reason over large portions of a codebase, not just individual files. Long-context open-weight code LLMs have emerged as a foundation for these agents, supporting code generation, bug fixing, and refactoring across complex software projects. This guide examines seven essential components for building production-ready repo agents in 2026, starting with Modal, the AI infrastructure platform that can run open-weight and custom code models for deployment as production repo agents.

Repo-level coding agents benefit from models that can reason over large portions of a codebase, not just individual files. Long-context open-weight code LLMs (models distributed as downloadable weights, which is a narrower claim than the OSI Open Source AI Definition) have emerged as a foundation for these agents, supporting code generation, bug fixing, and refactoring across complex software projects. Longer context windows can reduce retrieval and chunking requirements for small and medium repositories, though large repositories still require repository indexing, retrieval, context selection, or summarization. Even the most capable model is only as effective as the infrastructure running it. Choosing the right serverless GPU infrastructure determines whether your repo agent can scale from prototype to production without infrastructure headaches. This guide examines seven essential components for building production-ready repo agents in 2026, starting with Modal, the AI infrastructure platform that can run open-weight and custom code models for deployment as production repo agents.
Modal provides the serverless AI infrastructure layer, with compute across CPUs and GPUs, that makes deploying long-context code LLMs practical for production repo agents. Rather than competing with the models themselves, Modal serves as the foundation enabling teams to deploy, scale, and secure their chosen model without managing GPU clusters or container orchestration.
Modal turns code into serverless cloud workloads through a simple code-first API, with SDKs in Python, TypeScript, and Go. For code LLMs, this means:
Modal's architecture addresses several challenges of deploying long-context code models:
Production repo agents require enterprise-grade security. Modal delivers:
Best For: Teams building production repo agents that need to deploy open-weight or custom code LLMs with autoscaling, gVisor-isolated code execution, and per-second billing without operating GPU clusters.
Qwen3-Coder-Next is a strong candidate when low active-parameter compute is a priority for repo-level coding agents. This 80B parameter model uses a hybrid Mixture-of-Experts (MoE) architecture that activates only 3B parameters per token, delivering strong performance for its active-parameter compute.
Qwen3-Coder-Next achieves 70.6% on SWE-bench Verified with SWE-Agent (71.1% with MiniSWE-Agent and 71.3% with OpenHands), under the technical report's 300-turn evaluation configuration. Additional results include:
Every SWE-bench result should name the scaffold and evaluation configuration, since results are not model-only constants.
A four-bit deployment may fit the model's weights on a single 80GB GPU, but actual VRAM depends on quantization, context length, KV-cache precision, batching, and engine. Modal's GPU interface provisions the GPU configuration the developer specifies, and for supported model families Modal Auto Endpoints can select a compatible serving recipe. Teams can benchmark quantization and parallelism options on Modal to find a configuration that fits their latency and memory targets.
Best For: Teams that prioritize low active-parameter compute for high-volume agent workloads, where MoE efficiency can reduce per-token cost relative to dense models of comparable capability.
Qwen3-Coder-480B-A35B-Instruct was one of the largest dedicated open-weight code models at its 2025 release. It is no longer the largest available coding-focused model by total parameter count: Moonshot AI's Kimi K2.7 Code is a coding-focused MoE model that lists 1 trillion total parameters. The 480B model targets organizations working with complex, multi-step coding tasks on large codebases.
Published SWE-bench Verified results for this model vary by scaffold and evaluation protocol. Moonshot AI's Kimi K2 evaluation table attributes 69.6% to Qwen3-Coder-480B under its cited setup. The 74.2% figure with SWE-Agent belongs to GLM-4.7 in the Qwen3-Coder-Next technical report, not to Qwen3-Coder-480B, and that same table lists MiniMax-M2.1 at 74.8%, so 74.2% is not the highest even within that evaluation. Because scaffolds and protocols differ, no single figure should be presented as a universal score. The scale can help on:
Serving a model of this size requires multi-GPU deployment. Modal can provision requested multi-GPU machines and provides cluster primitives for distributed workloads. Developers configure GPU count, tensor parallelism, and model-server settings in code, and Modal provisions the requested resources.
Best For: Enterprise teams with complex codebases that need a very large MoE model, particularly for automated code review and large-scale refactoring initiatives.
Devstral-Small-2-24B-Instruct-2512 from Mistral AI offers strong agentic coding capability under a permissive Apache 2.0 license.
Devstral Small 2 achieves 68.0% on SWE-bench Verified, competitive with much larger models. Additional figures from Mistral's published table:
(The 61.3% SWE-bench Multilingual figure sometimes cited belongs to the larger Devstral 2 123B model, not to Devstral Small 2. The 40.5% Terminal-Bench figure does not match the value in Mistral's Devstral Small 2 table, which reports 22.5%.)
The dense architecture eliminates MoE routing overhead, making inference behavior more predictable. For teams prioritizing license clarity and deployment simplicity, Devstral Small 2 is a permissively licensed 24B option worth evaluating.
Best For: Organizations that want Apache 2.0 licensing for commercial products, particularly those building developer tools where license clarity affects customer adoption.
Qwen3-Coder-30B-A3B-Instruct is a smaller Qwen coder variant with lower weight-memory requirements and Apache 2.0 licensing.
For teams processing millions of tokens monthly, the combination of a small active-parameter count and permissive licensing makes this a candidate for high-volume workloads where per-token cost matters. The lower weight-memory footprint also enables deployment on less expensive GPU tiers, with real cost efficiency tracking your own hardware prices, latency targets, and task success rates.
Best For: Cost-conscious teams needing production-grade code generation at scale, particularly those with existing A100 40GB capacity or seeking to minimize weight-memory footprint.
Kimi-Dev-72B from Moonshot AI takes a specialized approach to coding capability through reinforcement learning on Docker test suites.
Unlike models trained primarily on code completion, Kimi-Dev-72B underwent reinforcement learning using Docker-based test execution, with reward based on passing the full test suite. This approach optimizes for real-world software engineering tasks where tests validate code correctness.
The model card reports 60.4% on SWE-bench Verified, a solid agentic result at its original release, though below the strongest published 2026 agentic-coding numbers. The specialized RL training may offer advantages on specific task types not captured by standard benchmarks.
Best For: Teams interested in models trained specifically for test-driven development workflows, or those seeking an MIT-licensed alternative to the Qwen family.
Yi-Coder-9B-Chat from 01.ai provides an accessible entry point for teams exploring repo-level coding agents without significant infrastructure investment.
While benchmark performance trails larger models, Yi-Coder-9B suits scenarios where:
For teams using Modal Notebooks, Yi-Coder-9B is a lightweight option for interactive development and prototyping with modest GPU overhead.
Best For: Individual developers and small teams prototyping repo agents, or organizations needing fast, lightweight code assistance for less complex tasks.
For supported model families, Modal Auto Endpoints select a compatible serving recipe. For custom deployments, developers choose the GPU configuration and can benchmark alternative quantization, parallelism, and memory-management strategies on Modal. Active parameter count alone does not determine VRAM needs, since most or all expert weights may still need to reside in memory depending on serving architecture and offloading strategy. Managed recipes and workload benchmarking help teams avoid unnecessarily expensive GPU configurations.
Repo agents experience highly variable load, with intense activity during code review cycles and minimal usage overnight. Modal's scale-to-zero capability means teams pay for compute while containers run and can scale to zero when no containers are active, helping avoid the fixed cost of permanently allocated GPUs. Because billing is per second across CPU and GPU resources, savings track directly with real utilization, traffic distribution, warm-container settings, and GPU choice, so teams can model them from their own workload characteristics.
Repo agents execute AI-generated code to test solutions and validate changes. Modal's gVisor-isolated Sandboxes contain untrusted generated code and begin without access to other Modal resources. Teams decide exactly which Secrets, storage, and credentials a Sandbox receives, so access to sensitive resources stays explicitly scoped by design. Sandboxes also support both common agent architectures: running the agent inside the Sandbox, which is a quick starting point for internal coding agents, and running the agent outside the Sandbox, which gives platforms with proprietary agent logic a cleaner separation of concerns. Ramp, for example, built a background coding agent on Modal that generates code changes and writes them back as commits and pull requests.
Modal's code-first SDKs, available in Python, TypeScript, and Go, reduce the infrastructure complexity that typically accompanies LLM deployment. A concise, code-defined declaration specifies compute resources across CPUs and GPUs, container configuration, and scaling behavior. This simplicity accelerates the path from prototype to production, allowing teams to focus on agent logic rather than infrastructure orchestration.
For organizations deploying code LLMs on proprietary codebases, security matters. Modal's SOC 2 Type II audit (announced January 2025 with no deviations), HIPAA-compliant workloads on Enterprise plans via a BAA, and gVisor-based isolation provide a security foundation for enterprise teams.
Start deploying long-context code LLMs on serverless GPU infrastructure today.
Get Started with ModalLong-context LLMs can process roughly 131,072 to 262,144 tokens or more in a single inference call. For repo agents, larger context windows can reduce retrieval and chunking requirements for small and medium repositories, though large repositories still require repository indexing, retrieval, context selection, or summarization. A context limit is a maximum token budget shared across system instructions, tool traces, tests, dependency documentation, and generated output, not a guarantee that an entire repository fits or that the model will use all included information accurately. Models with 262,144-token native context (the Qwen coder family and Devstral Small 2) provide the largest windows in this list.
Teams specify the compute they need, including GPU type and count, through Modal's code-first SDKs (Python, TypeScript, and Go), and Modal provisions and scales the requested resources. Developers configure the inference engine, tensor parallelism, and startup optimization; for supported model families, Modal Auto Endpoints can select a compatible serving recipe. Modal publishes deployment examples and reference implementations for inference engines including vLLM, SGLang, and TensorRT-LLM.
VRAM depends on precision, context length, KV-cache configuration, and inference engine. Approximate four-bit weight footprints are: Yi-Coder-9B about 5GB (its BF16 weights are about 18GB), Qwen3-Coder-30B about 15 to 19GB, Qwen3-Coder-Next about 40GB, and Qwen3-Coder-480B about 240GB. Kimi-Dev-72B's released BF16 weights are about 145GB, and Devstral Small 2 can run in reduced precision on a 24GB RTX 4090 or a 32GB Mac. Practical memory adds KV cache, runtime buffers, and batching overhead. Modal's provisioning handles the GPU configuration the developer specifies.
The Apache 2.0 licensed models (Devstral Small 2, Qwen3-Coder-30B, Yi-Coder-9B, and the Qwen3-Coder-Next and 480B releases) permit commercial deployment subject to the license's conditions; Kimi-Dev-72B is MIT licensed subject to the Qwen-2.5-72B agreement. On Modal, these models can run on SOC 2 Type II audited infrastructure with gVisor isolation for code execution, and Modal supports HIPAA-compliant workloads on Enterprise plans via a BAA.
The Qwen3-Coder family offers tiered options: the 480B model activates 35B parameters for the largest memory footprint; the Next variant delivers comparable benchmark performance at roughly 10 to 20x fewer active parameters and surpasses the 480B on several published evaluations, including LiveCodeBench v6, OJBench, Codeforces rating, and Aider-Polyglot; and the 30B model has the smallest weight-memory footprint. No single variant is uniformly most accurate or most cost-efficient across all agent scaffolds and workloads. Teams should select based on their benchmark requirements, infrastructure budget, context-length needs, and licensing constraints.