Opera: A Verbal Critic Framework for Long-Horizon Coding AgentsOpera: A Verbal Critic Framework for Long-horizon Coding Agents
Under GPT-5.6-Sol criticism, Opera improves Qwen3.5-9B's SWE-Pro resolve rate by +15.0 pp.
- Long-horizon coding agents often repeat failures or report completion without verification, and feedback that misjudges incomplete work can be harmful. Existing critics rarely track whether the problem is actually resolved after feedback.
- Opera turns each correction into a persistent note: periodic or five event types trigger review, nine contract-bearing operators diagnose only one issue each time, delivery only after admission audit passes, and tracks compliance and resolution separately.
- Under GPT-5.6-Sol criticism, Qwen3.5-9B's resolve rate improves by 12.4 and 15.0 percentage points on TB2.1 and SWE-Pro. Table 1's DeepSWE gain is 8.9 percentage points. Qwen3.5-9B solves no tasks on DeepSWE.
- The conclusion states that training comes from single-model supervised fine-tuning and one out-of-domain benchmark, and future work could expand data, iterate with post-training models, or combine with reinforcement learning. Experiments include three benchmarks and four policy models; Table 1 does not state the number of repetitions.
- Evaluated models
- Qwen3.5-9BMuse-glimmer-30BQwen3.8-27BDeepSeek-V4-Flash-0731
- Benchmarks
- Terminal-Bench 2.1SWE-Bench ProDeepSWE v1.1
- Metrics
- resolve rate
The researchers propose Opera, a verbal critic framework for long-horizon coding agents, that tracks each correction as a persistent note until the diagnosed problem is truly resolved. It decides when to review via periodic and event-driven triggers, diagnoses problems with typed operators, audits feedback against visible evidence before delivery, and tracks the agent's subsequent actions to distinguish superficial compliance from actual resolution. As a test-time critic, Opera improves the resolve rate of non-critic agents by up to 12.4, 15.0, and 8.9 percentage points on Terminal-Bench 2.1, a SWE-Bench Pro subset, and DeepSWE v1.1 respectively, across four policy models, and achieves the highest average resolve rate among competitive critic baselines on all three benchmarks, while also providing gains when the policy model self-criticizes. Code is open-sourced at https://github.com/dongyuanjushi/Opera。
Paper analysis
What problem does this paper attempt to solve?
Long-horizon coding agents need trackable corrections; Opera turns each criticism into a persistent note and follows it through to resolution.
Long-horizon coding agents need mid-execution correction, but feedback may misjudge incomplete work and is rarely tracked to whether the original problem is actually resolved.
- Scenario: The authors say repository-level tasks require code exploration, editing, and testing; over long horizons, agents often repeat unsuccessful actions or redundant exploration, and may report completion before the task is verified.
- Existing shortcomings: The authors say Self-Refine, Reflexion, CRITIC, and coding-oriented SWE-PRM, SWE-Search, and Agentic Rubrics focus on evaluating trajectories and generating feedback, rarely tracking what happens after feedback is delivered.
- Three difficulties: When to intervene—periodic feedback may be too late, and not every execution event should be corrected; whether feedback is grounded—misreading partial evidence may interrupt a trajectory that would have succeeded, the authors cite Vasudev et al., 2026, and say LLM judges are noisy even when checking written rubrics (Peng et al., 2026); whether the intervention is effective—the agent may follow the suggestion while the underlying failure remains.
- This paper's approach: Proposes Opera, which makes each correction a persistent note: opened only when a problem is found, delivered only when grounded, tracked during execution, and closed only when evidence supports resolution. It interfaces with existing harnesses only through execution trajectories and natural language feedback, without updating agent weights.
What related research exists?
Related work is divided into critic verification and test-time scaling; Opera emphasizes tracking after feedback and pre-delivery auditing.
Section 2 of the paper divides related work into criticism/verifiers and test-time scaling, and the introduction additionally views feedback itself as an intervention whose value only becomes apparent after the fact.
Early self-feedback: Self-Refine (Madaan et al., 2023) does iterative self-feedback; Reflexion (Shinn et al., 2023) does verbal reflection across attempts; CRITIC (Gou et al., 2023) does tool-grounded criticism. The paper describes these without per-work comparative experiments.
Repository-level criticism and verification: SWE-PRM (Gandhi et al., 2025) reviews trajectories at fixed intervals and gives taxonomy-guided corrective feedback. Agentic Rubrics (Raghavendra et al., 2026) constructs repository-specific rubrics for candidate patches. SWE-Shepherd (Dihan and Khan, 2026) uses a trained process reward model to guide intermediate action selection. The authors explicitly compare SWE-PRM's fixed intervals with Opera's hybrid schedule.
Verification noise: RuVerBench (Peng et al., 2026) notes that LLM-based rubric verification is quite noisy. The authors use this to justify explicit quality control for criticism feedback, rather than presenting that judgment as Peng et al.'s own methodological claim.
Search-based test-time scaling: Tree of Thoughts (Yao et al., 2023) explores alternative reasoning states; Language Agent Tree Search (Zhou et al., 2023) combines tree search with reflection and environment feedback.
Sampling and search in coding: SWE-Search (Antoniades et al., 2024) does Monte Carlo tree search for repository-level tasks; S∗ (Li et al., 2025) combines parallel sampling, sequential refinement, and execution-grounded selection.
Selection and orchestration: Kim et al. (2026) use rollout summaries for trajectory selection and reuse; He et al. (2026) use differential testing to select candidates; Qin et al. (2026) use an LLM orchestrator to assign solvers and synthesize answers. The paper only describes these works.
Baseline methods: non-criticism agents, plus SWE-PRM, SWE-Search, LLM-as-verifier (Kwok et al., 2026), and Agentic Rubrics. Process criticism is changed to the same hybrid review times as Opera, which the authors say is for fair comparison (Appendix A.1).
Benchmarks: Terminal-Bench 2.1 (89 tasks, Terminus-2), a 100-task subset of SWE-Bench Pro (OpenHands), and DeepSWE v1.1 (113 tasks, mini-swe-agent).
The authors position Opera as "using extra test-time computation to diagnose and correct an ongoing trajectory": the hybrid schedule decides when feedback is necessary, and audited interventions decide how it guides subsequent execution.
How does the paper address this problem?
Opera uses hybrid triggers, typed operators, and audit notes to follow verbal criticism until the original problem is resolved.
Opera condenses supervision into a persistent note: a diagnosed problem, current guidance, and fixed resolution criteria. The criteria are fixed so that later resolution is judged against the original problem rather than the latest guidance. Figure 2 breaks the flow into when to review, how to intervene, and how to track updates. At test time it does not update weights, only interfacing with the harness through trajectories and natural language feedback.
Hybrid review scheduling
- Prose rules: Periodic review every k turns, plus immediate review on five event types: Idle (no visible progress), Repeat (repeated actions), Error (action or tool failure), Claim (reporting completion), Submission (final patch). Simultaneous signals are combined into one review; event reviews reset the periodic timer. Reviews may remain silent.
- Authors' rationale: Periodic-only is slow, and the agent may repeat failed commands multiple times before the next review; event-only misses silent failures, e.g., confidently editing the wrong file. This differs from SWE-PRM's fixed interval.
- Appendix A thresholds: Review at attempt end; after three repeats or three consecutive failed commands; after six work actions without a successful edit; otherwise every 5 agent turns, or 10 for the longer DeepSWE, starting from turn 3, with at least 2 turns between reviews. The latest 30 messages are kept in full, long messages are truncated to head and tail, earlier ones are omitted. The critic also sees the current open note, resolution criteria, and note history.
Operator-based review
- Nine operators, five phases: Search: repo_localization_search, implementation_target_shift; View: implementation_readiness_review, failure_signature_triage; Edit: requirement_contract_review, diff_scope_review, state_transition_review; Test: minimal_repro_or_focused_verifier; Submit: submission_readiness_review. All are optional throughout, since agents often return to earlier phases.
- Contracts: The authors specify per Design by Contract when each operator applies, what evidence it needs, what corrections it can require, when it counts as resolved, and which issues are excluded. Exclusions reduce overlap; resolution clauses later become the note's check criteria.
- One problem at a time: Input is the task, execution history, trigger reason, and current note. Output is continue, or a well-evidenced problem with minimal correction. The authors state that unnecessary intervention could interrupt a trajectory that would have succeeded, so silence is allowed; only one problem is kept at a time to avoid instruction competition and to attribute subsequent results to a correction. Proposals specify the operator, evidence, location, current behavior, required change, and verification method, and additionally report whether the open note is still unresolved.
Audit-style note management
- Lifecycle: Notes are open or closed, with at most one open note at a time. A note can be created when none is open, or updated when new evidence changes the diagnosis; updates can change the operator and guidance but not the identity and criteria. Two audits only accept or reject, without rewriting proposals.
- Admission: After validity and duplication checks, the audit verifies that the evidence supports the diagnosis, the correction is necessary, and the proposed check can establish resolution. The authors give examples: optional cleanup unrelated to the task, and repeated old guidance without new evidence, are both rejected. Rejection leaves the current note unchanged.
- Compliance and resolution: Compliance is checked by rules for whether the agent attempted the correction; resolution is against the fixed criteria, asking whether the original problem has disappeared. Figure 3b's example is: after adding the suggested guard, the required test still fails. Closure must publish an audit: behavioral requirements check execution results, static requirements check visible edits. After acceptance, the note is archived and guidance removed from context. Closure precedes admission; the same review can close one problem and open the next.
- Interface constraints (Appendix A): Opera acts as a proxy between the agent and the model endpoint, inserting at most one message. The critic does not execute commands, access files, or run tests; on timeout or unparseable replies, it forwards unchanged. Notes pointing to hidden tests or evaluation materials, and notes that repeat the same suggestion within 6 turns, are discarded. When more than half of recent observations are still novel content, readiness notes are temporarily withheld. Admission audit is a separate critic model call, with no confidence threshold set.
How guided trajectories become training samples
- Two sources: Opera-guided student trajectories use Qwen3.5-9B as policy and Qwen3.8-27B as critic; teacher trajectories use Qwen3.8-27B as policy without a critic. Appendix B supervises both on the same set of tasks.
- Removing critic dependence: At inference, no critic is added, so critical notes in the context are removed. Appendix B writes that 4.9% of turns received audited notes, whose diagnoses were rewritten as the turn's own reasoning and placed before thinking; sentences mentioning the critic were deleted. Loss is computed only on the target turn.
What experiments did the paper conduct?
In Table 1, Opera's mean is higher than the four baselines; in Figure 4, Qwen3.5-9B improves by 15.0 percentage points on SWE-Pro.
Experimental Setup
- Policy models: Qwen3.5-9B (thinking), Muse-glimmer-30B (high), Qwen3.8-27B (xhigh), Deepseek-V4-Flash-0731 (max). Default critic is GPT-5.6-Sol (high). Section 5.3 also uses the policy model itself and Claude; the paper does not specify Claude's version.
- Benchmarks and environments: Terminal-Bench 2.1, 89 tasks, Terminus-2; SWE-Bench Pro, 100 tasks sampled from a set revised inspired by OpenAI benchmark auditing, covering all repositories of the original swebench-pro, OpenHands; DeepSWE v1.1, 113 tasks, mini-swe-agent. Harbor manages tasks, Pier provides anti-cheating network isolation. Timeouts use task-specific values from Harbor's official dataset card; the text does not give seconds.
- Baselines: non-critic agent; process critics SWE-PRM, SWE-Search; outcome-side LLM-as-verifier, Agentic Rubrics. Appendix A.1 changes process critics to the same mixed review timing as Opera. LLM-as-verifier uses scores 1–20, accepting at least 14; Table 1's GPT-5.6 critic uses sampled scores. Agentic Rubrics uses at most eight repository rubrics per task.
- Metrics and repetitions: main metric is resolve rate (%). Figure 1's y-axis says Task success rate, Figure 4 says Task resolve rate. Tables show mean ± std; Figure 4 says error bars are sample standard deviation. Tables 3, 4, 5 say three rounds; Table 1 does not state the number of rounds.
- Evaluation: Section 4 does not state that success determination for all three benchmarks is hidden tests, rules, or human. Appendix D's case writes success as hidden tests pass. Main results are not a separate LLM judge score.
- Training evaluation: Section 4.3 removes the critic at inference time, then tests the fine-tuned Qwen3.5-9B.
Main Results
Table 1's policy is Qwen3.8-27B. Section 4.1 writes that unless otherwise stated, the critic is GPT-5.6-Sol. Units are %.
Swipe horizontally to read the table
Method TB-2.1 SWE-Pro DeepSWE Non-critic 65.9 ± 1.7 75.3 ± 1.2 32.4 ± 1.0 SWE-PRM 68.9 ± 3.2 77.7 ± 2.5 36.6 ± 3.1 SWE-Search 70.0 ± 4.7 77.3 ± 3.8 38.6 ± 4.4 LLM-as-verifier 71.2 ± 2.6 78.7 ± 2.3 38.9 ± 2.3 Agentic Rubrics 71.9 ± 4.5 78.3 ± 3.2 39.5 ± 2.8 Opera 73.8 ± 2.3 79.3 ± 3.5 41.3 ± 3.1 - The authors state that Opera has the highest average resolve rate on all three benchmarks; the gap over the strongest baseline is written in the text as 1.9 pp on Terminal-Bench 2.1, 1.8 pp on DeepSWE, and 0.6 pp on SWE-Bench Pro. The Gain row in the table is +7.9, +4.0, +8.9 pp.
- The authors state that on SWE-Bench Pro the non-critic agent is already strong, and the gains from each critic are similar and small. The authors attribute this to two design points: intervention during execution, and explicit resolution criteria for each note before closing.
- The process critic baselines have been changed to the same review timing, so Table 1 is not the numbers under these methods' original invocation.
Different Policy Models
- Gains named in the text: with critic GPT-5.6-Sol, Qwen3.5-9B improves by 12.4 and 15.0 pp on Terminal-Bench 2.1 and SWE-Bench Pro. Figure 4's left panel labels 23.6, 36.0 and 35.3, 50.3, consistent with these gains. On DeepSWE, this model solves no tasks with or without criticism.
- Figure 1 panel labels: SWE-Bench Pro, Muse-glimmer-30B: +11.0 pp; Terminal-Bench 2.1, DeepSeek-V4-Flash: +4.1 pp; DeepSWE, Qwen3.8-27B: +8.9 pp. Figure 4's DeepSeek panel also has +4.0 pp, +4.1 pp, +8.8 pp, not mapped to benchmarks item by item in the text.
- Authors' interpretation: except for the DeepSWE case above, every policy model improves on every benchmark. The authors state that weaker agents usually benefit more, but headroom matters more than model strength itself; DeepSeek-V4-Flash gains little on already strong benchmarks and more on the harder DeepSWE. The authors state that Muse Glimmer-30B nearly triples from a low starting point on DeepSWE, but the absolute gain is still limited; Figure 4's panel labels 3.5, 10.0 and +6.5 pp. The authors believe criticism cannot replace missing capability.
Training Recipe
- Data: SWE-Bench Pro is split by repository into 270 training tasks and 108 held-out tasks (Table 2). 67 tasks are selected: base Qwen3.5-9B succeeds at most once in three non-critic runs, at least one critic-guided run succeeds, and Qwen3.8-27B also succeeds without criticism. Also evaluated on Terminal-Bench 2.1, whose task format and harness differ from the training data.
- Table 3 (three rounds, no critic at inference, %): base on held-out SWE-Pro and TB2.1 is 28.7 ± 1.9 and 23.6 ± 1.9; Qwen3.8-27B teacher trajectories are 39.5 ± 1.4 and 7.9 ± 1.9; Opera guided trajectories are 38.9 ± 2.4 and 25.8 ± 2.2.
- Authors' interpretation: the text states that both sources improve held-out SWE-Bench Pro by about 10 pp, with no meaningful difference between them; the abstract and contributions write Opera guided trajectories as +10.2 pp and state it is comparable to fine-tuning on trajectories from a stronger model. On TB2.1, teacher trajectories drop from 23.6% to 7.9%, while Opera guided trajectories are 25.8%. The authors mainly attribute this to whose actions they come from: teacher trajectories are off-policy for student alignment; Opera guided trajectories are approximately on-policy, with criticism entering only through notes in context.
Critic Behavior and Auditing
- Operator distribution: in Figure 5, the Edit phase accounts for most delivered notes, with Search and Submit fewer. Qwen3.5-9B's requirement contract is 41.7%; Qwen3.8-27B and DeepSeek-V4-Flash's state transition are 39.3% and 34.4%. The authors state that among flagged trajectories, weaker models are more often diagnosed as misreading requirements, while stronger models are more often execution logic errors.
- Trials receiving notes: Figure 6a's observed success rates versus no-critic expectation: Qwen3.5-9B 40.4% vs 25.1% (+15.3 pp), Muse-glimmer-30B 46.0% vs 37.3% (+8.6 pp), Qwen3.8-27B 51.3% vs 45.6% (+5.7 pp), DeepSeek-V4-Flash 65.0% vs 57.7% (+7.3 pp). The authors state that stronger models are rescued more often and also regress more often on tasks they would have solved; Figure 6b's two group proportions have different denominators, and text extraction cannot reliably match the legend, so paired numbers are not cited here.
- Removing auditing: Table 5, under the same policy and GPT-5.6-Sol, removing admission and release auditing reduces gains from +7.9, +4.0, +8.9 pp to +2.6, +3.0, +4.5 pp. The authors believe auditing filters harmful interventions and matters more on benchmarks where intermediate evidence is easy to misread and wrong corrections are costly.
Other Ablations and Analyses
- Table 4 (Qwen3.8-27B, three rounds; TB2.1 / SWE-Pro / DeepSWE): Edit-only is 71.9 ± 1.6 (+6.0), 79.0 ± 3.5 (+3.7), 40.1 ± 1.8 (+7.7); Non-edit is 70.2 ± 0.8 (+4.3), 78.3 ± 0.6 (+3.0), 39.5 ± 2.7 (+7.1). The full set has the highest mean, but the gap over Edit-only is small; the authors cite 0.3 pp on SWE-Bench Pro and state it falls within round-to-round fluctuation.
- The authors state that Non-edit accounts for only about one-fifth of delivered notes, yet recovers more than half, three-quarters, and about four-fifths of the full gain on the three benchmarks respectively; the gains of the two restricted sets are not additive.
- Section 5.3: after removing Qwen3.5-9B's DeepSWE, among the remaining 33 policy–benchmark–critic combinations, all but one are above no-critic; the paper does not name that exception. On DeepSWE, self-criticism improves Qwen3.8-27B and DeepSeek-V4-Flash by 6.2 pp each.
- Same section: with GPT as critic, Qwen3.5-9B improves by at least 12.4 pp, while self-criticism improves by at most 2.7 pp. The authors state that self-criticism works when the policy is capable and is weaker when the policy lacks problem-solving ability, because the critic shares blind spots with the policy; this comparison does not match the extra inference compute of self-criticism.
- Figure 10: all three Edit operators have positive gains for all four models; failure triage is +5.6 pp only for Qwen3.5-9B, with the other three panels at -1.0, -1.0, -1.2 pp. The authors state that reinterpreting errors rarely tells the agent what to change.
- Figure 12: the authors state that most of GPT-5.6's candidates are delivered, self-criticism delivers only about one-third, and nearly half are filtered before auditing; the main filter is existing open notes. The figure's Self labels are 33.1%, 21.2%, 45.6%, with legend order Delivered, Audit rejected, Pre-audit filtered.
What are some points that can be further explored?
The conclusion describes the training scope as single-model supervised fine-tuning and an out-of-domain benchmark, and lists scaling data and combining reinforcement learning.
Limitations and future directions noted by the authors
- Training scope: The conclusion states that the training results use supervised fine-tuning on a single model and an out-of-domain benchmark (Conclusion).
- Future directions: The same sentence states that scaling the recipe to larger datasets, using the trained model as a new policy for iteration, or combining critique feedback with reinforcement learning to internalize self-correction could be future work (Conclusion).
- The paper has no separate Limitations section; explanations of phenomena in Experiments and analysis are not counted here.
Experimental coverage
- Policy models are Qwen3.5-9B (thinking), Muse-glimmer-30B (high), Qwen3.8-27B (xhigh), Deepseek-V4-Flash-0731 (max); the default critic is GPT-5.6-Sol (high), and Section 5.3 additionally tests policy model self-criticism and Claude, without specifying the Claude version (Sections 4.1, 5.3).
- Test-time benchmarks are Terminal-Bench 2.1 (89 tasks, Terminus-2), a corrected sampled SWE-Bench Pro 100 tasks (OpenHands), DeepSWE v1.1 (113 tasks, mini-swe-agent); Harbor for management tasks, Pier for network isolation (Section 4.1).
- Critique baselines are SWE-PRM, SWE-Search, LLM-as-verifier, Agentic Rubrics; process critiques are changed to the same mixed review timing as Opera (Table 1, Appendix A.1).
- Tables 3, 4, 5 report mean ± std over three runs; Table 1 and Figure 4 give standard deviations, and Table 1 does not state the number of repetitions. The paper does not report the number of critic queries or time cost; Section 5.3 states that self-criticism increases inference computation, but the comparison does not match compute.
- Training is full-parameter supervised fine-tuning of Qwen3.5-9B on 67 SWE-Bench Pro training tasks; no criticism at inference, evaluated on held-out 108 tasks and Terminal-Bench 2.1 (Section 4.3, Table 2, Appendix B).
Summarize the main content of the paper
Opera improves long-horizon coding agents with auditable persistent correction notes, and can use guided trajectories for approximately on-policy fine-tuning.
Opera is a verbal criticism framework for long-horizon coding agents: each correction is a persistent note that must be followed to resolution, not a one-time comment.
- Problem addressed: In repository-level execution, agents may repeatedly fail or report completion without verification. The authors argue that misjudging incomplete work makes feedback ineffective or even harmful, and that generating feedback without looking at post-hoc outcomes also fails to distinguish compliance from actual resolution.
- Method: Periodic review plus Idle, Repeat, Error, Claim, Submission; nine contract-bearing operators diagnose only one issue each time; an admission audit decides whether to deliver; compliance and resolution are tracked separately, and closure only after release audit passes. The critic does not execute commands or update weights.
- Test-time: Default critic is GPT-5.6-Sol. Qwen3.5-9B improves resolve rate by 12.4 and 15.0 percentage points on Terminal-Bench 2.1 and the SWE-Bench Pro subset, respectively, and solves no tasks on DeepSWE v1.1. Table 1, with Qwen3.8-27B as the policy, shows Opera at 73.8 ± 2.3, 79.3 ± 3.5, 41.3 ± 3.1 (%), gains of +7.9, +4.0, +8.9 pp, averaging above four criticism baselines. The authors say stronger critics usually give larger gains, but no critic is best in all settings; a policy model criticizing itself can also improve when it is itself capable.
- Training: Opera-guided Qwen3.5-9B trajectories are used for supervised fine-tuning, with no criticism at inference. The abstract says held-out SWE-Bench Pro improves by 10.2 percentage points; Table 3 shows 38.9 ± 2.4, base 28.7 ± 1.9, teacher trajectories 39.5 ± 1.4. On Terminal-Bench 2.1, teacher trajectories drop to 7.9 ± 1.9, while Opera-guided trajectories are 25.8 ± 2.2. The authors mainly attribute this to actions coming from the student itself.
- Authors' conclusions: Persistent-note criticism at test time can improve resolve rate; the same process can also turn a stronger model's expertise into approximately on-policy self-reflection data. The conclusion limits current training results to single-model supervised fine-tuning and one out-of-domain benchmark.