Skip to content
← Return to entry

Kernel · online

An AI that checksits own work.

BrainOS is a Python kernel that keeps agents honest. It names what counts as proof before the work starts, ties every claim to the source it came from, and refuses to close a task that doesn’t check out. The animation below walks the loop. The real kernel runs on my machine and fires on every Claude session via a SessionStart hook.

brainos · loop
idle
trace
readyawaiting task
8 commands · one loop
8
CLI commands
cover the loop
0%
claims closed
without a source
every
Claude session
hook fires
fail-open
errors never block
empty inject, exit 0

What you just watched.

An illustrated walk through the loop. The real kernel runs as the brainos CLI on your machine; this animation shows the eight steps a single task takes through it. No claim survives without a source it can point to, and the loop only closes when the proof bar it set up front is met.

01
scope
Name the task and what done looks like.
02
route
Pick where the answer should come from.
03
claim
State exactly what's being asserted.
04
source
Bind the claim to the origin it came from.
05
check
Test the claim against that source.
06
gate
Does it clear the proof bar set in step 1?
07
witness
Stamp a receipt anyone can re-verify.
08
close
Close — only if the work checks out.

What BrainOS does today.

Plain facts, all currently true:

  • · Python kernel at C:\tmp\brainos-kernel · CLI exposed as brainos
  • · Wired into Claude Code via a global SessionStart hook in ~/.claude/settings.json — fires on every session, every directory, since 2026-05-26
  • · Per-project context injection: resolves cwd against profiles/*.json · match → injects North Star, Inherited Rules, Forbidden Actions
  • · Inherited Rules are proof-gated: recorded via brainos learn, only kept when a check confirms they helped
  • · Fail-open contract: any error → emits nothing, exits 0, never blocks a session
  • · CLI surface: classify · plan · ingest · claim · propose · close · query · brief

Built by Zac Gibson. Python kernel at C:\tmp\brainos-kernel. Wired into Claude Code via a global SessionStart hook — fires on every session, every directory, since 2026-05-26. Smoke + stress + arena tests passing. The eight CLI commands (classify · plan · ingest · claim · propose · close · query · brief) cover the loop.

Anthropic
Claude
Gemini
xAI / Grok
TypeScript
Python
PowerShell
React
TanStack
Astro
Tailwind CSS
Vite
Node.js
Three.js
Radix UI
shadcn/ui
Supabase
PostgreSQL
Drizzle ORM
Express
Stripe
Firebase
Resend
Cloudflare
Vercel
Sentry
GitHub
VS Code
Unreal Engine / UEFN
UiPath
Anthropic
Claude
Gemini
xAI / Grok
TypeScript
Python
PowerShell
React
TanStack
Astro
Tailwind CSS
Vite
Node.js
Three.js
Radix UI
shadcn/ui
Supabase
PostgreSQL
Drizzle ORM
Express
Stripe
Firebase
Resend
Cloudflare
Vercel
Sentry
GitHub
VS Code
Unreal Engine / UEFN
UiPath