AI Agents in the Last Three Years: From Q&A to Reliable Execution
Over the past three years, AI agents have moved from single-turn question answering toward goal-driven execution that adapts based on feedback. This article traces that shift across tool calling, reasoning-and-action loops, planning and state management, subagents, multi-agent collaboration, execution frameworks, loop engineering, long-term memory, and broader orchestration systems. It explains what each layer solves, what new failure modes it introduces, and which controls—permissions, approvals, retries, budgets, stop conditions, and verification—are needed for reliable operation. It also presents a minimal deployable architecture and a practical rule for choosing the least complex design that meets the task. Developers and enterprise teams can use the discussion to evaluate agent maturity not by demos alone, but by how the system behaves when data is missing, tools time out, permissions are insufficient, or goals conflict.
AI Agents in the Last Three Years: From Q&A to Reliable Execution
1. Framing the Problem: Where Exactly Has AI Evolved?
Over the past three years, many new concepts have appeared around AI: agents, reasoning-and-action loops, subagents, agent teams, execution frameworks, loop engineering, personal agents, and broader task orchestration systems.
The terminology keeps changing, but there is a relatively clear underlying trend:
AI systems are moving from “generate a one-time answer” toward “pursue a goal continuously, execute actions, and adjust behavior based on results.”
In the past, a user asked a question, the model generated text, and the interaction was essentially over. Now an agentic system may first understand the goal, then retrieve information, call APIs, modify files, check results, and replan when necessary until the task is complete or a stop condition is triggered.
Two clarifications are necessary.
First, this is not simply a model-capability upgrade. More accurately, it is the combined result of progress in model capability, tool interfaces, context management, and software engineering. A model that can write a plausible plan does not necessarily have real execution ability.
Second, these architectures have not replaced one another in a strict year-by-year sequence. Reasoning-and-action loops, workflows, multi-agent systems, and long-term memory have coexisted for a long time. The discussion below follows the logic of which problems emerged and how they were addressed, rather than presenting a fixed historical sequence that every system must follow.
Understanding this evolution requires focusing on four questions:
- Can the model obtain the real information needed for the current task?
- Can the system turn an answer into an actual operation?
- When execution deviates, can the system detect and correct it?
- Can multi-step tasks be completed reliably within cost, permission, and time constraints?
Most architectural changes revolve around these four questions.
2. Starting Point: Single-Turn Q&A Solved Expression, Not Execution
The most basic AI application can be abstracted as:
User input → model processing → text output
This pattern is suitable for explaining concepts, organizing information, generating drafts, and supporting analysis. Its advantages are simple structure, a clear response path, and relatively easy integration into existing business systems.
But as soon as a task involves the real environment, its limits become obvious.
For example, a user asks: “Check this week’s inventory changes, identify anomalous products, and notify the responsible person.”
A single-turn model can explain what should be done and even generate a看起来 complete analysis report. But without inventory-query capability, it cannot know actual inventory; without a notification interface, it cannot actually send a message.
More dangerously, the model may describe “steps that should be executed” as “results that have already been completed.” That is not task execution; it is a linguistic simulation of task execution.
Therefore, the first upgrade is not to make the model write longer answers, but to connect it to external capabilities.
Tool Calling Lets the Model Reach the Real Environment
A tool can be a query API, file-reading capability, compute service, or a business operation constrained by permissions.
A common process is:
- The model determines what information is needed.
- It outputs a call request in an agreed structure.
- An external program validates parameters and permissions.
- The program executes the request and returns results.
- The model continues based on the real returned content.
There is an important boundary here: the model proposes the intent to call; the execution program carries out the operation.
If these two are conflated, it is easy to assume that because the model generated a call description, the operation has already been completed.
Tools Alone Still Do Not Make the System Reliable
Tool results may be empty, time out, be stale, or contain untrusted content. The model may also choose the wrong tool, omit required parameters, or misinterpret returned fields.
Tool calling only gives the system “a chance to do something”; it does not yet make the system “do things well consistently.”
The next problem is how to observe results after an action and decide whether to continue.
3. Reasoning-and-Action Loops: From One Answer to Step-by-Step Progress
The core idea of a reasoning-and-action loop is to break task execution into repeated small steps:
Observe current state → decide the next step → execute an action → receive feedback → update state
It does not require the model to produce a fully correct long plan at the start. Instead, it allows the system to adjust subsequent actions using new information.
For example, when handling an inventory anomaly, the system can first query an inventory summary. After finding that a certain category fluctuates significantly, it can query inbound and outbound records for that category. If the records show a normal transfer, it should not continue treating the case as an abnormal alert.
Compared with generating a complete set of conclusions in one pass, this approach is closer to real work: obtain evidence first, then decide the next step.
What It Solves
First, it reduces the need to fill gaps from thin air when information is insufficient. The system can obtain the missing conditions through queries.
Second, it allows complex tasks to be completed in segments. Each step does not need to cover the entire problem; it only needs to move the task toward the goal.
Third, it makes errors correctable. A failed query can be retried or replaced with another path; a judgment can be updated when later evidence contradicts it.
What It Introduces
The most typical problem is an uncontrolled loop.
The system may repeatedly query the same material, keep rewriting an answer that is already good enough, or repeat the same failed action after a tool error.
Another problem is local reasonableness with overall drift. Each step may look sensible, but after a dozen steps the system has departed from the user’s original goal.
There is also the cost problem. Each round requires processing context, calling the model, and waiting for tool results. The longer the task, the harder it usually becomes to predict latency and resource consumption.
Therefore, a usable loop needs at least:
- Explicit completion conditions;
- A maximum number of execution steps;
- Total duration and resource budgets;
- Detection of repeated actions;
- A distinction between recoverable and unrecoverable errors;
- A pause mechanism when user input or approval is required.
A loop by itself is not a guarantee of reliability; a constrained loop is the engineering solution.
4. Planning and State Management: Letting the System Know Where It Is
When a task grows from a few steps to dozens of steps, relying only on conversation history is no longer enough.
Consider preparing an internal enterprise analysis report. The system may need to read multiple sources, unify metric definitions, calculate statistics, write conclusions, and verify them.
If all information is mixed into an ever-growing context, the system can easily forget which data has been verified, which steps failed, and which conclusions are only preliminary guesses.
As a result, task plans and structured state become important.
Plans Are Not Written Once and Frozen
The value of a plan is to decompose the goal into checkable subgoals.
For example:
- Confirm the report scope;
- Obtain relevant data;
- Check data completeness;
- Calculate metrics;
- Explain anomalies;
- Generate the report;
- Verify conclusions and cited evidence.
But the plan should be updated as feedback arrives. If key data is missing, a reasonable behavior is to pause the related analysis and state the limitation, rather than continue filling in a report that looks complete on the surface.
State Is Better Than Chat History for Carrying Execution Facts
A task state can record:
- User goals and constraints;
- Completed and pending steps;
- Tool execution results;
- Key evidence and its sources;
- Assumptions that remain unconfirmed;
- Permission approval status;
- Resources already used;
- Reasons for stopping or failing.
Chat history is good for expressing process; state records are good for preserving facts. The two can complement each other, but they should not replace each other.
In particular, facts such as “notification sent” or “data modified” should be based on results confirmed by the execution program, not on the model’s natural-language description.
5. Subagents: Dividing Complex Tasks into Well-Bounded Work Units
When a single agent simultaneously handles retrieval, analysis, writing, and review, the task context can become messy.
The subagent approach is for a main coordinating unit to hand a relatively independent subtask to another execution unit, which returns results when finished.
For example, a main agent responsible for generating a report can separately assign:
- A data-check unit to verify field completeness;
- A calculation unit to produce metrics;
- A research unit to extract background information;
- A review unit to check whether conclusions are supported by evidence.
Here, “subagent” does not necessarily mean using a different model. The difference may come from task instructions, accessible tools, context scope, and permission boundaries.
Main Benefits of Subagents
First, context isolation. A calculation task does not need to receive the entire writing process, and a review task does not need to be disturbed by large amounts of intermediate drafts.
Second, permission limitation. A unit responsible only for verification may have no ability to modify business data.
Third, testability. A well-bounded subtask makes it easier to design input examples, expected outputs, and failure conditions.
Division of Labor Requires Delivery Contracts
It is not enough to tell a subagent “research this for me” and expect it to automatically deliver usable results.
A more reasonable task description should include:
- Subtask goal;
- Available inputs;
- Prohibited actions;
- Output format;
- Evidence requirements;
- Acceptance criteria;
- Time and resource limits.
For example, when asking for report verification, the system should explicitly require “issue location, corresponding evidence, issue type, and correction suggestion,” rather than a single sentence such as “overall reasonable.”
The main coordinating unit also cannot unconditionally accept subagent conclusions. Division of labor reduces the complexity of individual tasks, but it increases responsibility for handoff and verification.
6. Multi-Agent Collaboration: Coordination Matters More Than Role Count
Subagents usually emphasize top-down decomposition from a main task; multi-agent collaboration further involves parallelism, handoff, and joint decision-making among multiple execution units.
This is suitable for tasks with clear professional division of labor, possible parallel work, and results that need to be aggregated. For example, different execution units can separately check data, logic, and compliance risks in a report.
But “letting several agents discuss with one another” does not automatically improve quality.
Multiple units may make the same mistake repeatedly, or approve one another without sufficient evidence. If they rely on the same information sources, mere agreement does not prove the conclusion is correct.
Which Tasks Deserve Parallelism?
Several conditions usually need to be met at the same time:
- Subtasks are relatively independent;
- Outputs can be accepted separately;
- Parallel benefits exceed coordination overhead;
- The units do not frequently contend for the same mutable data;
- Aggregation rules are clear.
If the task is merely rewriting a passage into a summary, adding multiple roles often only increases cost and latency.
Collaborative Systems Must Handle Conflicts
When two execution units modify the same file at the same time, or give different judgments about the same fact, there must be an explicit handling mechanism.
Common approaches include:
- Each unit submits an independent result first, and the coordinating unit merges them;
- Shared state uses version checks;
- High-risk modifications go through a single execution entry point;
- Disputed conclusions require additional external evidence;
- If the conflict cannot be resolved, it is escalated for human judgment.
Thus, the hard part of multi-agent architecture is not “creating more roles,” but managing shared state, dependencies, failure propagation, and result acceptance.
7. Execution Frameworks: Putting the Model into a Controllable Runtime
As system complexity increases, a practical problem becomes prominent: no matter how capable the model is, it cannot replace permission control, error handling, and runtime monitoring.
An execution framework can be understood as the runtime environment built around the model. It is not responsible for making the model “smarter”; it is responsible for making the actions proposed by the model executable safely, stably, and traceably.
Its core responsibilities usually include:
- Input and tool-parameter validation;
- Identity and permission checks;
- Tool invocation and result recording;
- Timeouts, retries, and cancellation;
- Task-state persistence;
- Human approval;
- Logging and monitoring;
- Budget control;
- Output acceptance.
High-Risk Operations Need Hard Constraints
Operations such as deleting data, sending external messages, or modifying account permissions cannot rely only on a prompt saying “please be careful.”
The system should place checks on the execution path that cannot be bypassed. For example, the model can request that a notification be sent, but the execution program must verify the recipient scope, message content, and authorization status.
Prompts guide behavior; permission systems constrain capability. They serve different purposes.
Tool Outputs Can Also Be Untrusted Input
Web pages, documents, or retrieval results may contain text designed to induce the system to ignore its original task, leak information, or perform additional operations.
Such content should be treated as data to be processed, not automatically promoted to system instructions.
Therefore, an execution framework needs to maintain trust boundaries: user authorization, system rules, tool results, and external material must not be mixed into the same level of information.
Retries Need to Consider Side Effects
Retrying after a failed query is usually easy; retrying a failed write operation may cause duplicate submission.
If a notification was actually sent but the confirmation result was lost, executing it again may send a duplicate notification.
Therefore, operations with side effects should consider idempotency controls, execution-state checks, and necessary compensation flows. Not all exceptions can be handled simply as “try again.”
8. Loop Engineering: Optimizing the Entire Execution Process, Not Just Prompts
Once agents have loop-execution capability, the object of optimization changes as well.
In the past, the common question was: “How should I write the prompt so the answer is better?”
Now the system also needs to ask:
- Which step should call the model?
- Which step is better handled by deterministic code?
- When is replanning needed?
- When should execution stop?
- How can repetition and drift in the execution trace be detected?
- Which intermediate results are worth preserving?
This kind of engineering optimization around the execution loop can be called loop engineering. It is not a standardized product name, but a set of design methods focused on the runtime process.
Not Every Step Needs Model Decision-Making
Tasks such as parameter-format checks, date comparison, permission checks, and budget counting are usually better handled by deterministic programs.
Models are suited to semantic understanding, open-ended analysis, and choices under incomplete information; programs are suited to executing explicit rules.
Separating these responsibilities often makes the system more reliable than letting the model handle the entire process.
Evaluation Should Look at Task Trajectories
Looking only at the final answer may fail to reveal that the system queried too much irrelevant material or made unnecessary risky attempts before succeeding.
Therefore, evaluation should cover both process and result:
- Was the user goal completed?
- Were permissions or business constraints violated?
- Was the correct evidence used?
- Did repeated actions occur?
- Were failures correctly identified?
- Was the task completed within budget?
- Does it require manual rework?
For high-risk tasks, “the system stops in time and asks for confirmation” is sometimes a better quality outcome than “it forces out a result.”
9. Personal Agents and Long-Term Memory: From One Task to Continuous Service
When a system begins to work across tasks, it needs to understand user preferences, historical decisions, and long-term goals.
For example, a user may want reports to always use the same metric definitions, or may require that external notifications be reviewed first. This information should not need to be re-explained for every task.
Long-term memory therefore becomes an important capability.
But long-term memory is not the permanent retention of all chat history. It needs to distinguish at least:
- Temporary state of the current task;
- Historical facts supported by evidence;
- Preferences explicitly expressed by the user;
- Business information that changes over time;
- Unconfirmed speculation.
Memory Must Be Updateable and Correctable
If a user previously preferred short reports but later asks for detailed analysis, the system must not continue ignoring the new requirement because of old records.
Memory should have sources, timestamps, scope of applicability, and update mechanisms. For information that changes easily, there also need to be expiration or re-verification policies.
Otherwise, the more memory there is, the larger the scope of impact may become when errors occur.
Continuous Service Is Not Unlimited Authorization
A long-running personal agent can remember user preferences, but it must not therefore gain all operation permissions by default.
Authorization should be tied to specific resources and specific actions. Permission to read a category of material does not mean permission to forward it externally; permission to generate modification suggestions does not mean permission to directly modify production data.
Long-term memory and long-term permissions must be managed separately.
10. Larger Agent Systems: Governance, Not “Universality”
Some discussions refer to systems covering multiple tasks, multiple execution units, and long-term goals as higher-level agents. Such labels do not have fully unified definitions.
From an engineering perspective, it usually means adding a coordination layer that can:
- Receive multiple tasks;
- Determine priorities;
- Allocate execution resources;
- Manage cross-task dependencies;
- Preserve long-term state;
- Aggregate risks and progress.
But a larger coordination scope does not automatically improve reliability. On the contrary, a single incorrect judgment may affect more tasks, and a permission configuration mistake may cause greater consequences.
Therefore, the stronger the system capability, the more necessary it is to define boundaries, tiered authorization, audit mechanisms, and human takeover paths.
A so-called higher-level agent should not be understood as “making all decisions for people without limits,” but as “remaining controllable and verifiable in a more complex environment.”
11. A Minimal Practical Architecture
For developers and enterprise teams, it is not necessary to start by building a multi-agent team. A more practical minimal system usually includes:
User entry → task parsing → execution loop → tool gateway → result acceptance
It should also include task-state storage, logging, and permission checks.
The following illustrative pseudocode is only for explaining the control flow. It does not represent any specific product interface:
state = initialize_task(user_goal, execution_constraints)while task_can_continue:if time_or_resource_budget_exceeded:end_task("budget exhausted")breaknext_step = choose_action(goal, state, available_tools)if next_step == request_more_information:pause_and_ask_user()breakif next_step == submit_result:verification_result = check_goal_completion_and_evidence()if verification_result passes:save_final_result()breakelse:update_unresolved_issues()continuevalidate_parameters_and_permissions()if action_requires_approval and approval_not_granted:pause_and_request_authorization()breakexecution_result = execute_action_through_controlled_entry_point()save_execution_record_and_update_state()check_for_repeated_actions_errors_and_drift()
What really matters is not the loop syntax, but that all execution goes through a controlled entry point, all facts enter the state record, and every termination has an explicit reason.
12. Choosing an Architecture: Avoid Complexity for Its Own Sake
Capabilities can be added step by step according to task nature.
When the task only requires content generation, prefer single-turn processing.
For summarization, rewriting, and format cleanup, there is no need to introduce an autonomous loop by default.
When steps are fixed, prefer a deterministic workflow.
For example, read data first, then calculate, and finally generate a report. When steps are predictable, programmatic orchestration is easier to test and audit.
When the next step depends on feedback, introduce an agent loop.
For example, when investigating the cause of an anomaly, later queries depend on what the previous step found.
When context isolation or specialized responsibility is needed, introduce subagents.
But define inputs, outputs, and acceptance criteria first.
When truly independent tasks need parallel processing, consider multi-agent collaboration.
The benefit of parallelism must cover coordination, merging, and conflict-handling costs.
When continuous service across tasks is needed, introduce long-term memory.
At the same time, design update, deletion, access control, and error-correction mechanisms.
The principle is simple: solve the problem with the minimum complexity that meets the need, rather than starting from the most complex architecture and working backward to find a use.
13. Conclusion: From “Can Talk” to “Can Act Reliably”
Looking back at the past three years of agent development, the important change is not that there are more terms, but that systems have gradually filled the gaps in the execution chain.
Tool calling solved the problem of reaching the real environment; reasoning-and-action loops solved the problem of continuous progress based on feedback; state management gave long tasks traceable progress; subagents and multi-agent systems provided division of labor and collaboration mechanisms; execution frameworks and loop engineering control permissions, errors, costs, and stop conditions; long-term memory extended service scope from a single interaction to continuous tasks.
These capabilities do not mean that AI can now unconditionally replace human judgment. On the contrary, the more capable a system is of acting, the more clearly it needs to define which actions it may perform autonomously, which must be verified, and which should be left to humans.
For developers, judging whether an agent is mature should not rely only on whether it can demo a complex task. It should rely on how it behaves when data is missing, tools time out, permissions are insufficient, and goals conflict.
Completing a task is a capability; knowing when not to continue and leaving a verifiable process is the mark of a reliable system.
