---
title: "What is STACK | Agent OS architecture | Len P. van der Hof"
description: "STACK is a five-layer architecture for repositories where humans and agents share work: Structure, Toolchain, Agent configuration, Connection, Knowledge and…"
image: "https://lenvanderhof.com/media/generated/blog-hero-stack-meaning-en.10a6aedba061.wide.webp"
---

[AI Systems](https://lenvanderhof.com/en/blog/category/ai-systems/) Research guide

# What is STACK? Five layers, not a vendor diagram

The agent OS should be versioned like the app. If the rules live in five tools, you have debt, not a model problem.

Len P. van der HofPublished 5 September 2026Updated 6 September 20265 min read

Layers with owners. Not a slide titled stack.

Direct answer

STACK is a five-layer architecture for repositories where humans and agents share work: Structure, Toolchain, Agent configuration, Connection, Knowledge and quality. Structure is the map an agent can navigate on minute one. Toolchain is the commands it may run. Agent configuration is versioned standing context. Connection is MCP with contracts and least privilege. Knowledge and quality is memory, evals, and CI, so a model upgrade does not silently lower the bar. It is not a vendor 'AI stack' diagram. The book that owns the name is The Agentic Codebase, which is live.

## Key takeaways

- STACK is five named layers with owners. Not a product pack.
- Demo quality is not repo quality.
- This page is the definition. The architecture article versions the OS.
- MCP belongs in Connection, with a contract, or it does not belong.

STACK is a word vendors print on a slide and operators need as an architecture.

**What is STACK?** Five layers for repositories where humans and agents share work: Structure, Toolchain, Agent configuration, Connection, Knowledge and quality. The agent operating system should be versioned like the application.

It is not a vendor “AI stack” diagram. It is not a pile of tools. If prompts, MCP servers, and skills live outside the repo, or live in five places inside it, you have agentic repo debt. The disease is ownership, not a weak model.

A demo can look clean on one laptop. Six months later a second engineer cannot say which rule allowed the agent to edit the wrong module. The [glossary capsule](https://lenvanderhof.com/glossary/stack/) is the short form. This page is the map you can hang on the repo before you add another host.

## The five names

Each layer has an owner. If a change cannot be named as a layer, it does not belong in the pull-request description. “Tweaked the agent” is not a commit message.

**Structure.** Layout, entry points, workspaces, and boundaries an agent can navigate on minute one. The map is a directory, not a Slack memory. If a new worker has to ask where the rules live, Structure is missing. One tree. Nowhere else.

**Toolchain.** The shells, commands, and CLI contracts an agent is allowed to run, written down instead of remembered. Hosts and runners are pinned. “Whatever the laptop has” is how a demo works and a second machine fails. If two people get two different command lists, you do not have a toolchain. You have folklore.

**Agent configuration.** Versioned standing context. AGENTS.md, rules, skills, subagent charters. Not a prompt in a chat. Not a gist in someone’s drive. If the standing instructions exist in three files that disagree, the agent will pick the loudest one. Put a name on the CODEOWNERS line.

**Connection.** [MCP](https://lenvanderhof.com/en/blog/mcp-meaning/) with contracts and least privilege. Visibility, mutation, log. A server without those three is a hole in the repo. When a tool can send, spend, or delete, the first ten calls have a human name next to them. After that, the log is the review. No log, no tool.

**Knowledge and quality.** Memory, evals, and CI, so a model upgrade does not silently lower the bar. What the agent may treat as true, and the tests that fail a bad change. If you swapped the model last Tuesday and nothing in CI noticed, you do not have a quality layer. You have hope.

The [override doctrine](https://lenvanderhof.com/glossary/override-doctrine/) is a file, not a Slack memory. It names the decisions an agent may never take. It sits next to Agent configuration and Connection. It is not a sixth layer. It is the refuse-line those two layers enforce.

## A walk through a repo that already smells

Take a product repo that “has agents.” You open it on a Monday.

Structure is four places: a `.cursor/rules` file, a `CLAUDE.md` at the root, a prompt in a Notion page, and a skill the founder pasted into a host last month. The agent reads two of them. Nobody can say which two.

Toolchain is “use the CLI on my machine.” The CI image has a different Node. The agent runs a formatter the laptop does not have. Review comments argue about whitespace that the agent never saw.

Agent configuration is a chat from March. The charter for the docs worker lives in that thread. The docs worker still runs. The charter does not.

Connection is two MCP servers. One can read the repo. One can open a pull request and comment on GitHub. Neither has a written mutation list. The log is the vendor dashboard, which expires.

Knowledge and quality is a README sentence: “be careful with main.” There is no eval. There is no test that fails when the agent edits a billing module. Last week’s model upgrade made the prose nicer and the diffs larger. Nobody measured.

That is agentic repo debt. A smarter model will not pay it down. Ownership will.

## What belongs where

MCP belongs in Connection, with a contract, or it does not belong. [MCP meaning](https://lenvanderhof.com/en/blog/mcp-meaning/) is the definition of the protocol: host, client, server; tools, resources, prompts. This page only places it. A clean server with no ceiling is still a hole with nicer plumbing.

A charter belongs in Agent configuration as standing context, and in [CHORUS](https://lenvanderhof.com/en/blog/what-is-chorus/) as a coordination artifact. STACK versions the file. CHORUS names the fields. Do not collapse them. The repo can have a beautiful `AGENTS.md` and still lose work at every handoff.

Evals belong in Knowledge and quality. A vibe check in a pull request is Review in CHORUS, not an eval. If the only quality signal is a human saying “looks good,” you have a spectator, not a gate.

## Not a vendor slide

The collision is in the glossary on purpose. STACK is not a product pack. It is not LangChain plus a vector database plus a host. It is not “our AI stack” on a Series A deck. Tool names age fast. The five layers do not.

A solo founder plus agents is already a multi-actor repo. STACK is sized for that, not for an enterprise platform team. Vibe coding wins the demo. STACK is for the six months after, when the agent edits the wrong module and nobody can say which rule allowed it.

## Two pages

[STACK: version the agent OS like you version the app](https://lenvanderhof.com/en/blog/stack-version-the-agent-os/) is the architecture article: how to treat prompts, skills, and server contracts as code, with reviewers and a rollback. This page is the definition.

[The Agentic Codebase](https://lenvanderhof.com/books/the-agentic-codebase/) is live. The [introduction](https://lenvanderhof.com/en/blog/the-agentic-codebase-introduction/) is the launch article. You do not need the hardcover to put the rules in one place.

If you do one thing this week: pick a single directory as the agent OS, move the stray prompts into it, and put a name on the CODEOWNERS line. Folklore ends at the first owner. Then name the five layers on a one-page map. If a change cannot point at a layer, it does not merge.

Cite this:What is STACK? Five layers, not a vendor diagram.Len P. van der Hof. [https://lenvanderhof.com/en/blog/what-is-stack/](https://lenvanderhof.com/en/blog/what-is-stack/) · Published 5 September 2026.

## Terminology

- [STACK](https://lenvanderhof.com/glossary/stack/)
- [MCP](https://lenvanderhof.com/glossary/mcp/)

## Sources

1. [STACK (glossary)](https://lenvanderhof.com/glossary/stack/)
2. [STACK: version the agent OS](https://lenvanderhof.com/en/blog/stack-version-the-agent-os/)
3. [MCP meaning](https://lenvanderhof.com/en/blog/mcp-meaning/)
4. [The Agentic Codebase](https://lenvanderhof.com/books/the-agentic-codebase/)

## Related essays

- [What is an AI agent?](https://lenvanderhof.com/en/blog/what-is-an-ai-agent/)
- [MCP explained for founders](https://lenvanderhof.com/en/blog/mcp-explained-for-founders/)
- [The Agentic Codebase: introduction](https://lenvanderhof.com/en/blog/the-agentic-codebase-introduction/)
- [Version the agent OS](https://lenvanderhof.com/en/blog/stack-version-the-agent-os/)
- [An agentic workflow is not an automation](https://lenvanderhof.com/en/blog/agentic-workflow-vs-automation/)
- [LLM integration is an operating-design problem](https://lenvanderhof.com/en/blog/llm-integration-is-operating-design/)
- [MCP meaning: Model Context Protocol, not a product](https://lenvanderhof.com/en/blog/mcp-meaning/)

## Further reading

- [STACK](https://lenvanderhof.com/glossary/stack/)
- [Version the agent OS](https://lenvanderhof.com/en/blog/stack-version-the-agent-os/)
- [The Agentic Codebase](https://lenvanderhof.com/books/the-agentic-codebase/)

About the author

## [Len P. van der Hof](https://lenvanderhof.com/en/authors/len-p-van-der-hof/)

Entrepreneur, AI Innovator and Venture Builder

Len P. van der Hof builds practical AI systems, digital ventures and evidence-informed tools for founders.

```json
{
	"@context": "https://schema.org",
	"@graph": [
		{
			"@type": "Person",
			"@id": "https://lenvanderhof.com/#person",
			"name": "Len P. van der Hof",
			"alternateName": [
				"Len van der Hof",
				"L.P. van der Hof",
				"Leendert Pieter van der Hof"
			],
			"honorificSuffix": "MSc",
			"url": "https://lenvanderhof.com/",
			"image": [
				"https://lenvanderhof.com/photos/len-portrait-1.jpg",
				"https://lenvanderhof.com/photos/len-portrait-2.jpg",
				"https://lenvanderhof.com/photos/len-portrait-3.jpg",
				"https://lenvanderhof.com/photos/len-portrait-4.jpg",
				"https://lenvanderhof.com/photos/len-speaking.jpg",
				"https://lenvanderhof.com/photos/len-hero.jpg"
			],
			"jobTitle": "Entrepreneur, AI Innovator and Venture Builder",
			"description": "Len P. van der Hof, MSc, is a Dutch entrepreneur and AI innovator in Zwijndrecht. He builds ReasonKit, MindSesh, Undominated.ai, books under his name, the fiction imprint LPH98.lifestyle, and technology ventures through LPH98.ventures. Eleven titles in Systems for the Strategic Self are available now, in English and Dutch.",
			"address": {
				"@type": "PostalAddress",
				"addressLocality": "Zwijndrecht",
				"addressCountry": "NL"
			},
			"alumniOf": {
				"@type": "CollegeOrUniversity",
				"name": "Rotterdam School of Management, Erasmus University"
			},
			"knowsAbout": [
				"Artificial intelligence",
				"AI agents",
				"Agentic AI systems",
				"LLM routing",
				"SEO",
				"Generative engine optimization",
				"Answer engine optimization",
				"Venture building",
				"Founder performance",
				"Founder psychology",
				"Evidence-based decision-making"
			],
			"sameAs": [
				"https://www.linkedin.com/in/lenvanderhof/",
				"https://x.com/LenvanderHof",
				"https://www.youtube.com/channel/UCTG20buKqYYbitqqf7l3zJA",
				"https://www.instagram.com/Lenvanderhof/",
				"https://www.threads.com/@lenvanderhof",
				"https://github.com/Lenvanderhof",
				"https://huggingface.co/LPH98",
				"https://www.npmjs.com/~lenvanderhof",
				"https://www.goodreads.com/author/show/70983905.Len_P_van_der_Hof",
				"https://www.amazon.com/author/lenvanderhof",
				"https://www.bol.com/nl/nl/b/len-p-van-der-hof-msc/609879394/",
				"https://bsky.app/profile/lenvanderhof.com",
				"https://mastodon.social/@Lenvanderhof",
				"https://crates.io/users/Lenvanderhof",
				"https://cursor.com/@Lenvanderhof",
				"https://medium.com/@Lenvanderhof",
				"https://gitlab.com/Lenvanderhof",
				"https://hub.docker.com/u/lenvanderhof/",
				"https://dev.to/lenvanderhof",
				"https://www.facebook.com/Lenvanderhof",
				"https://soundcloud.com/Lenvanderhof"
			],
			"affiliation": [
				{
					"@id": "https://lenvanderhof.com/#publisher"
				},
				{
					"@id": "https://lenvanderhof.com/#mindsesh"
				},
				{
					"@id": "https://lenvanderhof.com/#lifestyle"
				}
			]
		},
		{
			"@type": "WebSite",
			"@id": "https://lenvanderhof.com/#website",
			"url": "https://lenvanderhof.com/",
			"name": "Len P. van der Hof",
			"description": "Len P. van der Hof, MSc, is a Dutch entrepreneur and AI innovator in Zwijndrecht. He builds ReasonKit, MindSesh, Undominated.ai, books under his name, the fiction imprint LPH98.lifestyle, and technology ventures through LPH98.ventures. Eleven titles in Systems for the Strategic Self are available now, in English and Dutch.",
			"inLanguage": [
				"en",
				"nl"
			],
			"publisher": {
				"@id": "https://lenvanderhof.com/#person"
			}
		},
		{
			"@type": "Organization",
			"@id": "https://lenvanderhof.com/#publisher",
			"name": "LPH98.ventures",
			"url": "https://lph98.ventures",
			"founder": {
				"@id": "https://lenvanderhof.com/#person"
			}
		},
		{
			"@type": "Organization",
			"@id": "https://lenvanderhof.com/#mindsesh",
			"name": "MindSesh",
			"url": "https://mindsesh.net",
			"founder": {
				"@id": "https://lenvanderhof.com/#person"
			}
		},
		{
			"@type": "SoftwareApplication",
			"@id": "https://lenvanderhof.com/#reasonkit",
			"name": "ReasonKit",
			"url": "https://reasonkit.sh",
			"creator": {
				"@id": "https://lenvanderhof.com/#person"
			}
		},
		{
			"@type": "SoftwareApplication",
			"@id": "https://lenvanderhof.com/#undominated",
			"name": "Undominated.ai",
			"url": "https://undominated.ai",
			"creator": {
				"@id": "https://lenvanderhof.com/#person"
			}
		},
		{
			"@type": "Organization",
			"@id": "https://lenvanderhof.com/#lifestyle",
			"name": "LPH98.lifestyle",
			"url": "https://lph98.lifestyle",
			"founder": {
				"@id": "https://lenvanderhof.com/#person"
			}
		},
		{
			"@type": "ImageObject",
			"@id": "https://lenvanderhof.com/en/blog/what-is-stack/#primaryimage",
			"url": "https://lenvanderhof.com/media/generated/blog-hero-stack-meaning-en.10a6aedba061.wide.webp",
			"contentUrl": "https://lenvanderhof.com/media/generated/blog-hero-stack-meaning-en.10a6aedba061.wide.webp",
			"representativeOfPage": true
		},
		{
			"@type": "BreadcrumbList",
			"@id": "https://lenvanderhof.com/en/blog/what-is-stack/#breadcrumb",
			"itemListElement": [
				{
					"@type": "ListItem",
					"position": 1,
					"name": "Home",
					"item": "https://lenvanderhof.com/"
				},
				{
					"@type": "ListItem",
					"position": 2,
					"name": "Blog",
					"item": "https://lenvanderhof.com/en/blog/"
				},
				{
					"@type": "ListItem",
					"position": 3,
					"name": "AI Systems",
					"item": "https://lenvanderhof.com/en/blog/category/ai-systems/"
				},
				{
					"@type": "ListItem",
					"position": 4,
					"name": "What is STACK? Five layers, not a vendor diagram",
					"item": "https://lenvanderhof.com/en/blog/what-is-stack/"
				}
			]
		},
		{
			"@type": "WebPage",
			"@id": "https://lenvanderhof.com/en/blog/what-is-stack/#webpage",
			"url": "https://lenvanderhof.com/en/blog/what-is-stack/",
			"name": "What is STACK? Five layers, not a vendor diagram",
			"description": "STACK is a five-layer architecture for repositories where humans and agents share work: Structure, Toolchain, Agent configuration, Connection, Knowledge and quality. It is not a vendor AI-stack slide.",
			"isPartOf": {
				"@id": "https://lenvanderhof.com/#website"
			},
			"primaryImageOfPage": {
				"@id": "https://lenvanderhof.com/en/blog/what-is-stack/#primaryimage"
			},
			"breadcrumb": {
				"@id": "https://lenvanderhof.com/en/blog/what-is-stack/#breadcrumb"
			},
			"inLanguage": "en-GB"
		},
		{
			"@type": "BlogPosting",
			"@id": "https://lenvanderhof.com/en/blog/what-is-stack/#article",
			"mainEntityOfPage": {
				"@id": "https://lenvanderhof.com/en/blog/what-is-stack/#webpage"
			},
			"headline": "What is STACK? Five layers, not a vendor diagram",
			"description": "STACK is a five-layer architecture for repositories where humans and agents share work: Structure, Toolchain, Agent configuration, Connection, Knowledge and quality. It is not a vendor AI-stack slide.",
			"datePublished": "2026-09-05T07:00:00.000Z",
			"dateModified": "2026-09-06T19:00:00.000Z",
			"author": {
				"@id": "https://lenvanderhof.com/#person"
			},
			"publisher": {
				"@id": "https://lenvanderhof.com/#person"
			},
			"image": [
				"https://lenvanderhof.com/media/generated/blog-hero-stack-meaning-en.10a6aedba061.square.webp",
				"https://lenvanderhof.com/media/generated/blog-hero-stack-meaning-en.10a6aedba061.landscape.webp",
				"https://lenvanderhof.com/media/generated/blog-hero-stack-meaning-en.10a6aedba061.wide.webp"
			],
			"articleSection": "AI Systems",
			"inLanguage": "en-GB"
		}
	]
}
```
