Dual-Loop Agent Specialization: Co-Adapting Policy Weights and Harness Workspace
–arXiv.org Artificial Intelligence
Domain specialization of LLM agents is often framed as a choice between updating model weights and editing the surrounding agent harness. We instead study them as complementary online loops over a shared task-level rollout pattern. The first loop is SAO RL: we engineer a real-time single-rollout, full-parameter training path for long-horizon agent traces, with turn-level SAO credit, action-token-only gradients, exact streaming over 200k contexts, fused critic/actor objectives, prompt-prefix reuse, and restart-based quantized vLLM serving. The second loop evolves the harness workspace---the system prompt, tool registry, skills, exemplars, and manifest---with Evo-Harness, which turns one-shot execution contexts into auditable workspace edits through grounded reflection. Weight updates change the model's conditional distribution; harness evolution changes the evidence, tools, and procedures supplied to that model. Neither loop is treated as a substitute for the other. In a six-instance SWE-bench Verified training study with Codev, a Claude Code-style coding agent, the SAO loop resolves all six rollouts while the harness loop resolves four, with one verifier failure and one 3{,}000-second timeout. Their mean process rewards round to the same value (0.414) but have different temporal profiles. The final Evo artifact is one system-prompt edit produced after three reflection attempts on the same six rollouts. We audit solve rates, process signals, token accounting, and streamed reasoning lengths from these completed runs, and find that reasoning lengths are not uniformly compressed. These results motivate vertical specialization as joint adaptation of policy weights and harness workspace rather than a competition between them; cross-domain, combined-configuration, and retention-gate evaluation remain future work.
arXiv.org Artificial Intelligence
Dec-1-2026