WorksComputer Science
OPRD: On-Policy Reminder Distillation for Long-Horizon Coding Agents
Abstract
Reliable repository-level coding requires agents not only to generate correct code but also to preserve constraints and respond to tool feedback across long interactions. However, our diagnostic analysis shows that agents often fail to act on relevant information already available in context, while final Pass/Fail outcomes provide only sparse process supervision. We introduce On-Policy Reminder Distillation (OPRD), which combines Multi-Scope Reminder supervision with outcome-based routing on reminder-free student rollouts. Successful rollouts provide autoregressive self-imitation targets, whereas failed rollouts receive Reminder-conditioned reverse-KL supervision from a teacher that re-evaluates the same student-generated prefixes. A Global Reminder converts final-test diagnostics into trajectory-level guidance, while Turn-local Reminders apply only to the next decision following the relevant environment observation. The teacher and student share a two-stage initialization from Coding SFT and Instruction-Following (IF) SFT. At inference, the student operates without Reminders. On SWE-bench Verified, SWE-bench Pro, and SWE-bench Multilingual, OPRD improves the benchmark-averaged task resolution rate by 11.3 points over the open-source Qwen3.5-4B base model. Under the same diagnostic protocol, it reduces the aggregate error-event count from 446 to 222, a 50.2% reduction.
Introduction
Large language models have advanced in reasoning ([47, 7, 25] (Xu et al. 2026b)) and repository-level software engineering ([41, 14, 50, 28, 35] (Yang et al. 2024a)). Reliable long-horizon coding nevertheless requires agents to preserve task constraints and adapt to tool and execution feedback ([43, 4]). We examine this challenge on 200 SWE-rebench V2 validation tasks ([3]), using two Qwen3.5-4B rollouts per task under identical inference settings ([31]). In the reminder-free rollout, deterministic rules identify explicit tool and execution failures, while GPT-5.4 classifies remaining context-dependent events from the task and complete trajectory ([27]). Each event belongs to one of four categories in Table 6: Tool-Feedback Recovery, Scope and Source Grounding, Scenario-Condition Reasoning, and Post-Edit Control and Validation. In the second rollout, the agent
| ID | Functional Class | Original Rubric Source | Count |
| R1 | Tool-Feedback Recovery | Deterministic hard rules | 10 |
| R2 | Scope and Source Grounding | Scope/patch and source/path slots | 10 |
| R3 | Scenario-Condition Reasoning | Scenario/condition slot | 5 |
| R4 | Post-Edit Control and Validation | Post-edit drift and validation/wrap-up slots | 7 |
| Total | 10 hard rules and 22 non-hard strategies | 32 |
Table 6. The four reporting classes used for functional Reminder analysis. The mapping is a fixed partition of the 32 original rubric categories.
restarts from the task under the same settings, and the Reminder mechanism examines each environment observation to decide whether to insert a Turn-local Reminder before the next action. Applying the same annotation protocol reveals fewer error events across all four categories (Figure 1). Post-hoc annotation audits completed trajectories, while runtime Reminder selection uses only the currently visible interaction prefix. This finding suggests that reliable long-horizon coding requires models to preserve task-level constraints across a trajectory and use local interaction feedback at appropriate decision points. A natural direction is therefore to provide process-level corrective information with explicit temporal scope.

Figure 1. Diagnostic analysis of Qwen3.5-4B on 200 tasks from the SWE-rebench V2 validation set. Left: a Scope and Source Grounding example in which a Turn-local Reminder prevents unsupported patch expansion. Right: aggregate error-event counts across four categories under Reminder-free and Reminder-augmented settings; percentages indicate relative reductions.
However, coding-agent training relies on supervised imitation of successful trajectories or executable-outcome optimization ([29, 13, 34]). These signals improve task completion but do not indicate which constraints should persist or which observation should guide the next decision. At inference time, agents can adapt to feedback ([43, 4]) or recover missed information through reflection and self-critique [32, 24, 9]. Runtime reminders require deployment-time construction and injection, consume context, and tie behavior to an agent scaffold. On-policy distillation trains students on self-generated outputs to reduce train–inference mismatch [1] (Gu et al. 2024). Related work uses context- and feedback-conditioned distillation to internalize behavior induced by auxiliary instructions or environment feedback [11] (Ye et al. 2026). Applying these ideas to long-horizon coding leaves two challenges. First, training-time corrective information can encode persistent constraints and local corrections from observations relevant to one decision. Without explicit scopes, local corrections may be diluted in long contexts or propagated to unrelated decisions. Second, models without instruction-following adaptation may ignore constraints and feedback, so teacher reminders may not produce reliable distillation targets.
This raises a practical question: Can we internalize scope-specific corrective information during training so that a coding agent can operate without reminders at inference time?
We address this with On-Policy Reminder Distillation (OPRD), which combines Multi-Scope Reminder supervision with outcome-based routing on rollouts from a reminder-free student. For failed trajectories, we construct reminders from task, trajectory, and execution/validation records. A Global Reminder converts final-test diagnostics into trajectory-level guidance. A Turn-local Reminder is anchored to an observation and applies only to the next decision. This combines trajectory-level feedback with local correction without propagating local feedback to unrelated decisions. For reliable supervision, our two-stage cold start uses Coding SFT to establish coding capabilities and Instruction-Following (IF) SFT to improve responsiveness to constraints, feedback, and reminders. Both models are initialized from the IF checkpoint. Based on executable verification, OPRD routes successful rollouts to autoregressive self-imitation and failed rollouts to reminder-conditioned distillation without reinforcing erroneous decisions. For failures, the teacher re-evaluates student-generated prefixes under reminders, while the student matches the teacher distribution through Top-100 reverse KL. OPRD internalizes scope-specific corrections, enabling the student to act on corresponding constraints and feedback without reminders at inference time. We evaluate OPRD on SWE-BENCH VERIFIED, SWE-BENCH PRO, and SWE-BENCH MULTILINGUAL [26, 8, 40]. OPRD improves the benchmark-averaged task resolution rate by 11.3 points over the open-source Qwen3.5-4B base model. Under the same diagnostic protocol, the trained OPRD model reduces the aggregate error-event count across the four categories from 446 to 222, a 50.2% reduction relative to the base model.
Our main contributions are threefold:
Multi-Scope Reminder supervision for long-horizon coding. We combine a Global Reminder that provides guidance across the trajectory with Turn-local Reminders that target only the next decision, enabling process-level supervision at complementary temporal scopes.
On-Policy Reminder Distillation with Outcome-Based Routing. We propose OPRD, which learns from verified successful rollouts through autoregressive self-imitation and from failed rollouts through reminder-conditioned reverse KL distillation.
A two-stage supervised cold start for reliable reminder distillation. Coding SFT followed by IF SFT provides a shared teacher–student initialization that improves responsiveness to constraints, execution feedback, and reminders, thereby providing a stronger starting point for subsequent reminder-conditioned distillation.
Related Work
Repository-Level Software Engineering Agents. Repository-level evaluation covers code completion [6, 42], executable issue resolution [14], broad agent capabilities (Xu et al. 2025), and multimodal web coding [17]. SWE-AGENT, AUTOCODEROVER, and AGENTLESS provide tool-based issue-resolution pipelines [50, 35] (Yang et al. 2024a). Training uses trajectories, verifiers, and generated or freshly collected tasks [29, 13, 40, 2], alongside executable-outcome optimization [34] and multi-stage coding-agent training [48]. Evaluation also considers engineering-constraint compliance beyond functional correctness [55].
Feedback-Guided Reasoning and Reflection. ReAct, Reflexion, and self-refinement use observations or feedback to guide actions and revisions [43, 32, 24]. FTT studies test-time feedback optimization (Li, Lyu, and Wang 2025); tool-grounded critique, search, and execution verification guide correction [9, 54, 4, 53]. Complementary work explores code-critique evaluation (Zhang et al. 2025), failure diagnosis in agent traces (Li et al. 2026), visual feedback for web-code refinement (Li et al. 2025), and generative process rewards (Xu et al. 2026a). Structured failure feedback also guides refinement in autonomous driving [21].
On-Policy and Privileged-Context Distillation. On-policy distillation supervises student-generated sequences [1], with reverse/skew KL objectives (Gu et al. 2024; Ko et al. 2024) and entropy-aware or black-box extensions [15] (Ye et al. 2025). Context and privileged-information distillation internalize behavior induced by auxiliary instructions or training-only information [33, 51, 30]. OPCD uses a context-conditioned teacher on student trajectories (Ye et al. 2026). Reflective driving guidance can also be internalized through outcome-routed on-policy self-distillation [22]. OPRD studies this training–inference separation with explicitly scoped Reminders for long-horizon coding.
Method
Long-horizon coding agents must not only generate correct code, but also consistently follow user constraints throughout multi-turn interactions and adapt their behavior to tool responses and execution feedback. However, final verification outcomes provide limited process-level supervision for constraint adherence and feedback use at different scopes. To address this limitation, we propose On-Policy Reminder Distillation (OPRD), which distills the behavior of a teacher conditioned on Multi-Scope Reminders into a student that operates without reminders at inference time. As illustrated in Figure 2, we formulate the long-horizon coding task (§ 2.1), then introduce Multi-Scope Reminders (§ 2.2) and a two-stage supervised cold start (§ 2.3), and present Multi-Scope Reminder-Conditioned Distillation (§ 2.4).

Figure 2. Overview of OPRD. OPRD constructs Global Reminders and observation-anchored Turn-local Reminders, and initializes the teacher and student through Coding SFT followed by IF SFT. During on-policy training, successful rollouts are optimized through autoregressive self-imitation, while failed rollouts receive reverse-KL supervision from a Reminder-conditioned teacher.
Problem Formulation
Given a repository-level coding task , an agent interacts with a code execution environment over multiple turns. We denote the -th assistant turn by and the resulting environment observation by . The complete interaction trajectory is
An executable verifier evaluates the final repository state and returns , where indicates that the trajectory passes verification and indicates failure. We denote the trainable student by and the teacher by . The token sequence of the -th assistant turn is , where is the number of tokens in that turn. The interaction history preceding the -th assistant turn and the student context for generating its -th token are defined as
where denotes the token prefix preceding within the current turn. System messages, user messages, and tool responses provide generation context but are not prediction targets. Training is restricted to valid assistant tokens, whose index set is
Multi-Scope Reminders
The constraints and feedback received by a long-horizon coding agent operate over different temporal scopes. Task-level constraints, such as permitted modification scope, interface requirements, and output format, must hold throughout the trajectory. In contrast, test errors, tool responses, and file inspection results typically pertain to a specific decision point. Nevertheless, the final verifier compresses the entire trajectory into a binary outcome and cannot represent these distinct scopes. Treating all corrective information as a single trajectory-wide prompt may cause local errors to be diluted by the long context, whereas propagating local feedback to all subsequent turns may introduce irrelevant or conflicting supervision as the interaction state evolves. We therefore organize corrective information from a failed trajectory into a Multi-Scope Reminder. A Global Reminder provides persistent task-level guidance across turns, while a Turn-local Reminder is aligned with a specific decision point and highlights environmental feedback that the model ignored or misinterpreted at that point. For a failed trajectory , its Multi-Scope Reminder is represented as
where denotes the Global Reminder, denotes the Turn-local Reminder anchored to environment observation , and is the set of observation indices associated with local corrective signals. The Global Reminder remains visible throughout the teacher’s evaluation of assistant turns. In contrast, is visible only when the teacher evaluates the assistant turn following , and does not propagate to later turns. Instruction-Following (IF) SFT first strengthens the model’s ability to understand and respond to explicit constraints and feedback. During OPRD, Multi-Scope Reminders serve as training-time privileged information available only to the teacher, and the behavior they induce is distilled into a student that does not observe reminders.
Reminder Construction. When a trajectory contains a correctable failure, we construct reminders post hoc from the task, trajectory, interaction feedback, and final test results. We determine the scope of each corrective signal and then assign its functional category. The Global Reminder contains one category, Test-Outcome Feedback, which converts final-test diagnostics into trajectory-level guidance. Turn-local Reminders target correctable decisions identified from each environment observation and assistant action. They comprise four categories: Tool-Feedback Recovery for responding to explicit tool feedback; Scope and Source Grounding for evidence-grounded localization and modification; Scenario-Condition Reasoning for task-specific execution conditions; and Post-Edit Control and Validation for controlled post-edit verification. We retain grounded and actionable candidates, discarding ambiguous, redundant, unverifiable, reference-patch-revealing, or unsupported content. Detailed category definitions, generation prompts, trigger rules, and filtering procedures are provided in Appendix § 7.
Two-Stage Supervised Cold Start
The base model first acquires capabilities for repository understanding, tool interaction, and code editing through Coding SFT. However, coding competence alone does not ensure that the model will follow constraints and feedback that arise during an interaction. A standard coding model may still ignore user requirements, tool responses, test errors, or harness rules that are already present in the context. Given a base model , we first train on successful coding trajectories to establish core agentic coding capabilities. We then use IF data to improve the model’s responsiveness to user constraints, interaction feedback, execution outcomes, and reminders, yielding an IF checkpoint that combines coding and instruction-following capabilities:
Multi-Scope Reminder-Conditioned Distillation
OPRD uses shared initialization. The teacher and student use the same model architecture and are initialized with the parameters of the same IF checkpoint , such that . During training, the teacher is periodically updated toward the student, while the student is optimized at every step. The teacher additionally receives reminders as training-time privileged information. For a task , the current student interacts with the coding environment without access to reminders to sample . As the student is updated, subsequent rollouts expose different states and errors, keeping reminder supervision aligned with the distribution visited by the current policy.
Outcome-Based Routing. After each rollout, an executable verifier determines whether it succeeds but does not provide fine-grained credit assignment. A successful rollout provides executable evidence that the student’s current behavior can solve the task and can therefore serve directly as an autoregressive self-imitation signal. Applying the same objective to a failed rollout would instead increase the likelihood of erroneous decisions. OPRD thus routes successful rollouts to a self-imitation branch and failed rollouts to a reminder-conditioned distillation branch. For the current rollout batch , we define and .
Autoregressive Self-Imitation from Successful Rollouts. For each , we compute the autoregressive loss over all valid assistant tokens to increase the likelihood that the student reproduces successful behavior discovered through its own on-policy sampling:
Reminder-Conditioned Distillation from Failed Rollouts. For each , reminders are constructed after the rollout and provided only to the teacher. The student always uses the original context without reminders. The teacher does not resample the trajectory. Instead, it evaluates the same student-generated token prefix , ensuring that the distillation targets remain aligned with the states visited by the current policy. For the -th assistant turn, the teacher history is defined as
The corresponding teacher token context is . The teacher augments the student’s original context with the reminders active at the current scope. The Global Reminder is visible at every assistant turn, whereas is injected only when the teacher evaluates and is removed from subsequent turns. Reminder scope is determined by its visibility in the teacher context, while the loss for a failed trajectory still covers all valid assistant tokens in . Within this unified distillation signal, the Global Reminder provides task-level correction across turns, while the Turn-local Reminder provides fine-grained guidance at the corresponding decision point. Let denote the full vocabulary, and let and denote the student and teacher logits, respectively. For , their token distributions at temperature are
We then compute the reverse Kullback–Leibler (KL) divergence over the Top-K-vocabulary distributions:
where stops gradients through the teacher branch and compensates for gradient-scale changes from temperature scaling. Reverse KL weights discrepancies by the student distribution, prioritizing corrections to tokens to which the student assigns high probability in visited states.
Joint Objective and Inference. After training, only the student is deployed. The teacher, the reminder-construction module, and all reminders are removed at inference time. Let and control the relative strengths of self-imitation on successful rollouts and reminder distillation on failed rollouts, respectively. The OPRD objective is
Experiments
Experimental Setup
Models and Training Data. We use Qwen3.5-4B and Qwen3.5-9B as base models [31]. Training consists of three stages. Coding SFT uses 8,000 verified successful trajectories, including 7,262 from SWE-rebench V2 [3] and 738 from Multi-SWE-RL [46]. IF SFT then uses 2,000 reminder-following examples from SWE-rebench V2. OPRD operates on a pool of 3,630 SWE-rebench V2 tasks and 370 Multi-SWE-RL tasks, from which the student generates reminder-free rollouts online. In the OPRD variant without IF SFT, both teacher and student are initialized from the Coding SFT checkpoint while all other settings remain unchanged. Table 1 summarizes the three stage-specific data configurations. Coding SFT and IF SFT operate on trajectories or reminder-following examples, whereas OPRD uses a task pool from which the current student generates new rollouts online.
| Stage | Unit | SWE-rebench V2 | Multi-SWE-RL |
| Coding SFT | Trajectory | 7,262 | 738 |
| IF SFT | Example | 2,000 | 0 |
| OPRD | Task | 3,630 | 370 |
Table 1. Training data used at each stage.
Figure 3 reports the programming-language composition of the three stages. Python is the largest source in every stage (43.5–45.8%), followed by TypeScript and JavaScript. Coding SFT and the OPRD task pool use nearly identical proportions by construction, while the IF set is slightly more concentrated in Python, JavaScript, and Rust and contains no Ruby example. The distribution nevertheless covers nine languages in IF SFT and all ten languages in Coding SFT and OPRD.

Figure 3. Programming-language distributions for IF SFT, Coding SFT, and the OPRD task pool. Percentages are computed from 2,000 examples, 8,000 examples, and 4,000 examples, respectively. The same language-color mapping is used in all three pies.
Implementation Details. Training implementation and hyperparameters are detailed in Appendix § 6.
Evaluation Setup. We evaluate task resolution rate on SWE-bench Verified, SWE-bench Pro, and SWE-bench Multilingual [26, 8, 40]. All models use the same agent harness and inference configuration. Except for the controlled Reminder interventions in the scope and functional-category analyses, all main results and training ablations use reminder-free inference.
All models are evaluated with a shared Claude Code agent scaffold and the executable verifier associated with each benchmark. Every subtask is allocated 16 CPU cores and 32,768 MiB of memory, with a maximum of 200 agent turns. Decoding uses temperature 1.0 and top- 0.95. The vLLM deployment permits at most 128 concurrent sequences, a maximum model length of 262,144 tokens, and 8,192 batched tokens.
Main Results
OPRD provides consistent gains across software engineering benchmarks. Table 2 compares the base and supervised checkpoints with the OPRD variants to assess whether Reminder-conditioned process supervision transfers to reminder-free inference. The complete training recipe reaches an average resolution rate of 47.9, improving over the Qwen3.5-4B base model by 11.3 points and over the IF SFT checkpoint by 6.3 points. Gains are consistent across all three benchmarks, with the largest improvement on SWE-bench Multilingual. Removing IF SFT before OPRD reduces the average by 3.6 points. This gap suggests that coding adaptation alone is insufficient for fully exploiting Reminder-conditioned supervision, whereas IF SFT provides a more suitable shared initialization for teacher and student. Because all entries in Table 2 use reminder-free inference, the improvement does not depend on test-time Reminder injection.
| Training Configuration | SWE-bench Verified (%) | SWE-bench Pro (%) | SWE-bench Multilingual (%) | Average (%) |
| Qwen3.5-4B | 50.4 | 24.2 | 35.3 | 36.6 |
| + Coding SFT | 53.6 | 25.6 | 38.7 | 39.3 |
| + Coding SFT IF SFT | 55.8 | 26.7 | 42.3 | 41.6 |
| + Coding SFT OPRD (w/o IF SFT) | 58.4 | 28.3 | 46.3 | 44.3 |
| + Coding SFT IF SFT OPRD (Ours) | 61.2 | 30.5 | 52.0 | 47.9 |
| Qwen3.5-9B | 59.6 | 32.3 | 41.3 | 44.4 |
| + Coding SFT | 61.4 | 34.7 | 47.7 | 47.9 |
| + Coding SFT IF SFT | 64.0 | 36.7 | 50.7 | 50.5 |
| + Coding SFT OPRD (w/o IF SFT) | 67.2 | 38.9 | 53.7 | 53.3 |
| + Coding SFT IF SFT OPRD (Ours) | 70.0 | 40.9 | 56.7 | 55.9 |
Table 2. Main results with Qwen3.5-4B and Qwen3.5-9B on SWE-bench Verified, SWE-bench Pro, and SWE-bench Multilingual. We report task resolution rates (%) and their unweighted average. Within each backbone, the best and second-best results in each column are shown in bold and underlined, respectively.
OPRD gains persist with the 9B backbone. As shown in Table 2, the complete Qwen3.5-9B training recipe reaches an average resolution rate of 55.9, improving over the open-source checkpoint by 11.5 points and over the IF SFT checkpoint by 5.4 points. The improvement over the open-source model is consistent on SWE-bench Verified, SWE-bench Pro, and SWE-bench Multilingual, with gains of 10.4, 8.6, and 15.4 points, respectively. Removing IF SFT before OPRD lowers the average by 2.6 points, showing that the supervised instruction-following preparation remains useful at the larger model scale.
Ablation Study
We examine the distillation design, loss balance, teacher refresh, supervised preparation, and Reminder scope and functional categories, followed by a process-level error analysis. Training ablations use the same task pool and on-policy rollout protocol; Reminder interventions are compared under shared inference settings.
The OPRD variant without IF SFT initializes both the teacher and student from the Coding SFT checkpoint and otherwise retains the complete OPRD configuration. In the distillation-formulation ablation, All-Rollout OPSD applies
the selected KL objective to both successful and failed on-policy rollouts. Outcome-Routed OPRD instead applies autoregressive self-imitation to verified successes and Multi-Scope Reminder-conditioned KL to failures. The compared rows use the same training tasks, on-policy rollout budget, Top-100 support, and distillation temperature.
The teacher-refresh ablation compares a frozen teacher, periodic refresh schedules, and shared teacher–student parameters. The frozen teacher remains at its initial checkpoint. Our four-refresh setting copies the current student parameters to the teacher at 20%, 40%, 60%, and 80% of training. Under shared parameters, the teacher context is evaluated with the current student parameters at every update while gradients remain stopped through the teacher branch.

Figure 5. Effect of Reminder scope and supervised preparation on Qwen3.5-4B. We compare reminder-free, Global-only, Turn-local-only, and Multi-Scope Reminder conditioning for the Base, Coding SFT, and IF SFT checkpoints.
| Setting | SWE-BENCH Verified (%) | SWE-BENCH Pro (%) | SWE-BENCH Multilingual (%) | Average (%) |
| KL Support and Distillation Temperature | ||||
| Full Vocabulary, | 59.8 | 29.4 | 50.3 | 46.5 |
| Top-100, | 60.2 | 29.7 | 50.7 | 46.9 |
| Top-100, (Ours) | 61.2 | 30.5 | 52.0 | 47.9 |
| Top-100, | <u>60.4</u> | <u>29.8</u> | <u>51.0</u> | <u>47.1</u> |
| Outcome-Based Routing and KL Direction | ||||
| All-Rollout OPSD, Forward KL | 58.8 | 28.6 | 48.3 | 45.2 |
| All-Rollout OPSD, Reverse KL | 59.6 | 29.1 | 49.3 | 46.0 |
| Outcome-Routed OPRD, Forward KL | <u>60.2</u> | <u>29.7</u> | <u>50.3</u> | <u>46.7</u> |
| Outcome-Routed OPRD, Reverse KL (Ours) | 61.2 | 30.5 | 52.0 | 47.9 |
Table 3. Ablations of KL support, distillation temperature, outcome-based routing, and KL direction with Qwen3.5-4B. Scores are task resolution rates (%), and Average is the unweighted mean across the three benchmarks. The best and second-best results within each group are shown in bold and underlined, respectively.
Effect of KL support and distillation temperature. The KL-support ablation compares full-vocabulary and Top-100 supports and varies the distillation temperature to identify an effective distributional target for OPRD. At the shared temperature of , Top-100 and full-vocabulary KL perform similarly, with Top-100 obtaining a slightly higher average score. This indicates that a sparse high-probability support is sufficient for effective distillation in this setting. Among the Top-100 variants, performs best with an average score of 47.9, while both lower and higher temperatures perform worse, suggesting that a moderate temperature balances teacher preferences with useful alternatives.
Effect of outcome-based routing and KL direction. A paired comparison of All-Rollout OPSD and Outcome-Routed OPRD under forward and reverse KL isolates the effects of outcome-based routing and KL direction. Reverse KL outperforms forward KL under both training strategies. At a fixed KL direction, OPRD consistently improves over OPSD, with a 1.9-point gain under reverse KL. These results support assigning verified successes to autoregressive self-imitation and failures to Reminder-conditioned distillation, rather than applying a single KL objective uniformly to all rollouts. Reverse KL further focuses the update on
| Ver. | Pro | Multi. | Avg. | |
| 0.25:1 | 59.6 | 28.7 | 49.7 | 46.0 |
| 0.5:1 | 60.4 | 29.5 | 51.0 | 47.0 |
| 1:1 (Ours) | 61.2 | 30.5 | 52.0 | 47.9 |
| 2:1 | 60.8 | 29.8 | 51.3 | 47.3 |
| 4:1 | 59.8 | 28.9 | 50.3 | 46.3 |
Table 4. Ablation of the relative weights assigned to successful-trajectory autoregressive self-imitation () and failed-trajectory Reminder-conditioned distillation (). Columns report SWE-BENCH VERIFIED, Pro, Multilingual, and their average.
candidates that the student assigns high probability but the Reminder-conditioned teacher considers inappropriate.
Balancing successful and failed trajectories. The balanced 1:1 setting performs best on all three benchmarks and obtains a 47.9 average. Reducing over-concentrates training on correcting failed states and weakens retention of successful behavior already discovered by the current policy. Increasing gradually shifts the objective toward successfultrajectory self-imitation and underuses the process supervision supplied by Reminders on failed states. SWE-bench Pro and SWE-bench Multilingual are more sensitive to this imbalance because they contain more tasks that require correction from tool feedback and cross-file context.
Effect of the teacher refresh schedule. Varying the teacher refresh schedule examines the trade-off between adapting to the evolving student and maintaining a stable distillation target. As shown in Figure 4, periodic refreshes exhibit a non-monotonic trend, with four evenly spaced refreshes performing best on every benchmark and reaching an average resolution rate of 47.9. This pattern suggests that a frozen teacher may become misaligned with states visited by the evolving student, whereas overly frequent refreshes may reduce target stability. The Shared Parameters setting performs worst, further supporting the importance of a relatively stable teacher target for Reminder-conditioned distillation.

Figure 4. Effect of the teacher refresh schedule on Qwen3.5-4B. We compare Frozen Teacher, Periodic Refresh (2×, 4×, and 6×), and Shared Parameters on three benchmarks and their unweighted average.
Effect of Reminder scope. A controlled comparison of four Reminder conditions across the Base, Coding SFT, and IF SFT checkpoints measures Reminder utility and model responsiveness. Both Global-only and Turn-local-only conditioning improve every checkpoint on all benchmarks, while combining them consistently performs best. Turn-local Reminders generally provide larger gains, while the additional improvement from Global Reminders shows that persistent cross-turn guidance complements feedback aligned with a specific environment observation. The average benefit of Multi-Scope Reminders grows across preparation stages and reaches 4.9 points after IF SFT, indicating that IF SFT improves the model’s ability to use corrective information at different scopes.
Effect of IF SFT on Reminder responsiveness. As shown in Figure 6, the aggregate Reminder-following rate increases from 45.8 for the open-source base model to 49.3 after Coding SFT, and then to 77.1 after IF SFT. Relative to Coding SFT, IF SFT improves the rate by 27.8 points overall and by 25.9–30.4 points across the four functional categories. Its category-level rates are consistently high, ranging from 75.4 for Scenario-Condition Reasoning to 80.0 for Post-Edit Control and Validation. The largest gain over Coding SFT occurs for Scope and Source Grounding, which increases from 46.3 to 76.7. These results isolate behavioral adherence to an inserted Reminder rather than end-to-end task resolution, and support using the IF checkpoint as the shared teacher–student initialization for OPRD.

Figure 6. Reminder-following rates on 200 SWE-rebench V2 validation tasks. After a category-specific error is detected, the corresponding Reminder is inserted at the relevant interaction point, and the subsequent behavior is judged by whether it corrects or avoids that error. Each task–category pair contributes at most one successful follow event. Overall aggregates the four functional categories.
Effect of functional Reminder categories. Grouping Reminders by content rather than temporal scope evaluates the contribution of each functional category. All four categories in Figure 8 outperform reminder-free evaluation, with Post-Edit Control and Validation providing the strongest individual result. Enabling all categories raises the average resolution rate from 36.6 to 39.2, suggesting that they provide complementary corrective signals and broader coverage when combined.

Figure 8. Effect of functional Reminder categories on the Qwen3.5-4B base checkpoint. We evaluate Tool-Feedback Recovery, Scope and Source Grounding, Scenario-Condition Reasoning, and Post-Edit Control and Validation, together with their combination. The dashed line denotes reminder-free performance.
Process-level error reduction. Applying the same four-category taxonomy as Figure 1 tests whether OPRD’s task-level gains coincide with fewer process errors. Each checkpoint generates one reminder-free trajectory for the same 200 SWE-rebench V2 validation tasks under identical inference settings, and we record case-level triggers from the resulting trajectories. As shown in Figure 7, the total number of triggers falls from 446 for Qwen3.5-4B to 378 after Coding SFT and 222 after OPRD, a 50.2% reduction relative to Qwen3.5-4B. Trigger counts decline by 43.1–58.0% across categories, with the largest decrease in Post-Edit Control and Validation. These results show that OPRD improves both final task resolution and intermediate process behavior.

Figure 7. Diagnostic error reduction on 200 SWE-rebench V2 validation tasks. Bars show case-level trigger counts for Qwen3.5-4B (Base), Coding SFT, and OPRD. Percentages report relative reductions from Qwen3.5-4B to OPRD.
Conclusion
Long-horizon coding agents must preserve task constraints and respond to interaction feedback while producing correct code. Our diagnostic analysis highlights process-level failures throughout repository-level problem solving. We introduce OPRD, which uses Multi-Scope Reminders as training-time privileged information and applies outcome-based routing to on-policy rollouts. A Global Reminder converts final-test diagnostics into trajectory-level guidance, while Turn-local Reminders anchor observation-derived corrections to the next assistant decision. OPRD routes successful rollouts to autoregressive self-imitation and failed rollouts to Reminder-conditioned reverse-KL distillation. Its two-stage supervised cold start, consisting of Coding SFT followed by Instruction-Following SFT, improves responsiveness to these corrective signals. Experiments show that OPRD improves task resolution and reduces adherence failures. By internalizing trajectory-level feedback and local corrections into model parameters, OPRD enables long-horizon coding agents to operate without Reminders at inference time.
Appendix
In this appendix, we provide training implementation and hyperparameters (Section B), together with supplementary materials on Reminder construction and diagnostic annotation. Section C details the construction procedures, functional taxonomy, Global Reminder evidence processing, and complete runtime category-judge prompt. Section D describes the deterministic and model-based annotation protocol used to analyze coding-agent errors. Training data, evaluation settings, results, and ablations are presented in § 3.
Training Implementation and Hyperparameters
We implement OPRD using VeOmni (Ma et al. 2025) with FlashAttention 2 [5], fused MoE operators, FSDP2 [52], and Ulysses sequence parallelism [12]. Distributed checkpoints are stored with DCP. Table 5 lists the supplied Qwen3.5-4B configuration.
| Parameter | Value | Parameter | Value |
| Model | Qwen3.5-4B | Maximum sequence length | 131,072 |
| Training framework | VeOmni | LR start | 0 |
| Epochs | 3 | GPU | 16 NVIDIA H20 |
| Global batch size | 32 | Micro batch size | 1 |
| Peak learning rate | Minimum learning rate | ||
| LR schedule | Cosine | Warmup ratio | 0.005 |
| LR decay ratio | 1 | Weight decay | 0 |
| Distillation temperature | 1.0 | KL direction | Reverse |
| KL vocabulary support | Top-100 | Teacher refresh | 20/40/60/80% |
| Self-imitation weight | 1.0 | Distillation weight | 1.0 |
| Expert parallel size | 1 | Ulysses size | 4 |
| Data-parallel shard size | 2 | Attention implementation | FlashAttention 2 |
Table 5. Training configuration for the Qwen3.5-4B OPRD experiment.
The main Qwen3.5-4B configuration uses a maximum sequence length of 131,072, a global batch size of 32, 3 training epochs, and a peak learning rate of with cosine decay. OPRD uses Top-100 reverse KL at temperature .
Teacher refresh. The teacher is not optimized by gradient descent. At 20%, 40%, 60%, and 80% of OPRD training, its parameters are replaced by the current student parameters and then kept fixed until the next refresh. This schedule yields four teacher refreshes over a complete run.
Top- KL support. The main configuration evaluates reverse KL on one shared Top-100 support at each valid assistant-token position. After temperature scaling, we compute a joint importance score for every vocabulary item , where and denote the student and stop-gradient teacher distributions. We select the 100 tokens with largest , then renormalize both distributions on exactly this common index set before evaluating reverse KL. Selecting by the pointwise maximum retains tokens considered plausible by either model while keeping the support size fixed.
The main loss uses for autoregressive self-imitation on verified successful trajectories and for Reminder-conditioned distillation on failed trajectories.
Reminder Construction Details
Construction Procedure and Functional Taxonomy
Reminder construction and Reminder categorization describe two distinct parts of our pipeline. Construction specifies how a candidate is obtained, filtered, inserted, and verified, whereas the functional taxonomy specifies which coding-agent failure the retained Reminder addresses. These two attributes are independent of the temporal scope used by OPRD: a Global Reminder provides persistent final-test guidance, while the runtime construction procedure below is used to construct and evaluate observation-anchored Turn-local Reminders.
We construct runtime Reminder candidates from SWE-ReBench V2 tasks and naturally occurring coding-agent trajectories. For each trajectory, we align the task requirement, assistant action, tool call, tool result, next assistant action, and subsequent validation outcome. A candidate is retained only when its trigger is observable without hidden correctness labels, its desired next action is local and behaviorally verifiable, and its text neither reveals a reference patch nor invents a new task requirement. Correctness is determined separately by the executable ReBench evaluator; a trajectory alone is used only as behavioral evidence.
Passive and active construction modes. A passive Reminder is appended immediately after a tool result exposes a concrete failure, ambiguity, scope drift, or validation signal. It is one-shot: the next assistant decision observes it, but it does not automatically persist to later turns. An active Reminder is evaluated at a controlled pre-action boundary. We first obtain a probe action, use it only to determine whether the trigger fires, discard it when an intervention is required, insert the Reminder into the same visible state, and reroll the action. The active verifier then evaluates the rerolled tool choice, arguments, target path, edit scope, and immediate follow-up behavior. Thus passive construction mines recovery from observed feedback, whereas active construction provides a matched intervention for measuring causal behavior change.
Runtime selection and insertion. At each legal insertion boundary, deterministic hard rules are matched against the latest tool result before a model judge considers non-hard contextual strategies. Non-hard candidates must reach confidence 0.90 and satisfy their phase gate. We then apply a per-family cap, a per-case budget, repeated-text removal, and hard-error-signature deduplication. Post-edit candidates require a visible edit, and validation-wrap-up candidates require concrete test, build, compiler, diff, formatting, or completion evidence. If all candidates fail these gates, no Reminder is inserted; the system does not use a fallback category. Hard-rule text is copied from the rubric, and every inserted Reminder is serialized after, rather than inside, the corresponding tool response.
We separately record whether trajectory capture completed, a Reminder was inserted, the required local behavior was followed, and the final source-only patch passed executable verification. These quantities use different denominators and are not substituted for one another.
Global Reminder Construction and Evidence Judge
Global Reminders are constructed only after a complete coding attempt has been rejected by executable verification. Unlike a Turn-local Reminder, which is anchored to one observation and governs the next decision, a Global Reminder summarizes the previous patch and its verifier artifacts and is placed at the input of the next full retry. A candidate is eligible only if it contains a non-empty patch, receives zero benchmark reward, is not marked non-retryable, is successfully applied in the verification environment, and is not accepted by the benchmark. These gates exclude empty or unapplied patches, successful attempts, and infrastructure-only records.
The evidence judge parses the benchmark result JSON and raw test log, records available pass/pending/fail counts and touched files, deduplicates failures with a shared root cause, and selects at most five signals. Root-cause-bearing interface, argument, syntax, reference, symbol, path, and signature failures are ranked before assertion, command, and generic failures. The resulting verification_feedback states what failed and where the evidence came from, but does not reveal a reference patch or prescribe an unsupported implementation. It is visible to the teacher throughout the retry trajectory.
Example. Suppose a patch applies cleanly but leaves the targets no_system_header_includes and test_wrap_static_fns failing, with three neighboring targets passing. The generated Global Reminder reports the successful patch application, the 3/2 pass–fail summary, the touched files, and the two unresolved targets, then asks the agent to re-read the task and reconstruct a consistent fix from the implicated function signatures and command flow. This evidence distinguishes an implementation failure from a malformed patch without exposing the hidden solution.
Four-Class Functional Taxonomy
The finalized rubric contains 32 fine-grained Reminder categories: 10 deterministic hard rules and 22 model-judged contextual strategies organized in five family slots. We map them into four mutually exclusive reporting classes without introducing new fine-grained categories. After the most specific original category is selected for an error event, its coarse class is fixed by Table 6. A trajectory may contain multiple independent events, but a single event receives exactly one most-specific category; multiple Reminders are allowed only when the visible evidence supports distinct risks and distinct next actions.
R1: Tool-Feedback Recovery. This class covers commands, searches, edits, compilation, paths, validation conditions, and toolchain failures that can be identified deterministically from the latest tool response.
R2: Scope and Source Grounding. This class combines constraints on the initial patch surface with evidence about the true production path, caller, source value, and data flow.
R3: Scenario-Condition Reasoning. This class covers branch, default, fallback, cache, classification, and one-condition repairs. It separates the failing scenario from sibling scenarios that must retain their previous behavior.
R4: Post-Edit Control and Validation. This class applies after a production edit. It prevents unsupported expansion of the patch and uses concrete assertions, tests, compiler output, diffs, and formatting signals to complete a local repair.
Complete Runtime Judge Prompt
The deployed API judge receives only the task, recent visible trajectory, latest tool result, and previously inserted Reminders. Figure 9–Figure 13 present the complete prompt instantiated from the runtime YAML, including all categories, gates, caps, and the JSON output contract.

Figure 9. Complete runtime Reminder category-judge prompt (Part 1 of 5).

Figure 13. Complete runtime Reminder category-judge prompt (Part 5 of 5).
Diagnostic Error Annotation
For each task, deterministic rules first identify failures exposed by explicit tool and execution signals. GPT-5.4 then receives the original problem and the complete agent trajectory to classify the remaining context-dependent failures. The combined annotations use Tool-Feedback Recovery, Scope and Source Grounding, Scenario-Condition Reasoning, and Post-Edit Control and Validation. For case-level analyses, each fine-grained category is counted at most once per trajectory. This post-hoc analysis is distinct from the online judge in Figure 9: the online judge operates only on the current visible prefix and decides whether to intervene, whereas diagnostic annotation audits a completed trajectory for aggregate error statistics.

scenario_matrix_guard, sibling_scenario_invariant,
static_branch_pair_read_mature, one_condition_repair,
strict_one_condition_literal.
R4_POST_EDIT_VALIDATION_CONTROL:
change_surface_budget_guard, edit_scope_evidence_guard,
safe_default_or_data_model_path_guard, assertion_diff_local_repair,
test_failure_localization_guard, compile_mechanical_only,
diff_wrapup_format_test.
Once a category is selected, copy its coarse class from this map. A single
event has one category. Multiple decisions require distinct evidence and
distinct immediate actions.
HARD RULES -- EVALUATE FIRST
A hard rule requires an explicit signal in the latest tool result, uses
confidence 1.0, and copies the corresponding action below.
hard_go_fmt_cross_dir
Trigger: go fmt names files from multiple directories.
Action: use gofmt -w on named files or run go fmt separately per directory.
hard_ambiguous_edit_old_string
Trigger: Edit fails because old_string matches multiple locations.
Action: retry with a longer old_string anchored by surrounding code; avoid broad
replace_all unless every occurrence must change.
hard_go_signature_callers
Trigger: Go compiler output shows caller/interface mismatch after signature edits.
Action: search and update affected implementations and call sites before narrow validation.
hard_semantic_search_auth
Trigger: a discovery helper fails with authentication, identity, or permission errors.
Action: stop retrying it; use reliable paths, symbols, local rg/find, and targeted reads.
hard_malformed_search
Trigger: rg/Grep fails because of malformed pattern, escaping, type, or arguments.
Action: retry with a simpler quoted or fixed-string search, or use find, before editing.
hard_mockey_gcflags
Trigger: a Mockey-related Go test fails without visible -gcflags="all=-N -l" evidence.
Action: rerun the narrow test with those gcflags before treating it as a code bug.
hard_go_toolchain_env
Trigger: Go validation is blocked by a concrete toolchain/version mismatch.
Action: treat it as an environment blocker; use the repository-required toolchain
and do not keep editing product code from that signal.
hard_noisy_validation_output_narrow
Trigger: validation output is truncated or dominated by noise.
Action: use the first concrete FAIL, panic, assertion, or compiler diagnostic;
otherwise switch to narrower validation without changing product code.
hard_go_compile_error
Trigger: Go build/test output contains concrete compiler diagnostics.
Action: fix only reported file/line issues first, then rerun narrow validation.
hard_missing_file_path_narrowFigure 10. Complete runtime Reminder category-judge prompt (Part 2 of 5).

Figure 11. Complete runtime Reminder category-judge prompt (Part 3 of 5).

Action: use only the visible separator; invent no threshold, default, version, or polarity.
NON-HARD FAMILY 3 -- source_path_slot -- maximum one per case
scenario_source_scope_guard
Trigger: a scenario edit is likely but the selecting source value/request field/
condition/config/caller is not pinned.
Action: identify failing scenario, source selector, and stable sibling; patch only
that production branch.
named_path_source_guard
Trigger: task/test/search/read evidence names a likely path, but the trajectory
drifts to a neighbor/shared helper without source proof.
Action: prefer the named path; prove the neighbor through caller/source/data flow
before editing it.
named_path_over_neighbor
Trigger: evidence points to a task-specific implementation while the next action
follows a similarly named generic/neighbor implementation.
Action: refocus on the task-specific path and use neighbors only as reference.
prove_value_source_before_shared_change
Trigger: a shared model/context/helper/data shape may be edited before proving
which value, request field, or caller drives the failure.
Action: prove the value source/caller/request field before changing shared surfaces.
read_failing_test_first
Trigger: a failing test/subtest/fixture is named or discoverable, but production
editing is about to begin without reading it.
Action: read the failing test or closest fixture before the first production edit.
NON-HARD FAMILY 4 -- post_edit_drift_slot -- maximum one per case
This family requires a visible Edit, MultiEdit, or Write.
change_surface_budget_guard
Trigger: after an edit, more files/layers/helpers are planned without new evidence.
Action: stop expanding; keep the patch on the minimum already-edited production path.
edit_scope_evidence_guard
Trigger: after an edit, the patch drifts from the named task path, data model,
caller, or failure site.
Action: re-anchor to visible task/test/caller/read evidence and avoid unsupported edits.
safe_default_or_data_model_path_guard
Trigger: after an edit, the right area is touched but a required default, fallback,
data source, or caller-specific path is likely changed.
Action: preserve the required default/source and change only the evidenced field/path.
NON-HARD FAMILY 5 -- validation_wrapup_slot -- maximum one per case
This family requires concrete validation, compiler, build, diff, formatting, or
wrap-up evidence.
assertion_diff_local_repair
Trigger: feedback contains Expected/Actual, assertion, panic, named subtest, or
concrete build feedback.
Action: treat it as a local invariant, inspect the named test and producing branch,
and make the smallest production change for that scenario.
test_failure_localization_guardFigure 12. Complete runtime Reminder category-judge prompt (Part 4 of 5).
References
- [1]Agarwal, R.; Vieillard, N.; Zhou, Y.; Stanczyk, P.; Ramos Garcia, S.; Geist, M.; and Bachem, O. 2024. On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2306.13649
- [2]Badertdinov, I.; Golubev, A.; Nekrashevich, M.; Shevtsov, A.; Karasik, S.; Andriushchenko, A.; Trofimova, M.; Litvintseva, D.; and Yangel, B. 2025. SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents. In Advances in Neural Information Processing Systems, volume 38.arxiv.org/abs/2505.20411
- [3]Badertdinov, I.; Nekrashevich, M.; Shevtsov, A.; and Golubev, A. 2026. SWE-rebench V2: Language-Agnostic SWE Task Collection at Scale. arXiv:2602.23866.arxiv.org/abs/2602.23866
- [4]Chen, X.; Lin, M.; Schärli, N.; and Zhou, D. 2024. Teaching Large Language Models to Self-Debug. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2304.05128
- [5]Dao, T. 2023. FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. arXiv:2307.08691.arxiv.org/abs/2307.08691
- [6]Deng, K.; Liu, J.; Zhu, H.; Liu, C.; Li, J.; Wang, J.; et al. 2024. R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Models. arXiv preprint arXiv:2406.01359.arxiv.org/abs/2406.01359
- [7]Deng, K.; Zhan, Z.; Xiang, W.; Zhu, W.; Li, W.; Xu, J.; et al. 2025a. HiPO: Hybrid Policy Optimization for Dynamic Reasoning in LLMs. arXiv preprint arXiv:2509.23967.arxiv.org/abs/2509.23967
- [8]Deng, X.; Da, J.; Pan, E.; He, Y. Y.; Ide, C.; Garg, K.; Lauffer, N.; Park, A.; Pasari, N.; Rane, C.; Sampath, K.; Krishnan, M.; Kundurthy, S.; Hendryx, S.; Wang, Z.; Bhadrawaj, V.; Holm, J.; Aluri, R.; Zhang, C. B. C.; Jacobson, N.; Liu, B.; and Kenstler, B. 2025b. SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks? arXiv:2509.16941.arxiv.org/abs/2509.16941
- [9]Gou, Z.; Shao, Z.; Gong, Y.; Shen, Y.; Yang, Y.; Duan, N.; and Chen, W. 2024. CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2305.11738
- [11]Hübotter, J.; Lübeck, F.; Behric, L.; Baumann, A.; Bagatella, M.; Marta, D.; Hakimi, I.; Shenfeld, I.; Kleine Buening, T.; Guestrin, C.; and Krause, A. 2026. Reinforcement Learning via Self-Distillation. arXiv:2601.20802.arxiv.org/abs/2601.20802
- [12]Jacobs, S. A.; Tanaka, M.; Zhang, C.; Zhang, M.; Song, S. L.; Rajbhandari, S.; and He, Y. 2023. DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Models. arXiv:2309.14509.arxiv.org/abs/2309.14509
- [13]Jain, N.; Singh, J.; Shetty, M.; Zhang, T.; Zheng, L.; Sen, K.; and Stoica, I. 2025. R2E-Gym: Procedural Environment Generation and Hybrid Verifiers for Scaling Open-Weights SWE Agents. In Second Conference on Language Modeling.arxiv.org/abs/2504.07164
- [14]Jimenez, C. E.; Yang, J.; Wettig, A.; Yao, S.; Pei, K.; Press, O.; and Narasimhan, K. R. 2024. SWE-bench: Can Language Models Resolve Real-World GitHub Issues? In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2310.06770
- [15]Jin, W.; Min, T.; Yang, Y.; Wei, D.; Zhou, Y.; Kadhe, S. R.; Baracaldo, N.; and Lee, K. 2026. Entropy-Aware On-Policy Distillation of Language Models. arXiv:2603.07079.arxiv.org/abs/2603.07079
- [17]Lei, X.; Che, X.; Xiong, J.; Zhang, C.; Huang, Y.; Zhou, C.; et al. 2026. WebCompass: Towards Multimodal Web Coding Evaluation for Code Language Models. arXiv preprint arXiv:2604.18244.
- [21]Luo, Y.; Chen, Q.; Li, F.; Xu, S.; Liu, J.; Song, Z.; et al. 2026a. Augmenting VLA Potentials in Autonomous Driving via Explicit Learning from Failures. arXiv preprint arXiv:2603.01063.arxiv.org/abs/2603.01063
- [22]Luo, Y.; Chong, H.; Li, F.; Xu, S.; Zhang, H.; Zhang, R.; et al. 2026b. Reflect-VLA: Internalizing Reflective Guidance via Dual-Path On-Policy Self-Distillation for Autonomous Driving. arXiv preprint arXiv:2610.13453.arxiv.org/abs/2610.13453
- [24]Madaan, A.; Tandon, N.; Gupta, P.; Hallinan, S.; Gao, L.; Wiegreffe, S.; Alon, U.; Dziri, N.; Prabhumoye, S.; Yang, Y.; Gupta, S.; Majumder, B. P.; Hermann, K.; Welleck, S.; Yazdanbakhsh, A.; and Clark, P. 2023. Self-Refine: Iterative Refinement with Self-Feedback. In Advances in Neural Information Processing Systems, volume 36, 46534–46594.arxiv.org/abs/2303.17651
- [25]Miao, Z.; Jia, H.; Li, L.; Qian, C.; Xiong, Y.; Yan, W.; and Shao, J. 2026. Seeing with You: Perception-Reasoning Coevolution for Multimodal Reasoning. arXiv preprint arXiv:2603.28618.arxiv.org/abs/2603.28618
- [26]OpenAI. 2024. Introducing SWE-bench Verified.
- [27]OpenAI. 2026. Introducing GPT-5.4.
- [28]Ouyang, S.; Yu, W.; Ma, K.; Xiao, Z.; Zhang, Z.; Jia, M.; Han, J.; Zhang, H.; and Yu, D. 2025. RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graph. In International Conference on Learning Representations, volume 2025, 30098–30121.arxiv.org/abs/2410.14684
- [29]Pan, J.; Wang, X.; Neubig, G.; Jaitly, N.; Ji, H.; Suhr, A.; and Zhang, Y. 2025. Training Software Engineering Agents and Verifiers with SWE-Gym. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, 47717–47737. PMLR.arxiv.org/abs/2412.21139
- [30]Penaloza, E.; Vattikonda, D.; Gontier, N.; Lacoste, A.; Charlin, L.; and Caccia, M. 2026. Privileged Information Distillation for Language Models. arXiv:2602.04942.arxiv.org/abs/2602.04942
- [31]Qwen Team. 2026. Qwen3.5: Towards Native Multimodal Agents.
- [32]Shinn, N.; Cassano, F.; Gopinath, A.; Narasimhan, K.; and Yao, S. 2023. Reflexion: Language Agents with Verbal Reinforcement Learning. In Advances in Neural Information Processing Systems, volume 36, 8634–8652.arxiv.org/abs/2303.11366
- [33]Snell, C.; Klein, D.; and Zhong, R. 2022. Learning by Distilling Context. arXiv:2209.15189.arxiv.org/abs/2209.15189
- [34]Wei, Y.; Duchenne, O.; Copet, J.; Carbonneau, Q.; Zhang, L.; Fried, D.; Synnaeve, G.; Singh, R.; and Wang, S. I. 2025. SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution. In Advances in Neural Information Processing Systems, volume 38, 78500–78525.arxiv.org/abs/2502.18449
- [35]Xia, C. S.; Deng, Y.; Dunn, S.; and Zhang, L. 2025. Demystifying LLM-Based Software Engineering Agents. Proceedings of the ACM on Software Engineering, 2(FSE): 801–824.DOI
- [40]Yang, J.; Lieret, K.; Jimenez, C. E.; Wettig, A.; Khandpur, K.; Zhang, Y.; Hui, B.; Press, O.; Schmidt, L.; and Yang, D. 2025a. SWE-smith: Scaling Data for Software Engineering Agents. In Advances in Neural Information Processing Systems, volume 38.arxiv.org/abs/2504.21798
- [41]Yang, J.; Liu, X.; Lv, W.; Deng, K.; Guo, S.; Jing, L.; et al. 2025b. From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence. arXiv preprint arXiv:2511.18538.arxiv.org/abs/2511.18538
- [42]Yang, J.; Zhang, J.; Yang, J.; Jin, K.; Zhang, L.; Peng, Q.; et al. 2024b. ExecRepoBench: Multi-level Executable Code Completion Evaluation. arXiv preprint arXiv:2412.11990.arxiv.org/abs/2412.11990
- [43]Yao, S.; Zhao, J.; Yu, D.; Du, N.; Shafran, I.; Narasimhan, K.; and Cao, Y. 2023. ReAct: Synergizing Reasoning and Acting in Language Models. In The Eleventh International Conference on Learning Representations.arxiv.org/abs/2210.03629
- [46]Zan, D.; Huang, Z.; Liu, W.; Chen, H.; Zhang, L.; Xin, S.; Chen, L.; Liu, Q.; Zhong, X.; Li, A.; Liu, S.; Xiao, Y.; Chen, L.; Zhang, Y.; Su, J.; Liu, T.; Long, R.; Shen, K.; and Xiang, L. 2025. Multi-SWE-bench: A Multilingual Benchmark for Issue Resolving. arXiv:2504.02605.arxiv.org/abs/2504.02605
- [47]Zhan, Z.; Deng, K.; Tang, H.; Xiang, W.; Wu, K.; Li, W.; et al. 2025a. KAT-V1: Kwai-AutoThink Technical Report. arXiv preprint arXiv:2507.08297.arxiv.org/abs/2507.08297
- [48]Zhan, Z.; Deng, K.; Wang, J.; Zhang, X.; Tang, H.; Zhang, M.; et al. 2025b. KAT-Coder Technical Report. arXiv preprint arXiv:2510.18779.arxiv.org/abs/2510.18779
- [50]Zhang, Y.; Ruan, H.; Fan, Z.; and Roychoudhury, A. 2024. AutoCodeRover: Autonomous Program Improvement. In Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis, 1592–1604. ACM.
- [51]Zhao, S.; Xie, Z.; Liu, M.; Huang, J.; Pang, G.; Chen, F.; and Grover, A. 2026. Self-Distilled Reasoner: On-Policy Self-Distillation for Large Language Models. arXiv:2601.18734.arxiv.org/abs/2601.18734
- [52]Zhao, Y.; Gu, A.; Varma, R.; Luo, L.; Huang, C.-C.; Xu, M.; Wright, L.; Shojanazeri, H.; Ott, M.; Shleifer, S.; Desmaison, A.; Balioglu, C.; Damania, P.; Nguyen, B.; Chauhan, G.; Hao, Y.; Mathews, A.; and Li, S. 2023. PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel. arXiv:2304.11277.arxiv.org/abs/2304.11277
- [53]Zhong, L.; Wang, Z.; and Shang, J. 2024. Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step by Step. In Findings of the Association for Computational Linguistics: ACL 2024, 851–870. Bangkok, Thailand: Association for Computational Linguistics.arxiv.org/abs/2402.16906
- [54]Zhou, A.; Yan, K.; Shlapentokh-Rothman, M.; Wang, H.; and Wang, Y.-X. 2024. Language Agent Tree Search Unifies Reasoning, Acting, and Planning in Language Models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, 62138–62160. PMLR.arxiv.org/abs/2310.04406
- [55]Zhu, W.; Lei, X.; Lai, Z.; Gong, Z.; He, T.; Yu, S.; et al. 2026. ANCHOR: Assessing Naturalistic Constraint Hierarchies and Ordering in Repository-Grounded Agentic Coding. arXiv preprint arXiv:2610.16859.arxiv.org/abs/2610.16859