The 7 layers of a Claude OS — Karpathy proved CLAUDE.md is the product. Brainfile is what comes next.

By Eric Palmer · Founder · Published April 21, 2026

In January 2026 a developer published andrej-karpathy-skills, a single CLAUDE.md built from Andrej Karpathy's notes on LLM coding pitfalls (GitHub: created 2026-01-27; more than 200,000 stars when checked on 2026-10-08). The repo was not a model. It was not an algorithm. It was an instruction file.

The signal is clear: the instruction file is the product. I wrote about that here. But a CLAUDE.md alone is the seed, not the tree. To actually run a business with Claude Code — collect payments, ship dashboards, send emails, monitor pipelines, gate deploys — you need an entire operating system around the instruction file.

Below are the 7 layers, with concrete examples from the production stack I run my companies on. Brainfile packages the parts of it you can run in your own repo; the box at the end lists exactly what it ships today, and nothing else is sold.

Why "OS" is the right metaphor

An OS coordinates resources, enforces policies, isolates failures, and presents a clean API to the user. Claude Code by default does none of that. It just executes prompts. Without an OS layer, you end up with: contradictory rules, duplicated agents, no version control, no gating, no observability, no routines, no shared state.

The 7 layers below are what turn a single instruction file into a system that runs while you sleep.

Layer 1 — Infrastructure agents 11 agents

Plumbing. Not customer-facing. Examples from our own system:

Layer 2 — C-Suite agents 5 agents

Strategic. These think about the business, not the code.

These run on a weekly cadence. They write strategic briefs. They populate the priority queue with what the founder is not asking for but should be.

Layer 3 — Algo specialists 4 agents

For the businesses that need them. In the trading stack:

Layer 4 — Skills 30+ skills

Karpathy's repo is mostly skills — small, composable, single-purpose. Our own system runs skills for:

Skills are the most reusable layer. The same landing_page_copy skill ships across all six businesses; only the inputs change.

Layer 5 — Routines 15+ routines

Anthropic launched Claude Routines in April 2026 — scheduled cloud-side automations. Our own system runs routines:

Routines are the layer that makes the system run while you sleep. Without them, every workflow needs a human to start it.

Layer 6 — Plugins 4+ plugins

External integrations packaged as Claude Code plugins so any agent can call them:

Layer 7 — Hooks 5+ hooks

Hooks fire on Claude Code lifecycle events. They're how the OS enforces things Claude can't be trusted to remember.

Hooks are the quiet layer. Done right, you forget they exist. They are what stops the system from drifting between sessions.

Why this matters now

A CLAUDE.md without an OS around it is a wish. A Claude OS without a CLAUDE.md is plumbing without purpose. You need both.

The market is going to converge on this shape. My lean AI stack works because Claude Code is the substrate; the OS layer is what makes the substrate usable for a real business. Open-source repos prove the demand. Hosted services like GBrain prove the willingness to pay for "managed." Brainfile is positioned as the productized middle: closed-source configs, customer runs in their own environment, no compute cost to us, your data stays yours.

Get Brainfile

Brainfile — what ships today

One command pulls it into your repo as plain markdown you own: an interview that writes your personal Brainfile from 10 quick questions, the Autopilot run protocol, a never-empty backlog, a ledger that tracks every ask until it is done, an end-of-run brief, and a weekly freshness feed. Pro adds 15 role packs.

Free for 30 days, no card. Then Basic $19/mo or Pro $99/mo.

Install Brainfile →

Closed-source configs, customer runs in their own Claude Code environment. No compute cost to us. Your data, your repo, your control.

Related reading: Karpathy validated the entire thesis — here's the CLAUDE.md I use · The lean AI stack that replaced 4 analyst subscriptions.

Eric Palmer is the founder of Brainfile and five other AI-native companies. He runs them all from one Claude Code setup using the 7-layer OS described above.

Not ready to start? Stay in the loop.

A practical Claude Code tip every Tuesday and Thursday, plus a Sunday recap of the week. Free.

Or start the 30-day free trial — no card required.