🛰️ Daily AI Frontier
‹ back to 2026-10-29

Spine: Compiling Subtask Trees into Structured Context for Long-Horizon Coding Agents

arXiv cs.SE LLM Agents Jiahong Xiang, Kunqiu Chen, Lingming Zhang, Yuqun Zhang 2026-10-27

TL;DR - Spine structures coding-agent context around nested subtasks, retaining active work while compressing completed scopes into results. It improves long-horizon coding performance while substantially reducing costs.

  • Uses explicit work scopes and a persistent SpineTree to track subtask relationships, interactions, completion states, and results.
  • Compiles context just in time, preserving unfinished-subtask details and prefix-cache reuse.
  • SpineCodex improved SWE-Milestone Score by 11.8% and reduced total cost by 32.4% versus native Codex with GPT-5.6 Sol.
  • It matched recursive-subagent performance on SWE-Milestone at 73.7% lower total cost and also improved Pi-based agents across tested models.

view merged work →