Context Monorepos
I spent all day on a “context monorepo” - docs, oss libs, examples, a bunch of repos, context handoffs from a similar project, cost calculations, and important decisions being made about my product (composed of multiple projects).
Composer 2.5 orchestrated most of the structure - which was nice and fast.. GPT-5.5 for anything more involved.
I don’t know how productive this is, but it feels good, and now I’m confident launching agents in here to build across the real code and over longer periods without getting too lost. I’m pretty much a big “memory” hater (the RAG flavor or session scrapers) and admittedly failed at this type of thing in the past.
I’d rather own my context & don’t like things happening behind the scenes that I have no control over or awareness of. Agents and AI are already too much of a black box and I’m trying to engineer real shit.
But I strayed from this kind of auxiliary context work I was doing heavy last summer. I’d built false confidence that an agent with proper surrounding context could operate over longer periods on their own. They weren’t reliable enough, and managing context added to the exhaustion of managing agents. So I handheld them for months. Better long-horizon models, dynamic workflows, and Fable have started shifting things back. I can handhold agents less and focus more on the surrounding context again.
I think this is going to be a thing, and being able to share context monorepos outside GitHub will matter too. The whole repo is an asset. It looks simple, but there’s real mapping and accountability across the AGENTS.md files and symlinked CLAUDE.mds Plus a bunch of management of internal git repos
I don’t see how Linear or Notion ever become this. They think they are, and maybe they get there if you move your whole workflow onto their platforms. But this is so intimate to the actual engineering process that I think it either needs new infrastructure.
I don’t think somebody else’s verbose skill framework is gonna get you there either. This is always gonna be dependent on the thing you’re building.
I 100% don’t think it’s any flavor of current memory solutions. No RAG, no auto learning. There is inherently graph structure in a mapped monorepo, but this does not call for graph databases.
Here’s an example of what a root-level AGENTS.md looks like, generalized to remove proprietary info. This particular product integrates with coding agents through hooks, skills, and MCP, so you’ll see folders for those. Your context monorepo will reflect whatever your product actually touches.
You are in the meta-operating layer of my-product.
# Metaoperational Repo Organization
This directory is the meta-operating layer monorepo.
> **Not a git repo.** This top-level meta layer is intentionally *not* version<br>> controlled. It is an organizing workspace that *contains* many independent git<br>> repos (vendored OSS under `research/`, and the actual product repos under<br>> `projects/`, each with their own `.git` and worktrees). Don't `git init` here.
It organizes the decisions (`decisions/`), the thinking/planning/research (`research/`),<br>and the building (`projects/`) that produce my-product.
```<br>my-product/ # meta-operating layer (you are here)<br>├── AGENTS.md # (this) operating doc: what we're building + how this repo is run<br>├── decisions/ # final architectural decision records<br>│ └── adrs/ # one file per decision, numbered<br>├── research/ # thinking: notes, specs, oss repos, and investigations feed projects/<br>│ ├── design/ # product, marketing, design<br>│ │ ├── positioning/ # commercial wedge, category, copy<br>│ │ └── ui/ # portal UI patterns, handoffs, visual assets<br>│ ├── integration/ # how my-product relates to other systems (not full arch copies)<br>│ │ └── parent-platform/ # platform refs + alignment notes (draft)<br>│ ├── scratch_docs/ # working architecture drafts<br>│ ├── finance/ # cost calculations, pricing models, unit economics scripts<br>│ │ └── d1_cost_projection.py # e.g. D1 row reads/writes at scale vs provisioned pricing<br>│ ├── frontend/ # portal UI: vendored editors, components, interaction patterns<br>│ │ └── markdown-editor/ # live-preview markdown editor<br>│ ├── infra/ # architecture, infrastructure (vendored OSS below)<br>│ │ ├── cloud-platform/ # runtime docs, distilled skills refs, framework guides<br>│ │ ├── auth-provider/ # auth/session docs, SDK, example<br>│ │ ├── web-framework/ # core, middleware, starters, + full docs site (website/)<br>│ │ ├── orm/ # ORM source monorepo<br>│ │ └── spikes/ # our spikes at top level; imported/ holds spikes from other projects<br>│ ├── agents/ # details about how each agent host works (+ MCP/auth specs)<br>│ ├── cli/<br>│ │ └── hooks/ # per-agent hooks/plugins docs + sync script (see AGENTS.md)<br>│ └── skills/ # Agent Skills format, CLI, examples, authoring (vendored repos)<br>│ ├── skill-spec/ # open skill spec + docs<br>│ ├── skills-cli/ # skills CLI + ecosystem<br>│ ├── scaffold-skill/ # meta-skill for writing/packaging skills<br>│ ├── example-skills/ #...