STEM Agent: A Self-Adapting, Tool-Enabled, Extensible Architecture for Multi-Protocol AI Agent Systems

Alfred Shen, Aaron Shen · 2026

Read STEM Agent: A Self-Adapting, Tool-Enabled, Extensible Architecture for Multi-Protocol AI Agent Systems by Alfred Shen, Aaron Shen (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-22359.txt.

Introduction

Shen and Shen present STEM Agent, a modular frame for building AI agent systems. Most frameworks lock in one protocol, one tool plan, and a fixed user model early. STEM instead grows from a plain core, like a stem cell taking a role. Specialized handlers, tool bindings, and memory parts compose into a full system. One gateway unifies five interop protocols. A Caller Profiler keeps learning user tastes across more than twenty dimensions. A 413-test suite checks the whole build in under three seconds.

Catalog record

CREATORAlfred Shen, Aaron Shen
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE24323
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.22359

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

STEM Agent: A Self-Adapting, Tool-Enabled, Extensible Architecture for Multi-Protocol AI Agent Systems Alfred Shen, Aaron Shen Abstract Current AI agent frameworks commit early to a single interaction protocol, a fixed tool integration strategy, and static user models, limiting their deployment across diverse interaction paradigms. We introduce STEM Agent (Self-adapting, Tool-enabled, Extensible, Multi-agent), a modular architecture inspired by biological pluripotency: an undifferentiated agent core that differentiates into specialized protocol handlers, tool bindings, and memory subsystems, composing into a functioning AI system. The framework unifies five interoperability protocols (A2A, AG-UI, A2UI, UCP, and AP2) behind a single gateway, introduces a Caller Profiler that continuously learns user preferences across 20+ behavioral dimensions, externalizes all domain capabilities through the Model Context Protocol (MCP), and implements a biologically-inspired skills acquisition system where recurring interaction patterns crystallize into reusable agent skills through a maturation lifecycle analogous to cell differentiation. The memory system incorporates consolidation mechanisms (episodic pruning, semantic deduplication, and pattern extraction) designed for sub-linear growth under sustained interaction. A 413-test suite validates protocol handler behavior and component integration across all five architectural layers, completing in under 3 s. 1 Introduction In developmental biology, a stem cell is remarkable for its pluripotency : it is undifferentiated yet capable of specializing into any cell type, which then compose into organs that sustain a living body. We take this as a design principle for AI agent systems. The STEM Agent (Self-adapting, Tool-enabled, Extensible, Multi-agent) is an undifferentiated agent core that differentiates into specialized protocol handlers, tool bindings, and memory types, which compose into a functioning system that supports diverse business workflows. This analogy is not merely rhetorical. Current agent frameworks exhibit what we term architectural lock-in : they commit early to a single interaction protocol (e.g., REST-only or chat-only), a fixed tool integration strategy, and static user models. The result is an ecosystem of rigid, single-purpose agents that cannot interoperate, adapt, or compose ( 9 ; 24 ) . Meanwhile, the proliferation of agent communication protocols—MCP ( 7 ) , A2A ( 11 ) , and emerging standards for UI streaming and commerce—demands architectures that are protocol-pluralistic by design ( 16 ) . STEM Agent addresses these gaps with the following contributions: 1. Multi-protocol interoperability. To our knowledge, the first agent framework implementing five interoperability protocols—A2A (agent-to-agent), AG-UI (streaming UI events), A2UI (dynamic UI composition), UCP (universal commerce), and AP2 (agent payments)—behind a unified gateway. Of these, A2A and AG-UI follow published external specifications; UCP and AP2 are novel protocols proposed herein. 2. Caller Profiler. A multi-dimensional user modeling system that continuously learns caller preferences across 4 categories and 20+ dimensions using exponential moving averages, enabling per-user behavioral adaptation without manual configuration. 3. MCP-native tool integration. All external domain capabilities are acquired at runtime via the Model Context Protocol, separating agent reasoning from domain knowledge. Meta-reasoning rules (strategy selection, parameter tuning) remain in code. 4. Self-tunable behavior parameters. Ten continuously adjusted parameters (reasoning depth, creativity, verbosity, etc.) that adapt to task characteristics and caller profiles. 5. Commerce-ready agent protocols. Novel UCP and AP2 protocol handlers enabling checkout sessions, mandate-based payments, and audit trails within the agent interaction loop. 6. Biologically-inspired skills acquisition. A cell-differentiation model where recurring interaction patterns crystallize into reusable skills that mature through activation (progenitor \to committed \to mature) or undergo apoptosis on persistent failure, complemented by manual skill plugin support. 2 Related Work Multi-agent frameworks. The rapid growth of LLM-based agent systems has produced a diverse ecosystem of frameworks, each optimizing for different coordination patterns. 24 survey these mechanisms—role-assignment, debate, and orchestration—across AutoGen, MetaGPT, CAMEL, and CrewAI. A recurring finding is that most frameworks commit to a single communication protocol and lack per-user adaptation. 20 confirm this in MAFBench, a unified benchmark showing that architectural choices drive 100 \times latency differences and 30% accuracy gaps across frameworks. 5 address coordination rigidity through evolving orchestration, while 6 demonstrate that multi-agent LLM orchestration can achieve deterministic decision support for incident response. STEM Agent builds on this line of work by unifying five protocols behind a single gateway and adding continuous caller modeling. Agent communication protocols. The interoperability landscape is fragmented across competing standards. 7 survey four major protocols—MCP, ACP, A2A, and ANP—concluding that MCP and A2A are complementary (vertical tool access vs. horizontal agent communication) rather than competing. 16 critically analyze integration challenges when combining A2A and MCP, identifying schema translation and lifecycle management as key pain points. 14 study the MCP \times A2A framework. Security is an active concern: 11 analyze A2A threat models, while 3 provide a comparative security analysis across MCP, A2A, Agora, and ANP. 21 map classical design patterns (Mediator, Observer) to MCP communication. The Agent Network Protocol ( 4 ) addresses decentralized discovery. Despite this proliferation, prior work implements at most two protocols; STEM Agent implements five, including two novel commerce protocols. Agentic reasoning and adaptive compute. 25 provide a comprehensive survey of agentic reasoning, covering chain-of-thought, ReAct, reflexion, tree-of-thought, and debate paradigms. 2 survey adaptive test-time compute, showing that dynamically adjusting reasoning depth yields efficiency gains without quality loss. 15 propose budget-guided steering for LLM thinking. STEM Agent integrates four reasoning strategies with automatic selection based on task characteristics, drawing on these adaptive compute principles. MCP tools and benchmarks. 18 benchmark LLMs across 11 real-world MCP servers where even state-of-the-art models score below 44%; 8 scale this to 4,000+ servers. 17 propose dynamic tool synchronization, and 12 find that 97.1% of MCP tool descriptions contain quality issues. 13 and 22 extend MCP with context-aware collaboration and schema-guided dialogue convergence, respectively. Agent memory and self-adaptation. 9 review the progression from LLM reasoning to autonomous AI agents, identifying continuous adaptation as a key open challenge. 1 benchmark memory and continual learning in LLM systems. 10 propose distilling feedback into memory-as-a-tool, treating memory as an explicit, learnable capability. 26 present a hierarchical multi-agent framework with hybrid memory. STEM Agent operationalizes these ideas through a four-type memory system and a Caller Profiler with self-tunable behavior parameters. 3 Architecture STEM Agent is organized into five layers, each corresponding to a distinct concern ( Table 1 ). Figure 1 provides a visual overview. Following the stem cell analogy: Layer 3 (Agent Core) is the undifferentiated core that differentiates through Layer 2 (protocol handlers) and Layer 5 (tool bindings) into specialized capabilities, while Layer 4 (Memory) provides persistent state that guides future adaptation. Figure 1: STEM Agent five-layer architecture. Callers interact through the Standard Interface Layer, which routes requests through five protocol handlers (A2A, AG-UI, A2UI, UCP, AP2) and framework adapters to the Agent Core. The core’s cognitive pipeline (Perceive \to Adapt \to Skill Match \to Reason \to Plan \to Execute \to Learn \to Respond) is supported by a four-type Memory System and the MCP Integration Layer for dynamic tool access. Table 1: Five-layer architecture overview. Layer Component Key Counts 1 Caller / User Layer 4 adapters 2 Standard Interface (Gateway) 5 protocols 3 Agent Core 5 engines 3.5 Security Layer 4 IAM plugins 4 Memory System 4 memory types 5 MCP Integration 3 transports 3.1 Cognitive Pipeline The Agent Core processes each request through an eight-phase cognitive pipeline ( Algorithm 1 ). Algorithm 1 STEM Cognitive Pipeline Input: message m , caller context c Output: response

Read the complete text