Will Graphical User Interfaces Disappear? Cost Reduction Practices in Multi-Agent Collaboration

    This article explores engineering practices for reducing costs and managing risks in multi-agent systems. It delves into the separation of planning and execution, the importance of stop mechanisms for long-running tasks, and the evolving role of graphical user interfaces. By establishing clear task contracts, evidence-based verification, and strict permission controls, organizations can transition AI agents from experimental demos to reliable production tools.

    I. From “Daring to Use” to “Sustainable Usage”

    Intelligent programming and automation tools have brought a significant change: users no longer need to specify every click and operation step-by-step. Instead, they can directly describe the goal, such as “locate this error, fix it, and submit the verification results.”

    However, simpler goal descriptions do not mean cheaper execution processes. An agent might repeatedly read code, call tools, run tests, inspect pages, and keep trying based on failed results. Without proper termination conditions, a seemingly ordinary debugging task can evolve into hours of ineffective exploration.

    Therefore, “Token freedom” is better understood from an engineering perspective not as unlimited model usage, but rather as obtaining sufficiently reliable task results within a defined budget and at predictable costs.

    It is essential to distinguish between three concepts here:

    • Model Invocation Cost: Related to input, output, frequency of calls, and the actual billing method.
    • Task Execution Cost: In addition to model calls, this includes resource consumption for the runtime environment, tool execution, storage, and logging.
    • Total Delivery Cost: Further includes manual review, failed retries, error fixes, and potential business impact.

    Focusing solely on the price per call can easily lead to underestimating the actual expenditure. A cheaper solution that requires frequent rework may not be more economical than one that completes the task in a single pass.

    A specific fee or quota change in user experience cannot directly prove that a certain architecture has a universal cost advantage. Task difficulty, context length, billing metrics, and validation standards may all differ. What is truly worth promoting is the underlying engineering methodology: letting models of different capability levels handle tasks suited to them, and using system mechanisms to constrain costs and risks.

    II. Separation of Planning and Execution: Using Capabilities Where They Matter

    Many complex tasks do not require the same level of reasoning capability at every step.

    For example, fixing a cross-module defect requires first determining the problem scope, analyzing potential causes, and deciding the verification path. These steps typically involve strong comprehensive reasoning. In contrast, tasks like retrieving files within a defined scope, running existing checks, and organizing error logs often have clearer steps and criteria for judgment.

    Accordingly, the process can be split into four roles:

    1. Planner: Defining Goals and Boundaries

    The planner is responsible for converting natural language requirements into executable tasks, clarifying:

    • What the final deliverable is;
    • Which resources can be read and modified;
    • What conditions represent success;
    • Which operations require manual confirmation;
    • The maximum allowable time and budget consumption.

    The value of planning is not generating a long list, but reducing ambiguity during execution. An executable plan must include verifiable completion conditions, not just vague instructions like “check it” or “optimize it.”

    2. Executor: Completing Well-Bounded Subtasks

    The executor works based on the task contract, such as locating the call chain, adding tests, or modifying code within a limited scope.

    It should not have the authority to arbitrarily expand the task. If it finds the original plan unfeasible, it should return new evidence and the blocking reason, rather than expanding the modification scope on its own.

    3. Verifier: Judging Results Based on Evidence

    Verification cannot rely solely on the executor’s claim of “done.” Valid evidence can include test results, modification diffs, static analysis records, and post-operation state snapshots.

    Note that having another model restate the conclusion does not equate to independent verification. If two roles share the same incorrect premise, they may still reach the same wrong conclusion together. Therefore, priority should be given to objective checks that can be executed and reviewed.

    4. Dispatcher: Managing State and Resources

    The dispatcher is responsible for assigning tasks, recording states, handling failures, and enforcing budget controls. It can be implemented by a standard program and does not necessarily require model involvement.

    The core of a multi-agent system is not “more models,” but clearer responsibility boundaries. For simple tasks, a single model paired with deterministic tools might actually be more efficient.

    III. Why Costs May Decrease and Where They Might Rebound

    The cost benefits of separating planning and execution come from reducing the indiscriminate use of high-cost reasoning steps, not from magically eliminating computational needs.

    Total cost can be understood through a conceptual formula:

    Total Cost = Planning Cost + Execution Cost + Verification Cost + Coordination Cost + Expected Rework Cost.

    This architecture is only economically viable when the savings from tiered execution exceed the overhead of added coordination, verification, and rework.

    1. Avoid Repeatedly Moving Context

    If every subtask carries the complete conversation history, all files, and all historical logs, even if the execution model’s per-call cost is low, the total input volume can still increase significantly.

    A more reasonable approach is to provide context on demand:

    • Task goals and constraints;
    • File fragments directly relevant to the current subtask;
    • Confirmed facts;
    • Key evidence from the most recent failure;
    • The structure of the expected result.

    Historical information can be compressed, but constraints, unresolved issues, and evidence locations must be retained. If a summary omits key conditions, subsequent executions may repeatedly make the same mistakes.

    2. Prioritize Deterministic Tools

    Whether a file exists, whether tests pass, or whether a field matches a format—these questions should typically be judged directly by a program.

    Models are better suited for semantic understanding, solution selection, and anomaly explanation, rather than replacing all deterministic calculations. Having a model repeatedly read and guess for tasks that can be accomplished by existing checks usually only increases costs and uncertainty.

    3. Escalate Handling Based on Failure Type

    After an execution failure, the system should not unconditionally repeat the same prompt. It needs to distinguish between:

    • Temporary environmental failures;
    • Insufficient input information;
    • Task planning errors;
    • Insufficient current execution capability;
    • Unmet permissions or dependencies.

    Only temporary failures are suitable for limited retries. Insufficient information should prompt the addition of evidence; planning errors should trigger a re-decomposition; lack of capability should consider escalating to a stronger reasoning component.

    IV. The Most Important Aspect of Long-Running Tasks: Stop Mechanisms

    Continuous agent operation does not equate to continuous progress. A reliable system must be able to identify a “busy but ineffective” state.

    1. Set Multi-Dimensional Budgets

    A budget should not only cover model usage but also:

    • Maximum runtime;
    • Maximum number of tool calls;
    • Maximum retry attempts;
    • Number of modifiable files or resource scope;
    • Allowed high-risk actions;
    • Deviation between estimated and actual costs.

    If real-time costs cannot be obtained during execution, conservative estimates can be established using call volume, context size, and runtime, and then calibrated with the actual bill afterwards.

    2. Use Progress Signals to Identify Loops

    The system should record whether each execution round obtained new evidence, such as whether it narrowed down the fault scope, generated new valid modifications, or turned a failed check into a pass.

    If multiple consecutive rounds merely repeat the same searches, operations, and errors, the system should pause rather than continue consuming resources. Progress assessment should be based on state changes as much as possible, not just the model’s self-reporting.

    3. Incorporate Stop Conditions into the Scheduling Process

    Below is conceptual pseudocode and does not represent any specific product interface:

    1. Establish task contract
    2. Check resource permissions and budget
    3. While task is not complete:
    4. If budget is insufficient or timeout occurs:
    5. Save the state and pause
    6. Execute a bounded step
    7. Collect results and verification evidence
    8. If a high-risk action occurs:
    9. Request manual approval
    10. If verification passes:
    11. Record deliverable and exit
    12. If consecutive executions yield no valid progress:
    13. Return blocking reason and exit
    14. Supplement information, adjust plan, or retry with limits based on failure type

    The key point of this process is that pausing, failing, and requesting assistance are all normal outcomes, not anomalies that must be masked.

    V. Case Study: Building a Verifiable Closed Loop for Defect Fixing

    Assume the task is “fix the order amount display anomaly.” Directly handing this sentence to the executor might trigger an overly broad search and modification scope.

    A more robust task contract should state:

    Goal: Fix the amount display issue under specified conditions without changing business calculation rules.

    Input: Reproduction steps, expected results, actual results, and the allowed code access scope.

    Constraints: Do not modify production data; do not adjust public modules unrelated to this issue.

    Acceptance Criteria: The original issue is reproducible; targeted checks pass after the fix; relevant regression checks find no new failures.

    The specific process can be divided into six steps:

    1. Establish Baseline: First confirm the issue exists and record current check results.
    2. Collect Evidence: Locate data sources, transformation logic, and display logic; distinguish between calculation errors and formatting errors.
    3. Propose Minimal Fix: Prioritize fixing the root cause and avoid unrelated refactoring.
    4. Execute Verification: Simultaneously check the problem scenario and adjacent boundary scenarios.
    5. Review Modification Scope: Confirm no accidental changes to permissions, configurations, dependencies, or other business logic.
    6. Submit Delivery Report: Explain modifications, verification evidence, uncovered risks, and rollback methods.

    If the executor cannot stably reproduce the issue, it should explicitly report “localization not yet complete” rather than substituting a single local check for final acceptance.

    VI. GUIs Will Not Disappear, but Will No Longer Handle All Interactions

    Agents change the focus of human-computer interaction: from “telling the system how to do each step” to “telling the system what goal to achieve.”

    However, the claim that “the graphical user interface is dead” is inaccurate. GUIs still shoulder at least four important responsibilities:

    • Expressing complex spatial information: Such as charts, layouts, design drafts, and visualized analysis results.
    • Providing state visibility: Letting users know what the system is doing and what it has modified.
    • Facilitating approval and error correction: Making it easy to compare diffs, undo operations, and adjust task scope.
    • Supporting exploratory operations: When users have not yet formed a clear goal, directly manipulating the interface is often more natural.

    For automated execution, interfaces that provide structured input, explicit return results, and stable error semantics are usually easier to maintain than simulated clicks. When UI operations are absolutely necessary, state confirmation should be added; one cannot assume a single click means the operation succeeded.

    Therefore, a more likely form is: natural language expresses intent, agents coordinate execution, structured interfaces handle reliable operations, and GUIs are responsible for display, confirmation, and takeover.

    VII. Enterprise Implementation: Permissions and Untrusted Inputs

    What an agent can read should not automatically grant it the power to command the agent. Text in web pages, documents, code comments, and logs may contain erroneous or even malicious instructions.

    The system must clearly distinguish between “task instructions” and “data to be processed,” prohibiting external content from arbitrarily expanding permissions, changing goals, or demanding information disclosure.

    Additionally, the principle of least privilege should be adopted:

    • Grant only the resource access permissions needed for the current task;
    • Execute uncertain operations in isolated environments;
    • Apply necessary data masking to sensitive data;
    • Set up manual approval for high-impact actions like deletion, publishing, or payment;
    • Retain operation logs and change evidence;
    • Prepare a feasible rollback plan before execution.

    The planner, executor, and verifier should also not share all credentials by default. Splitting roles without permission isolation merely spreads the same risk across more calls.

    VIII. Evaluate with Delivery Metrics, Not Call Volume

    When evaluating automation solutions, it is recommended to first select tasks with clear boundaries and low risk to establish a baseline before gradually expanding.

    Key metrics include:

    • Acceptance Pass Rate: The proportion of tasks completed to a unified standard;
    • Cost Per Successful Task: Total cost of all attempts during the statistical period divided by the number of acceptance passes;
    • End-to-End Time: Time from task submission to deliverable result;
    • Manual Intervention: Time required for manual review, supplementary information, and error correction;
    • Rework Rate: Proportion of tasks reprocessed due to defects post-delivery;
    • Boundary Violations and Halts: Occurrences of permission violations, budget overruns, and no-progress stops.

    Comparisons should use similar task sets, identical acceptance rules, and consistent environmental conditions. One cannot infer that complex tasks are equally cheap based on the low usage of simple tasks.

    A truly mature agent system does not make users forget about costs, but makes costs, progress, and risks visible, controllable, and explainable. The separation of planning and execution is just the starting point; task contracts, verification evidence, stop mechanisms, and permission governance determine whether automation can move from demos to daily production.