Two AI Agent Architectures: Assistant Gateways vs. Terminal Executors

    Open-source and self-built agent stacks are often scored on the same feature checklist. This article separates two product shapes—personal assistant gateways in existing chat channels versus growing terminal executors in a controlled workspace—and explains how default priorities, failure modes, memory, and skills differ so teams can choose by scenario rather than by hype.

    Stop ranking “who is stronger” and start ranking form

    Open-source and self-built agent frameworks are often dropped into one comparison table: one side highlights multi-channel reach, occasional hangs after upgrades, and noisy errors; the other highlights skills that accumulate over time and tasks that advance round by round in a terminal. That mix of product maturity, community heat, and architecture is not a useful score for engineering teams.

    The better question is not substitution. Do you need a personal assistant that answers inside channels people already use, or an executor that completes file, test, retrieval, and documentation work in a controlled compute environment?

    Capability lists can overlap: both can call tools, read and write context, attach to message inboxes, and keep some memory. The difference is default optimization target and requirement order, not whether a feature is “impossible.” In product design, priority decides which path you make reliable first. That is how you avoid using a short-lived UX to dismiss another technical line.

    Form 1: assistant gateway

    An assistant gateway is a personal-assistant entry point that runs on devices or networks you control. The main path is: receive a message on an existing channel, authenticate and route the session, call a model plus a small set of tools, and send the result back on the same channel. Users feel help inside a familiar conversation, not a dedicated workbench.

    Typical engineering focus:

    • Channel adapters and session consistency. Channels differ in message length, rich text, callback retries, and identity models. The gateway normalizes user IDs, threads, idempotency keys, and delivery confirmation so you neither duplicate nor drop replies.
    • Personal context and permission boundaries. The assistant represents a person. Calendars, documents, and internal systems must be scoped to that user’s grants—not to the largest set a machine account can reach.
    • Broad, stable interaction. Responses should be fast, failures explainable, and upgrades must not freeze live sessions. Memory can start as short-term preferences and to-dos; it does not have to be a self-growing skill library on day one.
    • Shape bias. Channels, identity, audit, policy, and model routing stacked together look like a full hardware store: wide coverage, and every path carries adapter cost.

    This form fits Q&A, reminders, light approvals, and sending knowledge-base answers back into chat tools. Success looks like availability, channel coverage, and single-user experience—not how many files changed in one task.

    Form 2: a terminal executor that can grow

    The other class of agent puts the main loop in a compute environment: inspect a project tree, read files, run tests or scripts, look up public sources, write docs, and feed failure logs into the next round. It is an executor on a workbench; chat is mainly for goals and risk confirmation. Even if it also offers a message gateway, its strength stays in terminal execution, file operations, tool use, skills, and cross-session memory.

    Typical traits:

    • A task state machine, not a single-message loop. One user turn expands into plan, tool call, observation, and re-plan until a stop condition or a human checkpoint.
    • Skills as reusable process assets. Repeated sequences become skills with preconditions, I/O, and failure handling—not a new prompt from scratch each time. “Self-evolution” in engineering terms means: under sandbox and review gates, successful traces become versioned skills—not unconstrained rewriting of the agent’s own permissions.
    • Long-term memory in service of tasks, not persona chat. Memory entries should trace to a source (command output, document passage, user confirmation) and have expiry and conflict-merge rules.
    • Lighter surface, deeper execution. Skip “every channel” and spend complexity on execution safety, workspace isolation, and repeatable runs—more toolbox than department store.

    It fits coding assistance, ops troubleshooting drafts, report and doc generation, and batch information cleanup. Success is task completion rate, human interventions, whether regressions reproduce, and blast radius on the host.

    Why side-by-side feature scores distort

    A shared “has / hasn’t” checklist often concludes “about the same” or “one side dominates.” Split four layers instead:

    1. Where it runs. Gateways emphasize being reachable from channels at any time. Executors emphasize which machine and isolation boundary holds the workspace, dependencies, and credentials.
    2. Failure modes. Gateway faults: delivery failure, crossed sessions, hung processes after upgrade. Executor faults: tool misuse, workspace pollution, long loops exhausting quota or context. Governance differs: health checks, graceful restart, and message idempotency versus sandboxes, read-only defaults, change confirmation, and step budgets.
    3. Memory and skill priority. Auto-capturing skills is valuable, but not always the current top priority. Gateway teams may stabilize channels first; executor teams may version and roll back skills first. Not being first does not mean the architecture cannot do it.
    4. Iteration direction. Both keep evolving toward different objective functions. Declaring a winner from one week of stability or one demo is a short sample, and it ignores your channel and compliance constraints.

    A distinctive capability such as self-created skills can still be built with generic machinery: trace collection, pattern induction, human or policy approval, a skill registry, and gradual enablement. The question is whether that path is on the default mainline, and whether auto-write can be turned off on failure.

    Shared capabilities and hard boundaries

    Regardless of form, these are baseline agent requirements, not a vendor exclusive:

    • Constrained tool calling. Parameters via structured schemas; do not let the model freely concatenate high-risk commands. Explicit confirmation for deletes, outbound sends, and privilege escalation.
    • Least privilege. Separate execution identity from user identity; keep secrets in a key manager, not in prompts or the repo; restrict outbound network by domain or range.
    • Observability. Each tool call leaves an input summary, result status, latency, and a session or task ID for audit. Logs and alerts catch hangs, retry storms, and abnormal tool rates.
    • Context budget. Long tasks summarize intermediate results instead of stuffing full history back into the model. Memory retrieval should carry sources so “full memory” remains checkable.
    • Upgrade strategy. Decouple config from runtime, canary models or prompts, keep the last stable version, and avoid one upgrade taking down both live inboxes and batch jobs.

    A product-agnostic control-flow sketch (not any vendor API):

    1. state = load(task_id) # goals, constraints, confirmed steps
    2. while not should_stop(state):
    3. plan = model.plan(state.summary, tools.schema)
    4. if plan.needs_human: break
    5. result = tools.invoke(plan.action, policy.check)
    6. state.append(result)
    7. state.summary = compress(state)
    8. save(state)
    9. if policy.allow_skill:
    10. propose_skill(state) # proposal only; not auto-enabled by default

    Before a skill proposal enters the registry, at least check: can preconditions be stated, does it include destructive actions, can it reproduce in an empty workspace, is rollback clear. Auto-enable only a low-risk, repeatable subset that already has test fixtures.

    Choose by scenario, not by brand

    Primary scenario Better-fitting form Build first
    Staff ask policy, search knowledge, and get reminders in existing chat Assistant gateway Identity join, channel idempotency, cited answers, upgrades that do not drop sessions
    Continuous work on a repo, doc tree, tests, and scripts Terminal executor Workspace isolation, tool allowlists, step budgets, skill versions
    You need both Shared model and policy layer, separate entry points Unified audit and permissions; do not let two memories overwrite each other

    If the org needs both entry points, share horizontal capabilities—model routing, policy, audit, keys—but do not force one process to own every channel and every terminal side effect. When gateway availability goals conflict with executor change goals, split deploy boundaries rather than stacking features. Object storage can hold task artifacts and skill packs; queues can absorb peaks and retries; containers can isolate each run; logs and monitoring turn hangs and tool anomalies into alerts. Those are generic cloud categories: judge isolation, retention, and permission models—not proprietary names in an architecture promise.

    Chat and collaboration adapters succeed on completeness and how closely identity matches your org, not on a framework “knowing a type of user.” Evaluate with two or three channels you will actually use, end to end: reconnects, duplicate callbacks, oversized messages, and prompts when permission is missing. That beats a demo site’s feature list.

    Common pitfalls in production

    • Inferring production from demo smoothness. A short chat going well does not mean upgrades, concurrent sessions, and tool-failure recovery are done. Treat hang as: process alive but no longer consuming queues or updating heartbeat; add probes and auto-isolation.
    • Treating memory as an infinite chat log. Memory without sources and expiry amplifies error. Personal assistants bias toward preferences and unfinished items; executors bias toward project facts and verified commands. Do not dump both into one undifferentiated vector store.
    • Self-rewriting skills without gates. Auto-created skills can cut repetition, but writes onto the execution path must be auditable, disableable, and rollback-ready. One bad induction otherwise becomes standing behavior.
    • Breadth hiding the main path. Many unstable channels, or many tools without a default safe posture, look omnipotent and feel clumsy. Put priority on the roadmap: this iteration commits a completion definition for one main path only.
    • Expecting a lateral swap. Moving from gateway to executor (or the reverse) changes task boundaries and the permission model, not a start command. Run a small parallel period on the same real tasks and compare human interventions and incident radius.

    Takeaway

    An assistant gateway makes the agent a personal assistant inside existing channels, optimizing coverage and session stability. A terminal executor makes it a workbench that drives tasks, optimizing toolchains, skill capture, and long-lived, checkable memory. Feature lists can look similar; product form does not. Before you choose, write down where the primary user starts a request, what the agent is allowed to change, and who can stop it in one action. Comparing along that vertical is closer to a maintainable architecture decision than chasing a week’s heat.