
Essay Internal Tooling
Build the Minimal Agent Stack a Sub-Ten-Person Startup Can Own Without a Platform Engineer
Start with one model, thin tools, and Postgres, then add layers only when something breaks.
For a startup with fewer than ten people, the best AI agent stack is one model, a small tool layer, existing Postgres storage, and bought-in tracing and evals. The team can own it without a platform engineer if it adds complexity only when something specific breaks.
Why most early agent stacks collapse under their own weight
A backend team starts with a simple internal agent that answers support questions, looks up a customer record, and calls one refund endpoint. Three weeks later, it has a graph runtime, persistent state, retries, custom tool wrappers, a vector database, memory, tracing, and dashboards. The job has barely changed at all. Yet the team now has six layers, three vendors, custom state, and a retry strategy nobody fully trusts around an agent that calls one API.
The mistake is adding infrastructure before naming the failure it should fix. Graphs look serious, personalization looks useful, and multi-agent diagrams look impressive, while observability arrives only after debugging becomes painful. Can the team point to a specific failure this addition fixes? Add a layer only when something specific breaks.
What a production agent actually needs at its core
A basic production agent needs three things, namely a model that can reason through a request, tools it is allowed to call, and access to private data. Its loop is think, act, observe. The model reasons, takes an action, reads the result, and repeats until done, a pattern also called ReAct. That is enough for many useful business tasks.
The surrounding stack makes that loop operable under production traffic. It differs from the LLM stack, which handles inference through GPUs, batching, and request routing. The agent stack governs the space between the model and the world, including tools, memory, orchestration, and evaluation. A stateless agent that checks inventory or looks up orders is therefore a valid production target.
The six-layer map and two rails that frame every decision
The 2026 agent stack can be read as six horizontal layers. From the human-facing end downward, they are the agent surface, orchestration and runtime, memory, knowledge, tools, and models. Knowledge brings in outside information through retrieval, often called RAG, while memory keeps context across steps or sessions. Those are different jobs, even when they share storage. The map describes responsibilities.
Two vertical rails cut across those layers. Observability and eval measure what happened and whether it worked, while governance and security cover permissions, audit, and human oversight. Provider-native SDKs now do several of these jobs through single APIs, so a small system can be simpler than the diagram suggests. Each choice still raises three questions. How much state must it manage, how much lock-in is acceptable, and how hard is the move from demo to production?
Memory and orchestration have the highest state-management complexity, while closed-model APIs and proprietary orchestration frameworks create the greatest lock-in risk. The model API changes least between prototype and production. Evals and guardrails have a much wider gap, which explains why a working demo is not evidence that the surrounding system is ready.
Choosing a foundation model without over-indexing on "smartest"
For a team under ten, buy the foundation model. Training a frontier model is not the starting task. As this layer commoditizes, cost, latency, and fit to the workload become more useful criteria than an abstract claim to be the smartest. One model for all tasks keeps the first implementation straightforward.
GPT-5.5 is fast for everyday calls, reliable at tool-calling, and supported by a mature ecosystem of solved edge cases. Claude Sonnet 4.6 suits long documents and nuanced instructions at a lower price point than the Opus tier, while Claude Opus 4.8 targets deeper, longer-horizon reasoning. Gemini 3.1 Pro offers a large context window for lengthy knowledge bases or codebases. Pick for the work actually in front of the team.
Routing requests to cheaper models becomes useful when real traffic exposes cost pressure. Until then, it adds another decision system to operate. Self-hosting open-weight models is justified when API prices become untenable at volume or sub-100ms latency is a hard requirement that API round-trips cannot meet. Switching providers also requires prompt retuning and fresh evals. Early evaluation makes that later migration less blind.
Tools and MCP: when the connector standard earns its overhead
MCP changed the tools layer by making integrations reusable across agent surfaces. Instead of binding each function to a particular model SDK, the same server can connect a tool to multiple clients. That reduces lock-in when the model changes. MCP Apps extended the protocol on January 26, 2026, allowing tools to return interactive HTML interfaces rendered in sandboxed iframes within a conversation.
Reuse does not make every call a good MCP candidate. The practical rule is to use MCP when the agent dynamically chooses tools, and direct REST calls when the logic is deterministic. A nightly payroll sync always calls a predictable endpoint. An employee-question agent that must choose among the HRIS, payroll system, and ATS has a different need. Reusing that integration across a custom agent, CI job, and Slack bot strengthens the case for MCP.
The overhead deserves a place in that decision. Loading an MCP server schema can use many thousands of tokens before any tool runs, while a typical CLI interaction uses far fewer. For an internal code-review bot, the CLI is the clearer starting point. A platform serving many developers with audit requirements has more reason to accept MCP overhead. Build custom servers for proprietary systems and logic that is specific to the company. For third-party SaaS integrations, look for an existing managed server first.
The mistake is adding infrastructure before naming the failure it should fix.
Orchestration: picking the control-plane shape that matches the actual workflow
The workflow should choose the control plane. Sequential pipelines offer predictable cost and straightforward debugging and governance. Supervisor patterns allow dynamic routing, but they add a single point of failure and need care in how they manage context. Swarms allow more ways to do the work but are harder to run and govern. They belong in selective use with hard budgets.
For many startup tasks, a 50-line script on the OpenAI SDK with two MCP servers is enough. A 14-node state graph with a custom Redis checkpointer needs a stronger justification than an agent calling one API. LangGraph is a cleaner choice when work with several steps needs explicit state or several specialists need to work together.
Buy the model, observability, and evals, but build the orchestration and company-specific tool logic because they express product rules. That does not require building all the runtime infrastructure underneath. As agent counts grow, a purpose-built runtime for the agent loop can provide that substrate without taking over the business logic.
Memory and state: deciding what the agent should remember before choosing how to store it
What should the agent keep after the current request ends? That question comes before choosing a vector database. A stateless tool caller needs no memory layer, and a Postgres sessions table can be enough. But an agent that needs to remember preferences, past interactions, or weeks of project context needs durable memory. For those jobs, an agent that cannot remember context is just an expensive chatbot.
The hard decision is what becomes durable state. The team must decide what to retain, what to drop, and whether application code or the runtime controls those choices. Old context can pollute new answers, so a learning agent also needs evals for context drift. Mem0 offers a framework-agnostic, pluggable memory API for an existing architecture. The alternative is a memory-first runtime.
When vector retrieval is needed, pgvector inside the existing Postgres instance is the small-team starting point and avoids another database and vendor. Pinecone or Qdrant becomes relevant when query latency or index scale turns into a named bottleneck. Even with managed storage, retrieval logic remains product logic. The team still decides which context belongs in an answer.
The surface layer: where the agent shows up for people determines how complex the routing needs to be
Chat, IDEs, Slack, browser extensions, dashboards, approval queues, SMS, email, and WhatsApp offer different places to work. For coding, Cursor, Claude Code, and Replit Agent can turn feature specifications written in plain-English into working pull requests. But channel choice is also a routing decision. Each new surface adds more infrastructure for the team to run.
For a team under ten, start where users already work, usually Slack or the CLI. A second channel should answer an actual access problem. TinyClaw’s queue-based architecture illustrates the pattern when multiple channels must feed one backend. Some agents need no interactive surface at all. An ops agent watching dashboards or running revenue reports can use a cron-triggered runtime with notification output, which raises the next question of how the team knows it behaved correctly while nobody was watching.
Observability and evals: the two rails that make the stack operable without a dedicated platform engineer
Tracing and evaluation make unattended work inspectable. A demo model call may match the production call, but the visibility around it does not. Without traces, a prompt regression can stay hidden until a user complains. Without evals, an edit that seems helpful can make the agent worse at handling a whole class of inputs. These are operating tools. They let an engineer diagnose a failure and judge a prompt change without relying on intuition.
The map’s other rail, governance and security, depends on that visibility. Permissions and audit trails have little practical value if nobody can read what happened. When tools can affect production data, the team needs governance from the start. The minimal-stack rule means tying each safeguard to the capability it controls.
For a team this size, buying observability is usually the practical choice. Helicone offers a drop-in proxy, Langfuse has a free tier, and LangSmith is another option. Pick one and instrument before launch. Evals then answer a separate question. Did the prompt change make the agent work better across the inputs it needs to handle?
What AI stack can a startup team of under ten own end to end?
A concrete starting configuration uses Claude Sonnet or GPT-5.5 for all tasks, with no routing. OpenAI Agents SDK or Smolagents handles linear orchestration, while LangGraph waits for an explicit multi-step state problem. The tool layer can contain three to five MCP servers for external SaaS integrations and two custom functions for internal systems. Deterministic work still belongs in direct calls. These are parts for a workload.
Storage stays in the Postgres instance already running, with pgvector where retrieval requires it. Helicone or Langfuse supplies observability, twenty prompt unit tests in Promptfoo supply evals, and Guardrails AI starter policies supply initial guardrails. The first production agent at this configuration takes one to two weeks. A simpler stateless caller can need less. Persistent support memory, for example, answers a requirement that an order lookup does not have.
The next additions need equally concrete triggers. Model routing helps when API cost from real traffic hurts, while managed vector storage helps when the team can name a pgvector latency or scale bottleneck. A supervisor pattern is worth a look when a single-agent loop keeps giving wrong answers on a class of tasks where the team can reproduce the failure. A second surface serves users who cannot reach the first. Custom guardrails respond to observed false positives or harmful outputs that starter policies miss.
Growth need not force a wholesale rewrite of the stack. A runtime designed for the agent loop provides a place for those justified additions as the workload expands. The ownership test remains practical. Can any engineer on the team follow the execution, inspect the failure, and evaluate the fix? If a proposed layer makes that harder without solving a named problem, it has not earned its place.


