{"slug": "skill-state-state-instead-of-history", "title": "SKILL.state: State Instead of History", "summary": "A new paper, 'SKILL.state: Scalable Long-Horizon Agent Skills' by Badhe, Tiwari & Chung, proposes an agent architecture that maintains a current state instead of a full execution history, keeping per-step prompt size constant and reducing token usage from quadratic to linear growth. The approach uses JSON Merge Patch for state updates, and a quick implementation by the author tests the core claim.", "body_md": "# SKILL.state: State Instead of History\n\nI found [SKILL.state: Scalable Long-Horizon Agent Skills](https://arxiv.org/html/2608.26263v2) (Badhe, Tiwari & Chung) interesting. It proposes a different approach than most SOTA agent implementations: keep the current state, not the full execution history.\n\nAt each step, the model gets the skill, the current state, and the latest observation. It produces a state update and an action. The runtime applies the update, executes the action, and starts the next step from the new state.\n\nThe key idea is that state becomes the source of truth. The model does not reconstruct the present from a long transcript. It discards the reasoning behind each step right after that step commits.\n\nIn a normal history-based agent, each call carries most of the previous calls, so the context window eventually overflows. Per-step prompt size grows with every step, and total tokens over a run grow with the square of the step count. SKILL.state holds each step to three fixed inputs instead: the skill spec, the current state (a plain JSON object), and the latest observation. A state update applies as a JSON Merge Patch, so `null` deletes a field, an object merges recursively, and anything else replaces it. Per-step prompt size stays constant, so tokens over a run grow linearly instead of quadratically.\n\nI [wrote a quick implementation](https://github.com/soasme/rio) based on the paper, to test whether it holds up. Its test suite has one that asserts per-step prompt size stays constant across many steps rather than growing — a direct check of the paper’s core claim.", "url": "https://wpnews.pro/news/skill-state-state-instead-of-history", "canonical_source": "https://julin.ai/2026/09/05/skill-state/", "published_at": "2026-09-04 12:00:00+00:00", "updated_at": "2026-09-07 20:01:28.674091+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "ai-research"], "entities": ["SKILL.state", "Badhe", "Tiwari", "Chung", "arXiv"], "alternates": {"html": "https://wpnews.pro/news/skill-state-state-instead-of-history", "markdown": "https://wpnews.pro/news/skill-state-state-instead-of-history.md", "text": "https://wpnews.pro/news/skill-state-state-instead-of-history.txt", "jsonld": "https://wpnews.pro/news/skill-state-state-instead-of-history.jsonld"}}