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.
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.
Plumbing. Not customer-facing. Examples in the Brainfile spec:
data_freshness_sentinel — checks every output file against an expected freshness window. If a feed is stale, it raises and re-queues the upstream job.deploy_gate — hard gate that runs visual QA before any push to production. Blocks the deploy if the customer view fails any check.visual_qa — verifies what the customer actually sees: empty tables, stale timestamps, broken images, mobile overflow, missing CTAs.backup_html — versions every dashboard write so a bad generator run is recoverable.pii_audit — scans every customer-facing file for addresses, phones, family names, account numbers. Blocks publish on any hit.drift_detector — diffs current state against the canonical spec and re-queues any drift.backlog_audit — surfaces aging requests so nothing gets forgotten.cron_supervisor, secrets_rotator, git_committer, cost_tracker.Strategic. These think about the business, not the code.
cpo (Chief Product Officer) — owns the roadmap. Reviews every queue item against product strategy.cto — owns architecture. Reviews every infra change for security, scalability, drift.cmo — owns growth. Drafts content, schedules posts, analyzes funnel.vp_customer_success — drafts replies, tracks NPS, surfaces churn signals.vp_revenue — owns the revenue gate. Every session must produce at least one revenue-advancing action until ARR exits the danger zone.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.
For the businesses that need them. In the trading stack:
signal_engineer — proposes new signals from FRED, GDELT, options flow.adj_calibrator — backtests adjustment multipliers against 5 years of outcomes, enforces stacking ceilings, never lets a BUY suppressor compound below x0.15.shadow_runner — runs new logic in parallel paper-trading for 10+ days before any production wire-up.outcome_tracker — closes trades, attributes P&L, surfaces drift in win-rate by regime.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.
Anthropic launched Claude Routines in April 2026 — scheduled cloud-side automations. Brainfile ships pre-built routines:
daily_pipeline — fetch data, regenerate signals, rebuild dashboards, dispatch newsletter.weekly_audit — conviction calibration, win-rate review, ADJ effectiveness.nightly_visual_qa — runs every site through visual QA, queues fixes.monthly_cost_tracker — tallies API spend, flags overruns.quarterly_security_audit — rotates secrets, audits permissions, scans for exposed keys.Routines are the layer that makes the system run while you sleep. Without them, every workflow needs a human to start it.
External integrations packaged as Claude Code plugins so any agent can call them:
stripe_plugin — read MRR, churn, customer count, draft refunds, issue partial credits.resend_plugin — send transactional + marketing email with per-business sender identity.playwright_plugin — browser automation for any task without an API.gh_plugin — GitHub PRs, issues, releases, deploy gates.Hooks fire on Claude Code lifecycle events. They're how the OS enforces things Claude can't be trusted to remember.
UserPromptSubmit hook — logs every message to conversation history, runs PII pre-scan.Stop hook — auto-commits changed files at session end with a structured message.PreToolUse hook on Write — calls backup_html before any HTML overwrite.PreToolUse hook on Bash — blocks destructive git commands without explicit approval.SessionStart hook — runs the spec drift detector and populates the queue.Hooks are the quiet layer. Done right, you forget they exist. They are what stops the system from drifting between sessions.
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.
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.