OneDayAgent: Towards a Long-Horizon Harness for Autonomous Agents

Jingsheng Zheng, Xinyuan Fang, Jintian Zhang, Zhengke Gui, Huajun Chen, Ningyu ZhangarXiv 2026

TL;DR

OneDayAgent is a long-horizon execution harness designed to help autonomous LLM agents successfully complete complex, multi-step everyday tasks spanning work, study, and life. By integrating task decomposition, context-managed execution memory, and a global verification/repair loop, it mitigates common agent failure modes like goal drift and context overflow. Powered by the GLM-5.2 backend, OneDayAgent establishes a new state-of-the-art score of 0.821 on the AgentIF-OneDay benchmark and demonstrates excellent zero-shot transferability across multiple LLM families.

What Problem Does This Paper Address?

As Large Language Model (LLM) agents transition from simple question-answering to executing open-ended, real-world workflows, they face severe operational challenges. Tasks like conducting deep research, editing local files, and generating complex deliverables often require hours or days of execution.

Over these long horizons, agents typically suffer from three compounding failure modes:

  1. Goal Drift: Forgetting initial user constraints as the interaction history grows.
  2. State Loss: Failing to transfer intermediate data and findings when switching between different environments (e.g., moving from a web browser to a local file system).
  3. Context Overflow: Exceeding the model's context window due to high-volume, noisy tool outputs.

While prior research has targeted these issues individually, OneDayAgent provides a unified, backend-agnostic harness to manage them jointly.

Motivation and challenges of long-horizon everyday tasks

Methods

The authors introduce OneDayAgent, a structured execution framework that wraps around a backend LLM and orchestrates the workflow through three core capabilities:

  • Task Decomposition (Planner): Instead of letting the agent run blindly in a single, uninterrupted ReAct loop, the harness first decomposes open-ended requests into an ordered sequence of bounded subtasks. This provides the agent with clear, local objectives while the harness preserves the global user intent.
  • Execution Memory: To handle context pressure, the framework employs summarized truncation for noisy tool outputs, passes only compact answers and file handles across subtask boundaries (discarding low-level traces), and triggers automatic context compression (generating an LLM summary of the dialogue history) when approaching context limits.
  • Global Verification and Repair: Once all subtasks are synthesized into a final product, an independent verification pass evaluates the deliverable against the original constraints. If a defect is detected, the harness initiates a targeted repair loop to fix the specific issue rather than restarting the entire task from scratch.

All of these capabilities interact with a unified action space encompassing web browsing, academic search, code execution, file manipulation, and multimodal processing.

Overview of the OneDayAgent execution harness workflow

Datasets

The framework is evaluated on AgentIF-OneDay, a comprehensive task-level benchmark designed to test instruction-following capabilities in general-purpose agents across 104 realistic daily-life tasks. The benchmark features 767 instance-level scoring points and covers three distinct interaction patterns:

  • Open Workflow Execution (OWE): Testing adherence to explicit multi-step procedures.
  • Latent Instruction Inference (LII): Requiring the agent to infer implicit rules from provided context.
  • Iterative Refinement (IR): Evaluating the agent's ability to modify or extend an existing artifact while maintaining state consistency.

Key Insights and Ideas

  • Harness over Scale: A robust execution harness can dramatically elevate agent performance across different model families without requiring model-specific fine-tuning.
  • Distinct Execution Styles: The same harness workflow induces highly distinct behaviors depending on the backend LLM. For example, GLM-5.2 acts as a high-cost, thorough executor (averaging 51.6 tool calls per task), whereas Gemini-3.1-Pro-Preview operates with a much leaner profile (18.7 tool calls per task).
  • Asymmetric Module Costs: Ablation experiments revealed that task decomposition is highly effective but expensive, increasing tool calls by ~60% and adding significant latency. Conversely, the verification/repair module provides a comparable performance boost at a fraction of the cost (adding just 2.2 minutes of overhead on average).
  • Compression Resilience: Automated context compression successfully keeps long trajectories within context budgets without causing systematic score degradation, proving that exact dialogue history is less critical than structured state preservation.

Key Results

  • State-of-the-Art Performance: OneDayAgent paired with a GLM-5.2 backend achieved a record-breaking overall score of 0.821 on AgentIF-OneDay, substantially outperforming existing commercial and open-source agent baselines like AutoClaw (0.80) and Manus (0.645).
  • Consistent Domain Leadership: The framework achieved top marks across all task types (OWE: 0.818, LII: 0.821, IR: 0.829) and all evaluated domains (Work, Life, Study).
  • Ablation Validation: Enabling both decomposition and verification (the FULL configuration) yielded a +5.0 percentage point improvement over direct execution without the harness.
Analysis of subtask depth, cost, and verification flow

Limitations and Future Work

  • Security Risks & Sandbox Isolation: The current implementation executes shell commands and file operations directly on the host machine without workspace isolation. This leaves the system vulnerable to prompt-injection attacks from untrusted web content or malicious files. The authors emphasize that containerized sandboxes are a critical requirement for future deployments.
  • Benchmark Specificity: The evaluation is restricted to the AgentIF-OneDay dataset. Testing on a broader variety of long-horizon benchmarks is necessary to fully validate cross-domain generalization.
  • Causal Isolation of Memory: While context compression correlates with stable task quality, a rigorous causal isolation of how individual memory components prevent state loss remains an open area for future research.

Summary updated

BibTeX
@misc{zheng2026onedayagent,
  author = {Jingsheng Zheng and Xinyuan Fang and Jintian Zhang and Zhengke Gui and Huajun Chen and Ningyu Zhang},
  title = {{OneDayAgent: Towards a Long-Horizon Harness for Autonomous Agents}},
  year = {2026},
  eprint = {2608.05013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.05013},
}
Figure