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

On April 13, Andrej Karpathy pushed a CLAUDE.md repo to GitHub. By the end of the day it had 5,828 stars. Two weeks later it crossed 66,000. 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.

That's what Brainfile is. Below are the 7 layers, with concrete examples from the production stack I run six companies on.

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 in the Brainfile spec:

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. Brainfile ships 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. Brainfile ships pre-built 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 $99/mo 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 — the full Claude OS

All 7 layers wired together. 11 infra agents, 5 C-suite, 4 algo, 30+ skills, 15+ routines, 4+ plugins, 5+ hooks. You install it in your repo, point it at your Stripe + Resend + domain, and it runs.

$99/month. First 100 customers get a permanent founder rate.

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 $99/mo 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.