Switchback: A Long-Horizon Agent System for Ultrarunning Training
Abstract
Preparing for an ultratrail race is a months-long experiment in physiological adaptation. Training decisions must account for long-term goals, fitness gains, short-term fatigue, recovery, illness, weather, and physiological data uncertainty, with significant consequences for athlete health. We present Switchback, an open-source agent system that combines a structured constitution, user-owned memory, task-specific skills, an exercise science knowledge base, with tools for accessing wearable data. We deployed Switchback for 174 days while the author-runner prepared for three ultratrail races, covering 102 runs, 1,154 km, 34,554 m of climbing, and 180 elapsed hours, alongside more than 3,100 user and agent messages and 540 million total API tokens. Lessons from this six-month user-agent collaboration shaped UltraBench, a synthetic benchmark of 60 scenarios evaluating training agents for health safety, adaptation, constructive planning, memory stewardship, and tool orchestration. We refined Switchback on 12 development scenarios, and evaluated it on 48 held-out scenarios across six models from three providers. Against baseline CLI agents with identical access to files and tools, Switchback raised the cross-model mean score from 73.4 points to 79.6 points, a paired gain of 6.2 points (+8.4%; 95% CI 4.2-8.2). Even frontier models capable of proficient advice make safer, better-grounded decisions when anchored by structured tool-use, explicit health guardrails, and an exercise science knowledge base. We release Switchback and UltraBench at https://switchback.run as an open testbed for long-horizon human-AI collaboration in endurance sports and athlete health.
Create a lesson
Metadata
- Categories
- cs.AI, cs.HC, cs.LG
- Comments
- Accepted to the Third Workshop on GenAI for Health at NeurIPS 2026 (Sydney). 21 pages, 3 figures. The Switchback agent system and UltraBench benchmark are available at https://switchback.run
Related papers
WebRelay: Plan-First Synthesis of Verifiable Long-Horizon Tasks for Browser Agents
Shared title terminologycs.AIChenting Xu, Chuang Peng, Zilin Guo et al.
Self-Context: Graph-Based Context Self-Management for Long-Horizon Agents
Shared title terminologycs.AIZiheng Wang, Chengyi Yang, Renxu Bao et al.
HybridSpec-CUA: Accelerating Long-Horizon Computer-Use Agents with Hybrid Interfaces via Irreversibility-Aware Speculation
Shared title terminologycs.AILe Zhou, Xichong Zhang, Zirui Tang et al.
World Decision Model: Decision-Aware World Modeling for Reliable Long-Horizon Agents
Shared title terminologycs.AIBo Shen, Junjie Zhang, Peijie Gao et al.
AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks
Shared title terminologycs.AIDongrui Liu, Qingyu Liu, Tianyi Zhou et al.
Pushing the Error Frontier: Recursive Self-Improvement of Long-Horizon Agents via Frontier-Aligned Self-Distillation
Shared title terminologycs.AIYuyang Hu, Yashu Liu, Tong Zhao et al.