cd /news/ai-agents/context-monorepos Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-29557] src=backnotprop.com β†— pub= topic=ai-agents verified=true sentiment=↑ positive

Context Monorepos

A developer spent a day building a 'context monorepo' to organize docs, open-source libraries, examples, and decisions for a multi-project product, using Composer 2.5 and GPT-5.5. The approach aims to give agents reliable context for long-horizon tasks without relying on memory solutions like RAG, which the developer criticizes as opaque. The developer believes this infrastructure, shared outside GitHub, will become essential for engineering with AI agents.

read5 min views1 publishedJun 16, 2026

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.


This directory is the meta-operating layer monorepo.

> **Not a git repo.** This top-level meta layer is intentionally *not* version
> controlled. It is an organizing workspace that *contains* many independent git
> repos (vendored OSS under `research/`, and the actual product repos under
> `projects/`, each with their own `.git` and worktrees). Don't `git init` here.

It organizes the decisions (`decisions/`), the thinking/planning/research (` research/`),
and the building (`projects/`) that produce my-product.

my-product/ # meta-operating layer (you are here) β”œβ”€β”€ AGENTS.md # (this) operating doc: what we're building + how this repo is run β”‚ β”œβ”€β”€ decisions/ # final architectural decision records β”‚ └── adrs/ # one file per decision, numbered β”‚ β”œβ”€β”€ research/ # thinking: notes, specs, oss repos, and investigations feed projects/ β”‚ β”œβ”€β”€ design/ # product, marketing, design β”‚ β”‚ β”œβ”€β”€ positioning/ # commercial wedge, category, copy β”‚ β”‚ └── ui/ # portal UI patterns, handoffs, visual assets β”‚ β”œβ”€β”€ integration/ # how my-product relates to other systems (not full arch copies) β”‚ β”‚ └── parent-platform/ # platform refs + alignment notes (draft) β”‚ β”œβ”€β”€ scratch_docs/ # working architecture drafts β”‚ β”œβ”€β”€ finance/ # cost calculations, pricing models, unit economics scripts β”‚ β”‚ └── d1_cost_projection.py # e.g. D1 row reads/writes at scale vs provisioned pricing β”‚ β”œβ”€β”€ frontend/ # portal UI: vendored editors, components, interaction patterns β”‚ β”‚ └── markdown-editor/ # live-preview markdown editor β”‚ β”œβ”€β”€ infra/ # architecture, infrastructure (vendored OSS below) β”‚ β”‚ β”œβ”€β”€ cloud-platform/ # runtime docs, distilled skills refs, framework guides β”‚ β”‚ β”œβ”€β”€ auth-provider/ # auth/session docs, SDK, example β”‚ β”‚ β”œβ”€β”€ web-framework/ # core, middleware, starters, + full docs site (website/) β”‚ β”‚ β”œβ”€β”€ orm/ # ORM source monorepo β”‚ β”‚ └── spikes/ # our spikes at top level; imported/ holds spikes from other projects β”‚ β”œβ”€β”€ agents/ # details about how each agent host works (+ MCP/auth specs) β”‚ β”œβ”€β”€ cli/ β”‚ β”‚ └── hooks/ # per-agent hooks/plugins docs + sync script (see AGENTS.md) β”‚ └── skills/ # Agent Skills format, CLI, examples, authoring (vendored repos) β”‚ β”œβ”€β”€ skill-spec/ # open skill spec + docs β”‚ β”œβ”€β”€ skills-cli/ # skills CLI + ecosystem β”‚ β”œβ”€β”€ scaffold-skill/ # meta-skill for writing/packaging skills β”‚ β”œβ”€β”€ example-skills/ # production skill examples β”‚ └── skills-knowledge-transfer.md β”‚ └── projects/ # building: actual shippable codebases (one dir per repo) β”œβ”€β”€ my-product/ # the core system β”‚ └── worktrees/ # git worktrees, one branch per dir β”‚ └── main/ └── my-product-cli/ # the CLI that drives the core system └── worktrees/ └── main/


## Key reference paths

Vendored OSS docs/source for the stack in `research/scratch_docs/draft_arch.md`.
All paths are relative to repo root.

- **Architectural decision records:** `decisions/adrs/`
- **Web framework RPC (typed client):** `research/infra/web-framework/website/docs/guides/rpc.md`
- **Web framework full docs site:** `research/infra/web-framework/website/docs/` (guides, helpers, validation, testing)
- **Web framework core + middleware source:** `research/infra/web-framework/core/`, `research/infra/web-framework/middleware/`
- **ORM source + DB driver:** `research/infra/orm/`
- **Cloud platform DB docs:** `research/infra/cloud-platform/db_docs/`
- **Cloud platform cache API:** `research/infra/cloud-platform/workers_docs/runtime-apis/cache/index.md`
- **Cloud platform distilled skills:** `research/infra/cloud-platform/skills/references/`
- **Auth provider docs / SDK:** `research/infra/auth-provider/docs/`, `research/infra/auth-provider/sdk/`
- **Agent/MCP auth:** `research/agents/remote-mcp-auth/`, `research/agents/agentic-auth/`
- **Agent hooks / plugins (10 hosts):** `research/cli/hooks/` β€” URL map, `sync_hooks_docs.py`, captured docs in `captured/`; re-vet periodically
- **Imported platform spikes (not ours):** `research/infra/spikes/imported/` β€” see `research/infra/spikes/AGENTS.md`
- **Portal markdown editor:** `research/frontend/markdown-editor/`; see `research/frontend/AGENTS.md`
- **Agent Skills (format + tooling):** `research/skills/` β€” spec, CLI, authoring, examples; see `research/skills/AGENTS.md`
- **Commercial positioning:** `research/design/positioning/`
- **Platform integration:** `research/integration/parent-platform/` β€” `REFERENCES.md` (canonical docs elsewhere), `alignment-notes.md` (draft); see `research/integration/AGENTS.md`
- **Standalone architecture (draft):** `research/scratch_docs/draft_arch.md`

> Gaps not yet vendored: **ORM narrative docs** (hosted on their docs site, not in this repo).
── more in #ai-agents 4 stories Β· sorted by recency
── more on @composer 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/context-monorepos] indexed:0 read:5min 2026-06-16 Β· β€”