AI Agent Architecture: Finished Assistants vs. Open-Source Agent Foundations
This article reframes the debate between finished office assistants and open-source AI agent foundations as a layering problem rather than a winner-take-all contest. It traces how each approach evolved, explains why the runtime harness is the real technical dividing line, and outlines the six components of a usable runtime along with a minimal kernel example. Readers will gain a clear basis for choosing between a packaged assistant and an open-source foundation.
1. The Right Way to Frame the Question: Layering, Not Replacement
Most discussions about whether “finished office assistants” or “open-source agent foundations” will win stay at the product level, which makes them hard to resolve. A more rigorous framing is that agent systems are forming a layered structure similar to operating systems and applications. The foundation handles runtime semantics (the loop, tools, memory, permissions), while the finished product handles scenario semantics (documents, meetings, reports, approvals). Once this layering stabilizes, the two are complementary rather than locked in a zero-sum relationship.
A formulaic expression helps unify the understanding:
Agent = Model(reasoning and planning) + Harness(runtime) + Tools/Skills(capability surface) + Context(memory and knowledge)
Model capability sets the upper bound, the harness determines the lower bound and stability, and the tool ecosystem determines how far the system can be deployed in practice. Any narrative that emphasizes only one of these is incomplete.
2. Origins: How Lineage Shapes Product Form
All-in-one assistants aimed at everyday users mostly evolved from desktop productivity tools, with primary users in non-technical roles such as operations, HR, administration, and marketing. Their design philosophy is “hide the complexity”: loop control, tool invocation, memory management, and permission checks are all encapsulated in an invisible layer. Users face only natural-language input and result output, and the assistant is deeply embedded in existing instant messaging and collaborative document workflows.
Open-source foundations aimed at developers take the opposite approach. They originated as intelligent coding tools, and their core proposition is “expose the complexity”: the loop, tools, memory, and interface are all pluggable, allowing users to swap models, rewrite scheduling logic, and define custom sandboxes and skill packages. Freedom buys controllability, at the cost of requiring engineering skills from the user.
3. The Runtime Is the Real Technical Dividing Line
The real difference between the two paths lies not in the interface but in how completely the harness is implemented. A usable runtime includes at least six things:
- Loop and termination conditions: maximum steps, timeouts, and repeated-action detection to avoid infinite calls;
- Tool scheduling and schema validation: parameter schema constraints, idempotency markers, and failure classification;
- Permissions and sandboxing: read/write boundaries, network egress, and command allowlists;
- Layered memory: short-term sessions, task-level drafts, and long-term knowledge, each with its own write and eviction policies;
- Exceptions and retries: distinguishing retryable errors from semantic errors, combined with backoff and budget limits;
- Observability: structured logs, metrics, and alerts that support step-by-step replay.
A schematic minimal kernel (implementation details omitted):
def run(task, model, tools, policy, budget):ctx = Context.load(task.session_id)for step in range(budget.max_steps):if policy.repeated(ctx) or budget.exhausted():return escalate(task, reason="budget_or_loop")plan = model.plan(task, ctx, tools.schema())result = policy.execute(plan, sandbox=True) # permissions and sandbox converge hereif result.retryable:ctx.note(result.error); continuectx.commit(result) # memory writes follow the layered policyif result.done:return result.outputreturn escalate(task, reason="max_steps")
Finished assistants are not missing this layer of logic; they harden it inside the product and do not expose it. Open-source foundations, by contrast, abstract it into replaceable components.
4. Capability Boundaries and Selection Criteria
The strength of an all-in-one assistant is delivery certainty: it works out of the box, connects naturally to the office ecosystem, and has an extremely low learning curve for non-technical users; its limitation is a customization ceiling, since deep workflows can only wait for official iterations. The open-source foundation
