TL;DR
CHILL-Harness introduces a causal learning framework to dynamically optimize the orchestration layer of long-horizon LLM agents. By evaluating counterfactual workflows, it intelligently determines when to intervene—such as allocating extra deliberation or correcting an execution path—substantially cutting token consumption and execution time while preserving or improving task success.
What Problem Does This Paper Address?
Large Language Model (LLM) agents are increasingly deployed on complex, long-horizon tasks like software engineering or multi-step information seeking. To interact with the world, these agents rely on an operational infrastructure called an agent harness, which coordinates tools, manages context, and verifies progress.
Currently, most agent harnesses rely on rigid, hand-crafted rules or globally fixed workflows. This lack of flexibility creates a major mismatch: an agent might waste massive computational resources over-deliberating on a trivial step, or conversely, forge ahead blindly on a failing execution path without correcting course. Prior adaptive methods have focused on optimizing high-level multi-agent collaboration structures rather than determining whether a specific, concrete intervention will causally improve the active workflow.
Methods
The authors formulate adaptive harness orchestration as a causal learning problem and propose CHILL-Harness (Counterfactual Harness Intervention Learning for Long-Horizon Agents). The framework treats the agent's default proposed workflow as a "factual reference" and alternative actions as "counterfactual interventions" evaluated under the exact same execution context.
CHILL-Harness splits this problem into two core components:
- Causal Intervention Effect Learning (CIEL): This component estimates the context-conditioned advantage of alternative workflows over the default path. It factorizes online control into three specialized decision heads:
- Counterfactual Deliberation Effect (CDE): Determines the depth of reasoning needed (Skip, Light, or Full) to avoid unnecessary planning overhead.
- Counterfactual Revision Effect (CRE): Decides whether to stick to the factual path or switch to a modified candidate workflow.
- Completion Attribution Effect (CAE): Evaluates whether the task is genuinely complete to prevent premature termination or endless looping.
- Advantage-Realizing Causal Orchestration (ARCO): The realization component that executes CIEL's insights. It filters out inadmissible actions based on safety and budget constraints, scores candidates using a combined causal-operational utility function, and conservatively authorizes workflow changes only if the estimated advantage exceeds a strict safety margin.
Datasets
The framework was evaluated across three heterogeneous, long-horizon benchmarks representing distinct execution environments:
- GAIA: A benchmark for general AI assistants focusing on complex information seeking and tool-assisted reasoning.
- SWE-bench Verified: A subset of SWE-bench focusing on repository-level software engineering and real-world GitHub issue resolution.
- Terminal-Bench 2.0: A benchmark testing agents on hard, realistic command-line interface tasks.
Key Insights and Ideas
- Harness Orchestration as Causal Inference: Instead of treating agent actions as isolated sequential decisions, modeling them causally allows the system to isolate the true contribution of an intervention under a fixed context, filtering out spurious associations.
- Decoupling "What" from "How": CIEL separates the identification of what adaptation is beneficial (learned offline via checkpointed paired execution replays) from how it should be realized online via factorized decision heads.
- Conservative Authorization: To protect task performance, the framework enforces a success-preserving objective. Efficiency-related adaptations are only given positive reinforcement during training if task success is maintained, preventing the agent from taking risky shortcuts.
Key Results
CHILL-Harness consistently placed on the Pareto frontier of effectiveness and efficiency across all three benchmarks, outperforming heavily engineered baselines.
- GAIA: CHILL-Harness achieved the highest success rate among all compared systems (71.3%), while simultaneously reducing token consumption by 28.4% and cutting execution time by 46.6% compared to the best-performing baseline.
- SWE-bench Verified: It maintained a top-tier success rate of 65.6% while delivering a 13.1% token gain and a 25.9% reduction in runtime.
- Terminal-Bench 2.0: It achieved a 23.1% reduction in token usage, demonstrating strong efficiency gains even in highly complex terminal environments.
Ablation studies confirmed that forcing full deliberation at every step (the "Always-Full" variant) severely degrades performance and spikes costs, validating CHILL-Harness's selective, route-before-generation approach.
Limitations and Future Work
The primary limitation noted is that learning the causal effects relies on an offline training phase using disjoint paired traces. This requires checkpointing and replaying execution branches, which can be computationally intensive during data collection. The authors suggest that future work could explore online or active causal learning mechanisms to update intervention policies dynamically on the fly without relying entirely on pre-collected paired traces.
Summary updated