Explore the research collection
2 entries · Follow this search
- Paper
Sentry: Learning to Recover from LLM Agent Failures at Test Time
Test-time framework for recovering LLM agents from failures, from Stanford's ACE (Agentic Context Engineering) team. Core finding: failure knowledge is conditional — how it reaches the agent matters as much as what it contains. Failure lessons kept in context misfire when their failure is absent: ACE-style memory that keeps past failure lessons in context for every task distracts the agent (e.g., on WebShop the agent found the right product then kept comparing alternatives and never acted); simply removing failure lessons improves ACE by +17% on WebShop and +14% on Mind2Web Replay. Conversely, runtime-intervention methods (AgentGuard) act only on failure but learn nothing — fixed rules can fire at the wrong time (a 'no progress' warning made the agent abandon correctly picked product options). Sentry combines both: it learns from experience like ACE, but keeps failure knowledge in a separate playbook outside the agent's main context; a failure detector watches for failures, retrieves failure-specific guidance (hard repair for invalid actions, soft repair with hints), and a verifier checks recovery without access to task rewards — the playbook is updated only if recovery succeeded. Results on WebShop, AppWorld, SWE-bench Lite, Mind2Web Replay: +37% over the best runtime-intervention baseline on average (up to +77% on WebShop), +39% over ACE; ACE+Sentry combined performs best overall, with task-level and failure-level learning as complementary. Learned lessons transfer to held-out tasks; controlled experiments confirm exposing the full playbook hurts even when relevant lessons remain available on demand. CC BY 4.0 license. Directly relevant to the user's agent app (memory design: storing knowledge is easy, deciding when the agent sees it is what matters) and to Launch Helm's intervention/control angle.
- Paper
Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity
MIT CSAIL paper (Li/Liu et al.; arXiv 2609.26891v1) introduces JAZ: an agent framework whose sole LLM primitive is invoke — the model writes arbitrary executable code (including recursive invoke) while all inputs and REPL history are REPL variables. With prompting only (no external memory/tools/file system), JAZ beats Letta (MemGPT) by ~8% at half cost on StuLife far-recall (69.9% vs 61.8% pass; $18.3 vs $42.1) and beats ACE by ~4% at lower cost on AppWorld continual self-improvement (TGC 74.2% vs 69.9%). Hooks (budget, return-type, context-window warning, tracing) and dynamic scope add constraints without bloating the core loop. Code: jaz-lang/jaz + jaz-evals.