Agent Architectures: Gateway Assistants vs. Execution Workbenches

    When introducing AI agents, teams often compare heterogeneous products in a single feature matrix and ask which one is stronger or which will replace the other. This article separates agent systems into two architectural paths—channel-first gateway assistants and task-first execution workbenches—and explains how they differ in control plane, execution surface, memory, permissions, observability, and evaluation. It offers a practical framework for choosing the right form, designing hybrid architectures, and comparing alternatives with real tasks rather than feature lists.

    A common mistake when introducing agents is to place different product forms on the same feature comparison table and then ask which is stronger or which will replace the other. A more reliable approach is to identify the underlying intent first. One class of system connects models to communication channels users already use, emphasizing anytime response and cross-channel consistency. Another class places models inside an operable computing environment, emphasizing reading files, running commands, calling tools, and advancing through multiple rounds around a goal. Both can “chat,” but their optimization targets, default context, and engineering focus are different. Listing capabilities side by side easily leads to the conclusion that “they can do roughly the same thing.” Only by separating the control plane, execution surface, and memory surface can you judge which form fits the current workflow.

    Define the Problem Before Discussing Capabilities

    An agent is not a single component. It is a combination of models, tools, state, and permissions. What users perceive as “chatting” is only the entry point. The real determinants of experience are: where requests come from, how context is assembled, where actions execute, how results are written back, how failures are retried, and whether experience can be reused in later tasks.

    This can be viewed as two primary paths.

    • Channel-first path: The agent acts as a personal assistant gateway, residing in a user-controlled runtime environment and connecting to multiple communication entry points through a message adaptation layer. Core metrics are reachability, identity consistency, conversation continuity, and response latency. It can certainly call tools, but product priority usually ensures first that users can find it in familiar channels, ask questions, and receive stable answers.
    • Task-first path: The agent acts as a terminal-side workbench. Its default context includes the working directory, code repository, test results, and external retrieval. Core metrics are task completion rate, step traceability, and tool-call quality. It can also provide a message gateway, but its strength is concentrated in the execution loop: observe the environment, plan the next step, call tools, verify results, and decide whether to continue.

    The two paths can overlap in functionality. Skill self-improvement, long-term memory, and multi-platform access are all engineering-feasible. The difference mainly comes from requirement prioritization: at any given time, engineering effort will first refine the experience on the primary path rather than perfect every direction simultaneously. Therefore, “the other side has not prioritized a capability yet” does not mean “it cannot be built”; it only means the current product definition is different.

    Gateway Assistants: A Broad and Stable Control Plane

    Gateway-oriented design treats “wherever the person is, the assistant should be there” as the first constraint. A typical structure includes channel adapters, session routing, identity mapping, a policy gateway, and a model invocation layer.

    Adapters normalize message formats from each channel into internal events: text, quotes, attachments, and button callbacks all become unified request objects. The routing layer decides which session state to use based on user, tenant, topic, or thread. Identity mapping solves the problem of the same natural person having inconsistent accounts across entry points, preventing memory and permission mismatches. The policy gateway performs authentication, redaction, rate limiting, and auditing before the model sees content.

    Such systems look “heavy” because they must cover differences across many entry points: message length, rich text, asynchronous delivery, duplicate delivery, retractions, and group-chat mentions. Broad coverage brings adaptation costs and also makes the default runtime more oriented toward conversation rather than long occupation of local compute resources. It suits schedule queries, knowledge Q&A, approval reminders, lightweight lookups, and scenarios that require the same assistant persona across multiple collaboration entry points.

    If a gateway is turned into a large, all-encompassing tool marketplace, with every channel deeply bound to complex executors, the system will expand rapidly: permission models become hard to unify, failure domains become entangled, and upgrading one entry point may affect all conversations. A healthier approach is to keep the gateway thin, push heavy execution down to an independently scalable task runtime, and hand off work through messages or task queues.

    Execution Workbenches: A Deep and Verifiable Action Surface

    Execution-oriented design assumes that the user provides a goal rather than a piece of small talk. The system must complete rounds of action in a controlled environment: inspect directories, read files, retrieve information, modify content, run checks, and revise plans based on outputs. Its “lightness” is not about having fewer capabilities; it does not try to cover every communication entry point from the start. Instead, its default interface is the terminal, editor, or task panel.

    A runnable action loop can be summarized as:

    1. state = load(goal, workspace, memory)
    2. while not done and steps < limit:
    3. observation = observe(workspace, last_tool_result)
    4. action = model.decide(state, observation, tool_schema)
    5. if action.stop: break
    6. result = sandbox.exec(action) # timeout, permissions, resource limits
    7. state.append(action, result)
    8. if verify(result, goal): done = true
    9. persist(skill_notes, memory_delta, trace)

    The key here is not any single command but the constraints: tool allowlists, working-directory sandboxing, network egress policy, timeouts, output truncation, and replayability of each step. Without these constraints, multi-round execution easily becomes unauditable side effects.

    Execution-oriented agents are suitable for inspecting projects, organizing documents, running regression tests, generating change descriptions, and turning repetitive operations into scripts. Their risks are also more concentrated: accidentally modifying files, leaking secrets, or executing destructive operations in the wrong directory. Therefore, they should default to read-only, with writes requiring explicit confirmation; secrets should be injected only as short-lived credentials and should not enter long-term memory; every change should retain diffs and logs for rollback.

    Skill Accumulation and Long-Term Memory: How Capabilities Thicken

    “Skill self-improvement” is easily understood as a model modifying itself. In engineering, a more reliable meaning is: extract reusable steps from successful traces into skill descriptions, write failure modes into constraints, and retrieve and inject them in later similar tasks rather than planning from scratch every time.

    What can be accumulated should be small and verifiable:

    • Skill cards: trigger conditions, inputs and outputs, recommended tool order, prohibitions, and acceptance criteria.
    • Failure notes: which errors correspond to which remedies, and which paths have proven ineffective.
    • Environment facts: project structure conventions, common directories, and test entry points, rather than entire chat transcripts.

    Long-term memory should be layered. Session memory serves the current thread; project memory serves the same workspace; personal preference memory serves habits across projects. Before writing, filter out secrets, personal information, and one-off logs. Retrieval should be truncated by relevance and recency to avoid treating outdated conclusions as facts. Skill updates are best gated by human review or automated tests: if a new skill cannot reproduce expected results on sample tasks, it should not overwrite the old version.

    Gateway-oriented systems also need memory, but memory is mostly bound to people or topics; execution-oriented systems mostly bind memory to workspaces and task types. Mixing the two key sets can create fragmentation: norms remembered in chat may be unavailable in the repository, or vice versa. A unified memory key should include at least tenant, subject, workspace, and time range.

    Capability Overlap Does Not Mean the Same Product

    Both sides can connect to messages, and both can call tools. The difference lies in the default success criteria.

    For a gateway, success means users receive timely, consistent, and compliant replies in commonly used entry points, and complex tasks can be handed off rather than blocking the conversation. For an execution workbench, success means the goal is verified as complete within defined steps and permissions, and the process can be reviewed. Evaluating an execution workbench by “number of supported channels,” or evaluating a gateway by “whether it can modify a repository,” underestimates the dimension each actually optimizes.

    A simple matrix can help with selection rather than scoring and ranking:

    • Many interaction entry points, short single tasks, strong persona consistency: prioritize the gateway assistant, with execution as an optional plugin.
    • Long tasks, dependence on local or repository state, repeated verification: prioritize the execution workbench, with messaging used only for notification and confirmation.
    • Both are needed: adopt a “thin gateway + independent execution runtime.” The dialogue layer collects goals and confirms risky actions; the execution layer manages the task state machine. The two are linked by task ID to avoid piling all tool output into the chat context.

    Common Engineering Practices for Production

    Whichever side a system leans toward, the following practices determine whether it can reach production.

    Least privilege. The tool schema visible to the model should expose only the actions needed for the current task. Read, write, and external access should use separate credentials. Visibility in group chats and one-to-one chats must be distinguished.

    Observability. Each decision should record model version, tool name, parameter summary, latency, exit status, and human intervention points. Logs and traces should enter a unified logging service and monitoring alerts, with thresholds for failure rate, loop count, timeouts, and privilege-escalation attempts. Sensitive fields should be redacted before collection.

    Reliability. When channel delivery is at least once, idempotency keys should prevent duplicate execution of write operations. Long tasks and short replies should be separated: first acknowledge “received,” then advance asynchronously, and notify upon completion or blockage. After an executor crash, it should recover from the last committed state rather than replaying all side effects.

    Evaluation. Dialogue quality and task completion rate should be tested separately. Prepare fixed workspace snapshots and channel replay samples, and compare step counts, human takeover rates, and erroneous modification rates. Skill library changes should run regression tests to prevent “the more it accumulates, the more it drifts.”

    Deployment. Gateways suit stateless horizontal scaling with session state externalized; executors suit task-isolated containers or sandboxes with limits on CPU, memory, disk, and network. Artifacts, attachments, and traces can be placed in object storage; task queuing can use message queues. These are general cloud capabilities and do not need to be bound to a particular entry point. If a team already runs workloads on Baidu AI Cloud, the gateway, sandbox, logs, and object storage can be deployed within the same account’s network and permission boundaries; the priority remains isolation and auditability rather than exposing the model directly to the public internet.

    How to Compare Vertically

    When comparing the two directions, it is advisable to fix the same set of real tasks and change only the runtime form:

    1. Pure Q&A and reminders: examine multi-entry consistency, latency, and interruption level.
    2. Read-only investigation: given a repository and a symptom, see whether the system can locate the cause and provide reviewable evidence.
    3. Restricted modification: allow writes to a specified directory, and check whether the diff is minimal, tests are executed, and failures can be rolled back.
    4. Multi-day continuation: after a day, can it still reference the correct project conventions rather than repeating outdated chat?
    5. Permissions and incidents: deliberately insert secrets and dangerous instructions, and see whether it refuses, whether it writes them to memory, and whether it leaves an audit trail.

    These results explain the nature of a system better than a feature list. A broad, all-purpose gateway is like a warehouse with a full range of tool categories; its value is availability at hand. A focused execution workbench is like a portable toolbox; its value is being aimed at the work in front of you. The two can coexist, even be maintained by the same team, but they should not architecturally replace each other’s control plane.

    Conclusion

    When choosing an agent, first ask where tasks come from, where actions happen, and what counts as done. If the main scenario is a stable personal assistant across multiple communication entry points, strengthen adaptation, routing, identity, and policy, and isolate heavy execution. If the main scenario is advancing goals to verifiable results in a computing environment, strengthen sandboxes, tool loops, skill cards, and layered memory, and treat messaging entry points as notification channels. Features can borrow from each other; priorities cannot be copied from each other. Keeping the gateway thin, execution solid, and memory verifiable is closer to a system that can evolve over the long term than chasing “all-encompassing” coverage or “who replaces whom.”