CoT-Proxy Trains Smarter AI Agents From Closed Model API Hints
A new distillation recipe copies a frontier teacher's agent behavior from actions and API reasoning summaries alone, with no hidden chain-of-thought needed.
Takeaways
- CoT-Proxy distills long-horizon agent policies from a teacher's actions and API reasoning summaries, with no hidden CoT needed.
- Students train with an empty think block; at inference they reason in their own style while acting like the teacher.
- A KL loss on a replay buffer of the student's own generations prevents drift from its initial reasoning behavior.
- Action-only distillation of Qwen3.6-27B raises Qwen3-4B from 7% to 18% and Qwen3-32B from 12% to 25% on AppWorld.
- Distilling GPT-5.6 Luna lifts Qwen3-4B to 48% on AppWorld and 28% on SWE-bench Verified.
- No maintained code repository has been released yet for the method.
Closed frontier models can produce useful demonstrations for training long-horizon agents, but their APIs usually withhold verbatim chain-of-thought. Dawid Kopiczko, Tijmen Blankevoort, and Yuki Asano address that constraint in CoT-Proxy, a method that fine-tunes students on teacher actions and brief reasoning summaries. Their experiments show that a student trained with empty reasoning blocks can recover its native reasoning format at inference while adopting a stronger action policy.
The missing field in agent distillation
Long-horizon agents complete tasks through sequences of tool calls, where an early mistake can derail every later step. A training trajectory records the observations, reasoning artifacts, and actions produced during one of those sequences. Supervised distillation usually teaches a smaller student to reproduce both the teacher’s reasoning and its actions.
Closed APIs expose final actions and sometimes short reasoning summaries, while keeping the underlying chain-of-thought private. That omission removes a standard training target from full-CoT distillation, even when the visible trajectory contains enough information to reconstruct the teacher’s decisions.
An empty think block preserves reasoning
- Collect teacher trajectories. Save the environment state, any API-provided reasoning summary, and the resulting action or tool call at each turn.
- Format the target. Place an empty
<think>block before the teacher’s action. CoT-Proxy inserts the reasoning summary between that empty block and the action. - Fine-tune the student. Use supervised learning to fit the visible trajectory.
- Limit model drift. Apply a KL-divergence penalty to a replay buffer of the student’s own responses, including its native reasoning. This penalty measures and discourages large changes in the model’s output distribution.
- Restore thinking at inference. Enable the student’s reasoning block and let it generate its own chain-of-thought before selecting an action. No teacher summary is available or required during deployment.
Training:
<think></think>
[teacher reasoning summary]
[teacher action or tool call]
Inference:
<think>[student reasoning]</think>
[student action or tool call]
Cross-format transfer describes the resulting behavior: training examples contain empty reasoning blocks, yet the deployed model resumes reasoning in its original style and selects actions closer to the teacher’s policy. The KL term anchors the student to its initial reasoning behavior while supervised fine-tuning changes how it acts.
The action-only baseline omits the summary and retains the empty block. For open teachers, the proxy can come from a generated summary of the full chain-of-thought. For closed teachers, it can use the short reasoning summary returned by the API.
Small summaries, large gains
AppWorld evaluates agents on multi-step tasks across simulated applications and tool interfaces. SWE-bench Verified measures whether a model can resolve vetted software issues in real repositories. The paper tests Qwen3.6-27B as an open teacher, GPT-5.6 Luna as a closed teacher, and Qwen3-4B or Qwen3-32B as students.
| Teacher | Student | Training signal | AppWorld | SWE-bench Verified |
|---|---|---|---|---|
| None | Qwen3-4B | Unmodified model | 7 | 3 |
| Qwen3.6-27B | Qwen3-4B | Actions only | 18 | Not reported |
| Qwen3.6-27B | Qwen3-4B | CoT-Proxy | 35 | Not reported |
| None | Qwen3-32B | Unmodified model | 12 | Not reported |
| Qwen3.6-27B | Qwen3-32B | Actions only | 25 | Not reported |
| GPT-5.6 Luna | Qwen3-4B | CoT-Proxy | 48 | 28 |
On AppWorld, action-only distillation from the open teacher raises Qwen3-4B from 7% to 18%. Adding the reasoning proxy lifts the same student to 35%, a gain of 17 percentage points over action-only training. Qwen3-32B rises from 12% to 25% with actions alone.
Closed-teacher distillation raises Qwen3-4B from 7% to 48% on AppWorld and from 3% to 28% on SWE-bench Verified. Those increases amount to 41 and 25 percentage points, respectively, using the teacher’s externally visible outputs.
A separate Qwen3-4B SWE-bench comparison reports that CoT-Proxy exceeds full-CoT fine-tuning by 11.2 points and the initial model by 12.4 points. Both differences have reported p-values near 0.002. In larger student configurations, the experiments find no statistically detectable difference between CoT-Proxy and full-CoT training.
Why the proxy stays outside <think>
Putting the returned summary inside the student’s <think> block teaches the model to emit compressed API prose as its own reasoning. The authors report that this baseline underperforms and weakens the student’s native reasoning style.
CoT-Proxy places the summary after the closed reasoning block, making it an auxiliary target before the action. During deployment, the proxy disappears and the student resumes its original reasoning pattern. This placement lets the summary guide policy learning without turning its format into the student’s inference-time chain-of-thought.
A practical recipe with clear limits
CoT-Proxy applies most directly to teams that already collect end-to-end agent trajectories and can access reasoning summaries from a teacher API. Relevant uses include:
- Training smaller internal models for tool use and application automation.
- Fine-tuning code agents from expensive software-repair trajectories.
- Updating the action policy of a post-trained reasoning model while preserving its existing reasoning format.
Successful reproduction requires complete observation and action traces, consistent placement of the empty reasoning block and proxy, supervised fine-tuning, KL regularization over student generations, and held-out evaluation of end-to-end task success. Long-horizon evaluation matters because next-action accuracy can hide errors that compound across a trajectory.
The method still depends on a teacher that produces useful trajectories. APIs exposing only actions support the weaker action-only variant. The experiments cover two benchmarks, two student sizes from one model family, and a small set of teachers, leaving cross-family and cross-domain generalization untested.
Absolute success rates also leave substantial room for failure: the best reported closed-teacher student succeeds on 48% of AppWorld tasks and 28% of SWE-bench Verified issues. The paper and accompanying post do not identify a maintained implementation, so reproduction currently depends on the method description and the author’s X post.
For developers, the minimum useful training trace becomes smaller: visible actions support measurable gains, and API reasoning summaries provide a stronger policy signal. Within the reported experiments, access to the teacher’s verbatim chain-of-thought is unnecessary for competitive agent distillation.