fork() for Agents: Agent Kernel for Non-blocking LLM Orchestration
Abstract
LLM-based agents typically execute tool calls synchronously and discard completed work upon failure. Subgraph-selective recovery, re-executing only a failed node's transitive descendants, is a well-established pattern in distributed systems (Spark, Erlang/OTP, Dryad), and recent agent runtimes (Sherlock, AgentGit, Atomix) preserve completed work through verifiers, version control, or transactional tool boundaries. We present \textbf{Agent-Kernel}, a non-blocking runtime that ports this pattern to the LLM \emph{content plane}: its primitive, \textbf{Sub-Graph Recovery (SGR)}, fires on a raw exception with no trained verifier or planner, resets a failed node's descendants while preserving completed siblings, and composes each parent's text into its children's prompts (context inheritance), all on a durable substrate with a formal state-preservation guarantee. Across 14{,}434 runs on synthetic and standard benchmarks (tau-bench, Gaia2, AutomationBench, InterruptBench), SGR reaches full recovery within budget=3 where whole-trajectory replay exhausts (100\% vs.\ 55\%), and is roughly 10 faster than an adapted Sherlock rollback that also recovers. It matches ReAct-serial accuracy within noise on linear workloads while adding recovery and parallelism (up to 12.7 speedup) where structure permits. Ablation isolates SGR: removing it collapses success to 39.4\%.
Create a lesson
Metadata
- Categories
- cs.CL, cs.DC
- Comments
- Accepted in EACL 2027, Findings
Related papers
SecondChance: Benchmarking Reliable Error Recovery in AI Agents
Shared title terminologycs.CLAtahan Dokme, Adar Avsian, Larry Heck
ToolSmith: An Automatic Tool-Generation Framework for Multimodal Search Agents
Shared title terminologycs.CLRui Sun, Junhua Huang, Luca Zancato et al.
Deneb-Vritra: Descriptions, Edges and Names Examined by Blocking Via Restoring Token Representations and Attention
Shared title terminologycs.CLMohammed Nayeem Khan, Akhil P, Shahina Shaik
CocoonBench: Can Multilingual Search Agents Escape Language Information Cocoons?
Shared title terminologycs.CLHongchuan Zeng, Bowen Liu, Changjiang Gao et al.
What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym
Shared title terminologycs.CLYikai Zhang, Mai Xu, Yunbei Zhang et al.
VADE: A Verifiable Agent Data Engine from Professional Sources
Shared title terminologycs.CLXiangchao Chen, Zhiheng Lyu, Kai Zhang et al.