AI Systems Research guide

The Agentic Codebase: Version the Agent OS Like You Version the App

Prompts in chat are not architecture. Scattered rules are not governance. STACK turns your repository into a maintainable agent operating system.

Cover of The Agentic Codebase by Len P. van der Hof
Production-grade architecture for repositories where agents work.

You can demo an agent in an afternoon.

You can regret it in six months.

Prompts live in chat history. Rules are copy-pasted across five tools. MCP servers sprawl without contracts. Skills exist but nobody knows which agent loads them. “Vibe coding” ships until the repository becomes unnavigable for humans and machines.

That is not a model problem first.

That is agentic repo debt.

The Agentic Codebase names the disease and installs the cure.

The thesis that cuts through tool noise

Agents do not fail only because models are weak.

They fail because repositories, rules, and tool contracts were never designed for machine collaborators.

So stop treating the agent surface as disposable chat.

Version the agent OS like you version the app.

STACK: five layers, one maintainable system

STACK is the architecture:

  1. Structure — the repo tree agents and humans can both navigate.
  2. Toolchain — shells, runners, and deterministic workflows that do not rot.
  3. Agent configuration — AGENTS.md / CLAUDE.md, rules, skills, roles, and charters that agree.
  4. Connection layer — MCP and integrations with contracts, not hope.
  5. Knowledge and quality — memory, evals, hooks, CI gates, and regression discipline.

Five layers.

One operating system for agent work.

What you can ship after reading

Not vibes. Artifacts.

  • a coherent agent instruction surface across tools
  • skill packages that are discoverable and owned
  • MCP tool contracts that fail closed when wrong
  • hooks and evals that catch regressions before users do
  • a STACK audit you can run on a brownfield repo this week

This is software engineering applied to the agent instruction plane.

Who this book is for

  • the staff engineer whose team uses Claude Code three incompatible ways
  • the founder shipping agent features into a real product
  • the platform lead standardizing AI coding practice
  • the maintainer who inherited CLAUDE.md, .cursorrules, and AGENTS.md that disagree
  • the operator who already read the strategy book and now needs the implementation layer

If you want a one-tool tour, this will feel rigid.

If you want production survival, that rigidity is the product.

Series context without soft cross-sell fog

  • AI Agents for Startup Strategy answers where agents earn a place.
  • The Agentic Author shows gated production for knowledge work.
  • The Agentic Codebase hardens the repository those agents live in.

Different layer. Same seriousness.

Buy the edition your team will actually use

Open the book page →

English editions (Amazon.com)

FormatLink
KindleBuy English Kindle
PaperbackBuy English paperback
HardcoverBuy English hardcover

Dutch editions (Amazon.nl)

FormatLink
KindleKoop Nederlandse Kindle
PaperbackKoop Nederlandse paperback
HardcoverKoop Nederlandse hardcover

Dutch page: boeken/the-agentic-codebase.

Close the loop

Vibe coding is real.

Without a lane, it is a path to repo rot.

Name the lane. Instrument the gate. Keep the agent OS versioned.

Frequently asked questions

Is The Agentic Codebase a Cursor or Claude Code tutorial?

No. It is cross-tool architecture for agentic repositories. Tool names change; STACK principles are designed to outlast them.

What does STACK stand for?

Structure, Toolchain, Agent configuration, Connection layer, Knowledge and quality — five layers every agentic codebase must get right.

Who should read this book?

Technical founders, staff engineers, engineering managers, and maintainers who need agent work to survive production, not just demo day.

How does this relate to AI Agents for Startup Strategy?

Strategy decides where to deploy agents. The Agentic Codebase is the implementation layer: how the repository runs them safely and repeatably.

Which editions can I buy?

English and Dutch Kindle, paperback, and hardcover editions via Amazon, with full links on the book page and in the buy grid below.

Sources

  1. The Agentic Codebase — book page · Lenvanderhof.com
  2. English Kindle listing · Amazon

Further reading