
Autonomous LLM Agents: Planning Loops, Tool Interfaces, and Failure Recovery
Abstract
Background: Large language models answer single questions accurately, but deploying them as autonomous agents across multi-step software tasks leads to high failure rates from context loss, accumulated errors, and unguided planning loops.
Problem Statement: In tasks requiring 10 to 50 consecutive actions, standard models suffer from severe compound error degradation (), where a 90% step accuracy results in a 92.8% failure rate on 25-step horizons.
Methods: We explain the core mechanisms of autonomous agent decision-making across Reasoning-Action (ReAct) loops, verbal self-reflection memory (Reflexion), and specialized Agent-Computer Interfaces (ACI). We build a complete, type-safe asynchronous agent engine in Python 3.12+ using Pydantic V2 schemas, sandboxed tool dispatch with timeouts, and an episodic reflection buffer.
Results: Empirical evaluations show that verbal self-reflection increases code synthesis pass@1 rates on HumanEval from 80.1% to 91.0%, while structured ACI commands boost real-world GitHub bug resolution on SWE-bench Lite by a 64% relative margin over standard bash shells (from 11.0% to 18.0% using GPT-4 Turbo).
Keywords: autonomous agents, ReAct loops, Reflexion, tool dispatch, compound error law, agent-computer interface, Python 3.12.
1. Introduction & The Core Bottleneck
When a large language model (LLM) is deployed as an autonomous software engineer—such as diagnosing a bug in a 50,000-line repository, editing files, running test suites, and committing changes—it immediately encounters three fundamental bottlenecks:
- Frozen Memory and No Direct Hands: The model weights are frozen after training. The model cannot inspect live files, query databases, or execute terminal commands without external tool interfaces (Schick et al., 2023).
- The Multi-Step Error Snowball (Compound Errors): In multi-step tasks, a tiny mistake made in step 2 carries directly into step 3. Without validation and error-recovery mechanisms, the probability of completing a long task collapses toward zero (Huyen, 2025).
- Mixing Planning with Execution: Asking an LLM to create a high-level plan, format low-level tool parameters, and execute commands all in a single prompt causes it to hallucinate non-existent tool arguments or get trapped in repetitive loops.
flowchart TB
subgraph PolicyLayer ["1. Foundation Model Policy Layer"]
LLM["Policy Model (Frozen Weights θ)"]
end
subgraph Scaffolding ["2. Cognitive Scaffolding Runtime"]
direction TB
Guard["Intent Scope & Safety Guard"]
Registry["Tool Registry & Schema Validator"]
Sandboxed["Sandboxed Async Dispatcher"]
Memory[("Verbal Reflection Buffer M")]
Guard -->|"Validated Intent"| Registry
Registry -->|"Typed Arguments"| Sandboxed
Sandboxed -->|"Error Critique"| Memory
end
subgraph Environment ["3. External Operational Environment"]
direction TB
POSIX["Linux Filesystem & OS"]
APIs["REST APIs & Cloud Services"]
DB[("Database & Memory Storage")]
end
LLM -->|"Action Proposal a_t"| Guard
Memory -.->|"Episodic Reflections"| LLM
Sandboxed <-->|"Read & Write Window"| POSIX
Sandboxed <-->|"HTTP Dispatch"| APIs
Sandboxed <-->|"Query & Commit"| DB
1.1 The Core Triplet:
To turn a static autoregressive model into an autonomous agent, we place it inside a computational runtime defined by three parts (Huyen, 2025):
- The Environment (): The digital world the agent operates in (e.g., a Linux filesystem, a code repository, or a cloud API).
- The Tool Inventory (): The exact set of functions the agent can run. Each tool has a strict input schema (e.g.,
file_path: str,limit: int) and returns a structured observation. - The Policy Model (): The foundation model that inspects current observations and decides which tool to call next.
1.2 The Simple Mental Model: “The Pilot and the Cockpit”
- The LLM is the pilot sitting in the cockpit.
- The Tool Inventory is the set of dashboard dials, switches, and throttles.
- The Environment is the airplane and the sky.
- A pilot cannot fly without working dashboard instruments, and an autopilot that ignores engine warning lights will quickly crash.
2. The Multi-Step Compound Error Law
Why do autonomous agents work well on simple 2-step tasks but fail completely on 20-step tasks?
2.1 The Math Behind the Error Snowball
Suppose an agent is given a complex programming task requiring a sequence of individual steps:
Where is the action chosen at step , and is the observation returned by the environment. Let represent the probability that step executes successfully without making a mistake that breaks the task.
The total probability of completing the entire task successfully is the product of all step probabilities:
If we calculate the average step reliability , the upper bound on task success is:
Let us look at how task success changes as the task length () grows:
| Average Step Reliability () | 5 Steps () | 10 Steps () | 25 Steps () | 50 Steps () | What It Means in Practice |
|---|---|---|---|---|---|
| (Type-safe ACI + Verifiers) | Reliable for long, multi-step engineering tasks | ||||
| (Standard ReAct Prompting) | Works for short jobs; fails on complex workflows | ||||
| (Zero-Shot Function Calling) | failure rate on 25-step tasks | ||||
| (Raw Unconstrained Prompts) | Completely unusable for multi-step tasks |
2.2 Key Architectural Takeaways
- Model Scale Is Not Enough: An agent operating at 90% step accuracy has less than an 8% chance of completing a 25-step task. Upgrading to a slightly larger foundation model does not solve this exponential decay on its own.
- Scaffolding Resets Errors: To achieve reliable agents on deep tasks (), systems require deterministic schema validation, lint-aware editing tools, and verbal reflection buffers that catch errors and reset step reliability back toward 100%.
3. Foundational Agent Loops & Cognitive Scaffolding
To keep an agent on track across multi-step goals, researchers have created three fundamental cognitive patterns: ReAct, Reflexion, and Tree Search / Lookahead.
3.1 ReAct: Thinking Before Doing (Yao et al., 2022)
Before ReAct, developers used models in two disconnected ways:
- Reasoning Only (Chain-of-Thought): The model talks to itself. Because it cannot query external tools, it hallucinates facts and cannot verify its thoughts.
- Action Only (Direct Tool Calling): The model calls tools blindly without writing down its thoughts. It frequently loses context, repeats queries in loops, and fails to handle sub-goals.
ReAct combines Reasoning and Acting into an interleaved sequence: Thought -> Action -> Observation.
flowchart TD
State["Current Context State s_t"] --> Thought["1. Generate Thought r_t (Plan / Reason)"]
Thought --> Action["2. Generate Action a_t (Select Tool & Args)"]
Action --> Execute["3. Execute Tool in Environment"]
Execute --> Observation["4. Receive Observation o_t"]
Observation --> UpdateState["Append (Thought, Action, Observation) to History"]
UpdateState --> State
The Detective Analogy
Imagine a detective solving an investigation:
- Thought: “I need to verify if the suspect was in Seattle on Monday.”
- Action: Check hotel check-in records in Seattle.
- Observation: The records show the suspect checked in at 2 PM.
- Thought: “Now I need to check airport flight records for that morning.”
- Action: Query the flight database.
Why this works: The written thought guides the search query, while the real environment observation prevents the model from hallucinating false clues. On the HotpotQA multi-hop benchmark, ReAct reduced reasoning hallucination failures from 56% down to 0% while boosting exact-match accuracy to 35.1%; on the multi-step ALFWorld benchmark, it increased task completion from 45.0% to 71.0% over blind action-only execution (Yao et al., 2022).
3.2 Reflexion: In-Context Self-Correction (Shinn et al., 2023)
When an agent fails a task (for example, code fails a unit test), the traditional machine learning approach is Reinforcement Learning (RL): updating billions of weights using gradient descent. However, fine-tuning weights in real-time is too slow, expensive, and can cause the model to forget general knowledge.
Reflexion replaces weight updates with Verbal Self-Reflection:
flowchart TD
Trial["Trial k: Execute Task Trajectory"] --> Evaluator{"Evaluator Check (Unit Tests)"}
Evaluator -->|"Pass (Score = 1.0)"| Success["Return Completed Task"]
Evaluator -->|"Fail (Score < 1.0)"| Reflection["Reflection Critic (Analyze Failure)"]
Reflection --> MemoryBuffer["Write Critique into Memory Buffer M"]
MemoryBuffer --> NextTrial["Launch Trial k+1 (With Memory Notes)"]
NextTrial --> Trial
The Student Study Notebook Analogy
Imagine a student preparing for a programming exam:
- When the student writes a function and gets
IndexError: list index out of range, they don’t need brain surgery to change their neural wiring. - They write a simple note in their study journal: “Remember that Python lists are 0-indexed. In the next attempt, start the loop at index 0.”
- On the next attempt, the student reads their notebook note and writes the correct code immediately.
In Reflexion, the model weights stay frozen (). An evaluation module checks the outcome. If tests fail, a reflection model generates a specific diagnosis () and saves it to a memory buffer ().
On the HumanEval Python coding benchmark, this simple self-reflection loop raised GPT-4 Pass@1 accuracy from 80.1% to 91.0% (Shinn et al., 2023).
3.3 Strategic Lookahead & Backtracking: RAP & MCTS (Hao et al., 2023)
Standard LLM prompting generates actions in a greedy left-to-right fashion. If step 1 chooses a bad path, the model is stuck on that path and cannot backtrack.
Reasoning with Language Model is Planning with World Model (RAP) solves this by using the LLM in two roles:
- Action Policy: Proposes candidate next moves.
- World Model: Simulates future states and scores whether a move is promising or leads to a dead end.
The Chess Grandmaster Analogy
- A beginner chess player plays the first move that looks decent, often falling into simple traps (Greedy generation).
- A grandmaster mentally simulates: “If I move my knight here, my opponent moves their bishop there, and my queen is trapped. Let me explore moving my pawn instead.” (Lookahead search & Backtracking).
Using Monte Carlo Tree Search (MCTS) with world-model simulation, RAP rescues 6-step block planning from near-total failure under greedy CoT (2.0% – 6.0%) to over 74.0% success on LLaMA-2 70B (Hao et al., 2023).
4. Designing Interfaces for AI: The Agent-Computer Interface (ACI)
When developers first built coding agents, they gave the model raw access to a standard Linux bash shell (cat, grep, sed, vim). However, standard terminal tools are designed for human eyes and fingers, not for language models (Yang et al., 2024).
4.1 The “Human UI vs. AI UI” Comparison
| Operational Task | Standard Human Terminal Tool (Fails for LLMs) | Agent-Computer Interface (ACI) Tool (Engineered for LLMs) | Why the ACI Wins |
|---|---|---|---|
| File Reading | cat -n file.py (Dumps 5,000 lines into context) | view_file_window(path, offset=1, limit=100) | Prevents context window saturation; keeps token costs low |
| Code Editing | sed -i 's/foo/bar/g' (Fails on regex escapes) | replace_exact_text(path, target_str, new_str) | Requires exact unique match; eliminates syntax corruptions |
| Symbol Search | grep -rn "def process" (Dumps massive text logs) | find_symbol_ast(symbol_name, file_filter) | Returns compact list of line numbers and method signatures |
| Error Feedback | Silent failure: exit code 1 | {"status": "error", "hint": "target_str not found on line 42"} | Gives explicit diagnostic advice so the model can self-correct |
4.2 The 3 Core ACI Engineering Rules
- Windowed Viewports: File readers must never dump unbounded text. Viewports should return 50–100 lines at a time with explicit line numbers (
1 | def calculate_loss():). - Exact String Match for Replacements: Multi-line file editors should search for an exact unique text block before applying a diff. If the target block is not unique or not found, the tool halts safely and alerts the agent.
- Lint-Aware Immediate Diagnostics: When the agent edits a file, the tool runs a linter immediately. If the edit introduces a syntax error, the tool returns the error message directly to the agent before any test suites are executed.
On SWE-bench Lite, switching from a raw bash shell (11.0%) to structured ACI tools (18.0%) boosted issue resolution by a 64% relative margin using GPT-4 Turbo (Yang et al., 2024).
4.3 Live Documentation RAG (Gorilla, Patil et al., 2023)
Standard foundation models hallucinate API endpoints and parameters between 36% and 78% of the time on complex ML and cloud libraries because function signatures evolve after model training weights are frozen.
Gorilla demonstrated that retriever-aware training (RAFT)—fine-tuning models on live API documentation paired with a retriever—reduces API parameter hallucination to 0.0% on TorchHub and under 2.4% on TensorFlow Hub, while elevating functional API accuracy up to 83.8%–94.2% (Patil et al., 2023).
5. System Architecture: Decoupling Planning, Validation, and Execution
A production agent runtime must never use a monolithic prompt that mixes plan generation, parameter validation, and command execution. Monolithic prompts crash as soon as a tool returns an unexpected response.
Instead, a production runtime decouples the system into three distinct stages:
flowchart TD
UserQuery["User Task Request"] --> ScopeGuard{"1. Intent & Scope Guard"}
ScopeGuard -->|"Out of Scope"| RejectSink["Fast Safe Rejection"]
ScopeGuard -->|"Valid Task"| PlanGen["2. Plan Generator (LLM Policy)"]
PlanGen --> SchemaVal{"3. Deterministic Schema Validator"}
SchemaVal -->|"Schema Violation"| CorrectionHint["Error Prompt Feedback"]
CorrectionHint --> PlanGen
SchemaVal -->|"Valid Parameters"| Dispatcher["4. Async Sandboxed Dispatcher"]
subgraph ToolInventory ["Sandboxed Tool Inventory"]
T1["Windowed File Reader (ACI)"]
T2["Exact File Editor"]
T3["Sandboxed Python / Pytest Runner"]
T4["Live Documentation RAG"]
end
Dispatcher --> T1
Dispatcher --> T2
Dispatcher --> T3
Dispatcher --> T4
T1 --> Evaluator{"5. Outcome Evaluator"}
T2 --> Evaluator
T3 --> Evaluator
T4 --> Evaluator
Evaluator -->|"Goal Met (Tests Pass)"| FinalOutput["Structured Response to User"]
Evaluator -->|"Goal Incomplete / Errors"| ReflexionMemory["Verbal Reflection Buffer M"]
ReflexionMemory --> PlanGen
5.1 Decoupled Runtime Stages
- Intent Scope Guard: A fast heuristic filter or small model checks that the user request is actionable, safe, and within system boundaries before running expensive planning loops.
- Deterministic Schema Validator: Before any command is executed, an intermediate validator (using Pydantic V2 or JSON Schema) checks the proposed tool parameters. If the model provided an invalid type (such as
offset: -5), the validator intercepts the error and returns a corrective feedback prompt before touching the real system. - Sandboxed Asynchronous Dispatcher: Dispatches approved calls across isolated workers with non-blocking I/O and strict wall-clock timeout budgets (e.g.,
asyncio.wait_for(timeout=10.0)). - Outcome Evaluator & Reflection Memory: Evaluates test outputs and logs failure critiques into an episodic memory buffer for the next iteration.
5.2 Tool Transition Coupling & Tool Fusion
In multi-turn agent workflows, calling granular tools individually introduces high network round-trip latency. Inspired by Chameleon’s empirical analysis of module transition graphs ( across reasoning trajectories; Lu et al., 2023), runtimes can analyze execution logs to identify tightly coupled tool sequences.
When execution logs reveal that a specific tool call almost always follows another (for example, running unit tests immediately after applying a code edit, or querying schema documentation immediately after a parameter error), the runtime can merge them into a single composite operator (such as edit_and_test). This pattern, known as Tool Fusion, eliminates an entire model inference round-trip, conserves token budget, and reduces turn latency while preserving deterministic verification feedback.
6. Execution Runtime & Asynchronous Dispatch Flow
Rather than executing unconstrained model proposals directly in a live terminal, a production agent runtime coordinates planning, validation, sandboxed execution, and memory feedback through an asynchronous pipeline.
sequenceDiagram
autonumber
actor User as Client / User
participant Guard as Intent Guard
participant Policy as LLM Policy
participant Val as Schema Validator
participant Engine as Async Dispatcher
participant Tool as Sandboxed Tool
participant Mem as Reflection Buffer
User->>Guard: Submit Task Prompt
Guard->>Policy: Validated Task Intent
Note over Policy,Mem: Trial 1: Faulty Step & Schema Interception
Policy->>Val: Action Proposal (Invalid Parameter: offset=-5)
Val-->>Mem: Intercept Violation & Record Error Critique
Mem-->>Policy: Inject Verbal Reflection into Prompt Context
Note over Policy,Mem: Trial 2: Self-Correction & Verified Execution
Policy->>Val: Corrected Action Proposal (Valid Parameter: offset=1)
Val->>Engine: Approved Typed Parameters
Engine->>Tool: Non-blocking Dispatch (with 10s Timeout Clock)
Tool-->>Engine: Observation Return (Structured AST / Lines)
Engine-->>Policy: Observation Fed into Policy State
Policy->>User: Final Verified Task Solution
6.1 The 4-Stage Runtime Lifecycle
- Intent Scope Guard: Incoming user prompts pass through an initial scope classifier. If a prompt falls outside allowed system boundaries (e.g., unauthorized network access or out-of-scope commands), the runtime halts immediately with a safe, zero-cost error message before expensive foundation model planning loops are triggered.
- Pre-Execution Schema Interception: When the policy model outputs a tool call proposal, the intermediate validator checks parameter types against strict schemas (such as Pydantic models or JSON Schema) before any code executes. If the model invents a non-existent parameter or passes out-of-range values (e.g.,
offset: -5), the validator intercepts the call deterministically and produces structured diagnostic feedback. - Sandboxed Asynchronous Dispatch: Approved actions execute inside isolated workers using non-blocking asynchronous I/O (
asyncio). Each external tool call is wrapped in a strict wall-clock timeout budget (e.g., ). If an external command hangs, deadlocks, or crashes, the dispatcher catches the exception, cancels the pending task, and returns a typedExecutionResultto prevent the agent loop from freezing. - Episodic Reflection & Self-Correction: When a step or test suite fails, the outcome evaluator synthesizes a concise failure critique and appends it to an episodic memory buffer (). On the next trial, this critique is injected into the policy prompt context, allowing the agent to self-correct its mistakes without modifying model weights ().
Production Reference Engine:
The complete, production-ready Python 3.12+ reference implementation—including Pydantic V2 schemas, async timeout wrappers, windowed ACI tools, and reflection test harnesses—is maintained as an open-source research artifact.
🔗 Repository: github.com/kervendurdy/autonomous-agent-engine
7. Master Empirical Benchmark Matrix & Latency Profiles
Across the research literature, combining cognitive scaffolding, structured ACI tools, and reflection memory buffers consistently outperforms raw foundation models:
7.1 Cross-Benchmark Comparison Matrix
| Benchmark | Target Domain | Baseline (Raw Foundation Model) | Agent Architecture | Scaffolding Score | Performance Delta | Primary Mechanism |
|---|---|---|---|---|---|---|
| ALFWorld | Multi-Step Household Planning | (Action-Only Baseline) | ReAct (Yao et al., 2022) | Interleaved goal tracking & commonsense reasoning | ||
| HotpotQA | Multi-hop Fact Search | (Action-Only Baseline) | ReAct (Yao et al., 2022) | Search grounding eliminating hallucination () | ||
| FEVER | Fact Verification | (PaLM-540B CoT) | ReAct (Yao et al., 2022) | External Wikipedia search verification loops | ||
| HumanEval | Python Code Synthesis (Pass@1) | (GPT-4 Raw) | Reflexion (Shinn et al., 2023) | Unit test failure reflection in episodic memory | ||
| ScienceQA | Multimodal Science QA | (Few-shot GPT-4 CoT) | Chameleon (Lu et al., 2023) | 13-tool program synthesis & OCR/Python dispatch | ||
| TabMWP | Tabular Math Problems | (GPT-4 CoT) | Chameleon (Lu et al., 2023) | Dynamic Python executor + table schema retrieval | ||
| SWE-bench Lite | Real-World GitHub Bug Fixing | (Shell-Only GPT-4 Turbo) | SWE-agent + GPT-4 Turbo (Yang et al., 2024) | Windowed ACI viewport commands + lint-aware editing | ||
| APIBench (HF) | 1,645 Machine Learning APIs | (Zero-Shot GPT-4) | Gorilla-7B (Patil et al., 2023) | Retriever-aware fine-tuning (RAFT) + live schema docs |
7.2 Trade-offs & Diminishing Returns in Reflection Loops
While verbal self-reflection raises task accuracy significantly (such as boosting GPT-4 Pass@1 on HumanEval from to ; Shinn et al., 2023), it introduces direct engineering trade-offs in execution latency and token expenditure:
- Front-Loaded Gains: Empirical learning curves across coding (HumanEval, MBPP) and decision-making benchmarks (HotpotQA, ALFWorld) show that the largest accuracy leaps occur during the first and second reflection trials.
- Diminishing Returns & Saturation: By the third and fourth trials, performance plateaus. Beyond three trials, agents frequently enter repetitive loops, reiterating prior critiques without discovering new problem-solving paths.
- Compounding Context & Latency: Each reflection cycle appends previous code attempts, compiler/test error tracebacks, and critique summaries into prompt memory. This compounds prompt token volume and multiplies end-to-end model round-trip latency.
- Cost-Aware Termination: Production architectures should enforce a strict reflection budget (capping iterations at ) and fall back to human review or alternative branching strategies when tests continue to fail.
8. Failure Mode Taxonomy & Safety Guardrails
Agent errors systematically cluster into three failure domains (Huyen, 2025):
8.1 The 3-Part Failure Taxonomy
| Failure Domain | Root Cause & Symptoms | Real-World Example | Engineering Mitigation |
|---|---|---|---|
| 1. Planning Failures | Tool hallucination, invalid arguments, constraint violation, premature finishing | Model invents a non-existent tool create_invoice() or passes offset=-5 | Strict Pydantic V2 validation; AST pre-compilation; separate plan-verifier node |
| 2. Tool Execution Failures | Unhandled runtime exceptions, network drops, semantic drift in tool outputs | Bash command hangs or crashes with exit code 1, freezing the execution loop | Hard asyncio.wait_for timeout clocks; typed exception wrappers |
| 3. Context & Token Bloat | Context window saturation; “Lost-in-the-middle” attention degradation | Dumping 10,000 lines of logs into prompt, causing the model to forget user instructions | Windowed ACI file readers; rolling conversation compaction; RAG pruning |
8.2 Read vs. Write Tool Isolation & Two-Phase Confirmation
In production environments, agents must never possess unconstrained write privileges without verification gates:
flowchart LR
AgentAction["Proposed Agent Action"] --> ActionClassifier{"Side-Effect Classifier"}
ActionClassifier -->|"Read-Only Action (view_file, search)"| DirectRun["Sandboxed Read Execution"]
ActionClassifier -->|"Mutating Action (write_file, delete, deploy)"| TwoPhaseGate["Two-Phase Confirmation Gate"]
TwoPhaseGate --> InvariantCheck{"Static Safety Invariant Check"}
InvariantCheck -->|"Invariant Violated"| RejectAction["Reject & Feedback to Model"]
InvariantCheck -->|"Invariant Passed"| HumanGate{"Human Approval Gate"}
HumanGate -->|"Approved"| ExecuteMutate["Execute Mutating Command"]
HumanGate -->|"Denied"| AbortAction["Abort & Log Audit Trace"]
Mandatory Safety Rules:
- Two-Phase Confirmation: Destructive or mutating operations (file writes, database updates, network commands) must emit a
dry_runpreview before final execution. - Idempotency & Rollback: Every tool should support rollback tokens or be wrapped in transactional boundaries.
- Hard Timeout Clocks: Every external tool invocation must be governed by an asynchronous timeout budget (e.g., ) to prevent hung background processes from freezing the agent loop.
9. Conclusion & Research Artifacts
This research guide explains why raw foundation models fail on multi-step tasks without scaffolding, demonstrating mathematically and empirically that step errors compound exponentially () as execution horizons expand.
By decoupling planning from schema validation, deploying windowed Agent-Computer Interfaces (ACIs), and incorporating in-context verbal reflection memory (Reflexion), engineering teams can elevate task resolution past 90% on complex reasoning and coding benchmarks while stabilizing long-horizon workflows against compounding failure.
- Source Code Repository: github.com/kervendurdy/autonomous-agent-engine
10. How to Cite (APA 7 & BibTeX)
APA 7th Edition Citation Format
Allaberdiyev, K. (2026). Autonomous LLM agents: Planning loops, tool interfaces, and failure recovery. Kervendurdy Research. https://kervendurdy.com/en/blog/autonomous-llm-agents
BibTeX Citation Entry
@article{allaberdiyev2026llmagents,
author = {Allaberdiyev, Kervendurdy},
title = {Autonomous LLM Agents: Planning Loops, Tool Interfaces, and Failure Recovery},
journal = {kervendurdy.com},
year = {2026},
url = {https://kervendurdy.com/en/blog/autonomous-llm-agents}
}
11. References (APA 7th Edition)
- Anthropic. (2024). Building effective agents [Technical report]. Anthropic Research. https://www.anthropic.com/research/building-effective-agents
- Hao, S., Gu, Y., Ma, H., Hong, J. J., Wang, Z., Wang, D. Z., & Hu, Z. (2023). Reasoning with language model is planning with world model. Advances in Neural Information Processing Systems (EMNLP 2023). https://doi.org/10.48550/arXiv.2305.14992
- Huyen, C. (2025). Agents [Engineering guide]. Huyen Chip Blog. https://huyenchip.com/2025/01/07/agents.html
- Lu, P., Peng, B., Cheng, H., Galley, M., Chang, K. W., Wu, Y. N., Zhu, S. C., & Gao, J. (2023). Chameleon: Plug-and-play compositional reasoning with large language models. Advances in Neural Information Processing Systems (NeurIPS 2023), 36, 45120–45142. https://doi.org/10.48550/arXiv.2304.09842
- Lu, P., Qiu, L., Chang, K. W., Wu, Y. N., Zhu, S. C., Rajpurohit, T., Clark, P., & Kalyan, A. (2022). Dynamic prompt learning via policy gradient for semi-structured mathematical reasoning. Advances in Neural Information Processing Systems (NeurIPS 2022), 35, 26413–26426. https://doi.org/10.48550/arXiv.2209.14610
- Patil, S. G., Zhang, T., Wang, X., & Gonzalez, J. E. (2023). Gorilla: Large language model connected with massive APIs. arXiv preprint arXiv:2305.15334. https://doi.org/10.48550/arXiv.2305.15334
- Schick, T., Dwivedi-Yu, J., Dessì, R., Raileanu, R., Lomeli, M., Zettlemoyer, L., Cancedda, N., & Scialom, T. (2023). Toolformer: Language models can teach themselves to use tools. Advances in Neural Information Processing Systems (NeurIPS 2023), 36, 68539–68551. https://doi.org/10.48550/arXiv.2302.04761
- Shinn, N., Cassano, F., Gopinath, A., Narasimhan, K., & Yao, S. (2023). Reflexion: Language agents with verbal reinforcement learning. Advances in Neural Information Processing Systems (NeurIPS 2023), 36, 8634–8652. https://doi.org/10.48550/arXiv.2303.11366
- Wang, G., Xie, Y., Jiang, Y., Mandlekar, A., Xiao, C., Zhu, Y., Fan, L., & Anandkumar, A. (2023). Voyager: An open-ended embodied agent with large language models. Advances in Neural Information Processing Systems (NeurIPS 2023). https://doi.org/10.48550/arXiv.2305.16291
- Weng, L. (2023). LLM powered autonomous agents [Technical review]. Lil’Log. https://lilianweng.github.io/posts/2023-06-23-agent/
- Yang, J., Jimenez, C. E., Wettig, A., Lieret, K., Yao, S., Narasimhan, K., & Press, O. (2024). SWE-agent: Agent-computer interfaces enable automated software engineering. Advances in Neural Information Processing Systems (NeurIPS 2024). https://doi.org/10.48550/arXiv.2405.15793
- Yang, Z., Qi, P., Zhang, S., Bengio, Y., Cohen, W. W., Salakhutdinov, R., & Manning, C. D. (2018). HotpotQA: A dataset for diverse, explainable multi-hop question answering. Conference on Empirical Methods in Natural Language Processing (EMNLP 2018), 2369–2380. https://doi.org/10.48550/arXiv.1809.09600
- Yao, S., Zhao, J., Yu, D., Du, N., Shafran, I., Narasimhan, K., & Cao, Y. (2022). ReAct: Synergizing reasoning and acting in language models. International Conference on Learning Representations (ICLR 2023). https://doi.org/10.48550/arXiv.2210.03629
Open Research & Editorial Note
All articles and technical guides on this platform are authored and reviewed by an independent individual sharing an ongoing understanding of systems engineering and AI research. While every effort is made to maintain factual accuracy, unintentional misunderstandings or inaccuracies may occur. If you spot an error, outdated benchmark, or technical flaw, please feel free to reach out directly or submit a correction on GitHub. All posts and source files are publicly available—issues, errata, and comments are warmly welcomed.