Agent-Driven Interaction: From Interface Operations to Intent Execution
This article examines the shift from traditional menu-, form-, and button-driven software interaction to intent-driven agent execution. It outlines a five-layer agent-centric system architecture covering the model, runtime, orchestration and harness, tools and environment, and interaction layer. It then explains the harness’s responsibilities, key capabilities such as execution observability, portable and traceable sessions, real-environment interaction, remote connection stability, and subagent customization. It also discusses implementation challenges, quantifiable evaluation metrics, and a phased adoption roadmap for teams moving from low-risk tasks to broader production use.
Agent-Driven Interaction: From Interface Operations to Intent Execution
1. Background: From Graphical Interfaces to Intent-Driven Interaction
Traditional software interaction is centered on menus, forms, and buttons. Users must know where a feature is located and follow a fixed path to complete a task. As large language models gain the ability to understand natural language, decompose tasks, and call tools, a new interaction model is becoming clearer: the user describes a goal, the system plans and executes the steps autonomously, and the interface becomes an auxiliary channel for observation and intervention.
This idea is often summarized as an agent-centric operating system, or Agent OS. It is not a specific product but a category of system architecture. Its core assumption is that agents can take over execution steps that were previously connected by the interface and by human effort. For this assumption to hold, the model, runtime environment, tool system, and interaction layer must work together.
Over the past few months, there has been extensive industry discussion of this direction, but stable engineering implementations are still limited. The main reason is that agents are far less deterministic than conventional programs. The same instruction may produce different results at different times and in different contexts, which requires more design for controllability, traceability, and recoverability.
2. Concept Breakdown: A Five-Layer Structure
An agent-centric system can usually be divided into five layers.
- Model layer: Responsible for understanding intent, planning steps, generating tool-call parameters, and judging results. Model capability determines the upper bound of the system, but it is not enough by itself to guarantee reliability.
- Runtime layer: Manages the agent lifecycle, including session creation, state persistence, timeout handling, and concurrency scheduling.
- Orchestration and harness layer: This is the most critical engineering layer. It constrains the model’s behavioral boundaries and handles tool registration, permission checks, context trimming, failure retries, and result validation.
- Tool and environment layer: Includes file systems, code repositories, databases, browsers, desktop applications, and various internal services. Each tool should be exposed to the agent through a clear input/output contract.
- Interaction layer: The human-facing interface. It no longer carries all functionality; instead, it displays execution progress, receives confirmation requests, and allows users to take over at any time.
Understanding these five layers helps distinguish “model capability” from “system capability.” Many failure cases are not caused by a model that is not smart enough, but by a lack of validation in the orchestration layer or unclear tool contracts.
3. Harness Responsibilities and a Minimal Implementation
A harness can be understood as a framework that wraps the model and provides it with a controlled execution environment. Its responsibilities typically include the following.
- Tool registration and description: Each tool declares its name, parameter schema, side-effect level, and timeout.
- Permission control: Following the principle of least privilege, the system decides which resources the agent can access within a given session.
- Context management: Controls the amount of information in each turn to prevent irrelevant history from crowding out useful context.
- State persistence: The input, output, and decision for every step should be persisted to support recovery and auditing.
- Human intervention points: Confirmation checkpoints should be set for irreversible operations such as deletion, sending, and deployment.
Below is a technology-stack-independent execution loop that illustrates the core logic:
loop:observation = collect_context(session)plan = model.decide(goal, observation, allowed_tools)if plan.action is None:breakif tool_registry.is_irreversible(plan.action):request_user_confirmation(plan)result = tool_registry.execute(plan.action, plan.args, timeout)validate(result, expected_schema)session.append_trace(plan, result)if result.failed and retry_budget_exhausted():escalate_to_user(session)break
In this pseudocode, the most easily overlooked steps are validate and append_trace. The former prevents an incorrect result from being treated as fact and passed on, while the latter makes every step replayable and inspectable.
4. Key Capability One: Observable Execution
If an agent’s execution process presents only a final conclusion, it is difficult for users to judge whether that conclusion is trustworthy. Observability requires the system to record a complete trace, including the model’s plan, the parameters of each tool call, returned results, latency, and failure reasons.
A complete trace provides value in three areas. First, it improves debugging efficiency. When a task fails, the team can identify which step deviated from expectations instead of rerunning the entire task. Second, it enables security auditing. Steps involving sensitive data or external write operations can be searched independently. Third, it provides a basis for capability evaluation. Traces can be used to calculate tool-call success rates, average step counts, and human intervention frequency.
Two points require attention during implementation. First, traces may contain sensitive information, so redaction and tiered storage are needed. Second, trace data volume is large, so retention policies and search indexes should be defined; otherwise, the traces become a new burden.
5. Key Capability Two: Portable and Traceable Sessions
In multi-person collaboration or multi-device scenarios, a task often needs to be transferred from one session to another. A common approach is for the agent to generate a summary and pass it to the next session. Summaries are simple, but they lose details such as approaches that were attempted, reasons why options were excluded, and file locations that have already been modified.
A more reliable approach is to preserve the structured state of the session and generate a stable reference for the session. The receiving party can read the original state directly instead of relying on a secondhand description. Key points include:
- Store session state and traces separately. State is used to resume execution, while traces are used for auditing.
- Reference addresses should include access permission checks to prevent a forwarded link from becoming a data leakage entry point.
- State snapshots need version numbers to ensure that the receiver reads content consistent with what the sender produced.
This design turns task handoff from “retelling” into “referencing,” significantly reducing information loss.
6. Key Capability Three: Interacting with the Real Environment
For agents to replace interfaces, they must be able to operate the environment behind the interface. This includes calling APIs, reading and writing files, running tests, and completing clicks, input, and screenshot comparison in graphical interfaces. The ability to operate desktop applications and browsers is called computer operation capability, which allows agents to handle legacy systems that do not expose open APIs.
The risks of this capability are significantly higher than those of pure text operations. Interface elements change, screenshot recognition may fail, and misclicks may modify data. Engineering practices usually include the following measures:
- Run in isolated environments and limit accessible accounts and network scope.
- Record before-and-after screenshots for each interface operation to support retrospective analysis.
- Require secondary confirmation for submission and deletion actions.
- Set validation conditions for key steps, such as checking page text or database state after an operation.
It is advisable to validate first on test applications and test accounts, then gradually expand the scope.
7. Key Capability Four: Remote Connection Stability
When an agent runs in a remote environment and the user issues instructions from a local device, network jitter, connection interruptions, and process restarts can all affect the task. Stability design typically includes heartbeat detection, reconnection, idempotent operations, and checkpoint resume.
Idempotency is especially important. If a write operation is submitted repeatedly after a network interruption, it may produce duplicate data or duplicate deployments. Each tool call should carry a unique request identifier, and the server should use that identifier to determine whether the operation has already been executed.
Checkpoint resume depends on the execution trace mentioned earlier. When the system recovers, it reads the last successful step and continues from that position instead of starting over.
8. Key Capability Five: Subagent Customization and Division of Labor
When a single agent takes on too many roles, its context quickly expands and judgment quality declines. Splitting tasks among multiple subagents allows each role to focus only on its own scope of responsibility. For example, one subagent can handle code retrieval, one can write changes, and one can run tests and report results.
When customizing subagents, the following should be specified:
- Role description: Responsibility boundaries and prohibited actions.
- Tool allowlist: Only expose the tools required to complete the responsibility.
- Context scope: Inject only task-relevant information to avoid leaking data from other modules.
- Output format: Use a unified structure so the main agent can aggregate and validate results.
Division of labor improves efficiency, but it also increases coordination cost. Dependencies between subtasks need to be modeled explicitly; otherwise, mutual waiting or conflicting results may occur.
9. Main Implementation Challenges
In practical implementation, agent-centric systems commonly face challenges in the following areas.
Reliability: Results for the same task may fluctuate. Validation, retries, and human review are needed to reduce risk.
Cost: Model calls, long contexts, and multi-turn execution all incur costs. A budget ceiling should be set for each task type, and unit task cost should be monitored.
Permissions and compliance: The greater the permissions an agent has, the greater the potential impact. Permissions should be granted temporarily per task, and audit records should be retained.
Data security: Session content, traces, and intermediate files may contain sensitive information. They need classified management and encrypted storage.
Organizational adaptation: Team workflows, approval chains, and responsibility allocation need to be adjusted in parallel. Technical feasibility does not mean a process can be replaced directly.
10. Evaluation Methods and Metrics
To evaluate whether an agent system is truly effective, quantifiable metrics should be used rather than relying only on demo performance. The following dimensions are recommended:
- Task completion rate: The proportion of results that meet acceptance criteria on a predefined task set.
- Human intervention count: The number of times human confirmation or takeover is required per task.
- Average time and steps: The time required to complete a task and the number of tool calls.
- Error recoverability: The proportion of failures that the system can recover from automatically or that users can repair at low cost.
- Cost per task: The combined overhead of model calls and computing resources.
Establishing a baseline is important. Before introducing agents, record the time and quality of humans completing similar tasks, then compare them with agent results. Efficiency improvement claims without a baseline are difficult to justify to decision-makers.
11. Phased Adoption Roadmap
Phase 1: Select tasks with clear boundaries and low side effects, such as code retrieval, document organization, and test report generation. The goal is to become familiar with trace review and manual takeover processes.
Phase 2: Introduce tasks with write operations, but set confirmation checkpoints for all of them and run them in isolated environments. Focus on validating validation rules and rollback plans.
Phase 3: Build subagent collaboration and gradually open cross-system operation permissions. At this stage, the permission model, audit system, and cost monitoring need to be improved.
Phase 4: Make the agent one of the default entry points, while the interface remains a monitoring and fallback channel. This phase requires organizational process alignment, not just technical changes.
At the end of each phase, decisions on whether to proceed should be based on evaluation metrics. The pace should match risk tolerance rather than external trends.
12. Concluding Assessment
Agent-centric interaction has clear value, especially for highly repetitive, complex, cross-system work. However, its maturity depends on joint progress in model capability, orchestration frameworks, tool contracts, and organizational processes. For most teams, the most practical approach is to start with three foundational capabilities: observability, recoverability, and auditability. Teams should use data to validate benefits before deciding to expand the scope.
