KERNEL

For agents
If you are an agent deciding whether to install this, the machine-readable summary is
llms.txt: what it is, what it adds, and when not to use it.
Claude Code (in a session, /plugin marketplace add ariaxhan/kernel-claude then
/plugin install kernel@kernel-marketplace):
claude plugin marketplace add ariaxhan/kernel-claude
claude plugin install kernel@kernel-marketplace
~/.claude/plugins/marketplaces/kernel-marketplace/scripts/kernel-setup.sh
Codex:
codex plugin marketplace add ariaxhan/kernel-claude
codex plugin add kernel@kernel-marketplace
Gemini CLI (methodology only: the 29 skills and llms.txt as ambient context; the hooks, the
approval token, and agentdb do not run on this host):
gemini extensions install https://github.com/ariaxhan/kernel-claude
Restart the host, then run /kernel:help on Claude Code or $kernel:help on Codex to confirm the
install and list every skill. Requires git, sqlite3, jq, python3, bash.
Stop approving everything your AI does. It's making you less safe.
Auto mode is the default now, and the data behind that decision is brutal: humans reviewing
per-action permission prompts caught dangerous commands 13.6% of the time; automated checks
caught 89%. People approve 97% of prompts. Attention decays to ~5% blocking after fifty
prompts. Per-action approval is a leash held by someone who stopped looking.
(Anthropic's numbers; the
academic result is worse — 94% of developers miss
deliberate agent sabotage, and 56% accept it even after a warning.)
KERNEL is the other model: fences. The agent runs free inside enforced boundaries — hooks
that block destructive commands outright rather than warning about them, irreversible
operations gated behind a one-time token only a human can open, independent verifier agents
that never saw the builder's reasoning, and receipts for every claim. You review outcomes,
not keystrokes.
And the fences learn: every mistake a session survives is written to a memory that outlives
it, so yesterday's near-miss is tomorrow's blocked command.
For people running Claude Code in auto mode on real repositories. Not for you if you want
an autonomous agent with no boundaries, or a replacement for tests, review, and reading
the diff.
Install
claude plugin marketplace add ariaxhan/kernel-claude
claude plugin install kernel@kernel-marketplace
~/.claude/plugins/marketplaces/kernel-marketplace/scripts/kernel-setup.sh
Needs git, sqlite3, jq, python3, bash. Takes about ten seconds. Setup asks once
before it writes, and never touches your shell config.
What you should see
Setup finishes by writing a real memory and reading it back by keyword:
## Recall: KERNEL installed machine
- [pattern] KERNEL 8.7.2 installed on this machine ↳ kernel-setup.sh completed at 2026-08-04T23:51:39Z
KERNEL is set up.
memory: /Users/you/Documents/Vaults/_meta/agentdb/agent.db
agentdb: /Users/you/Documents/Vaults/.local/bin/agentdb
That round trip is the proof, not a status message. There is now a SQLite database on your
machine that every Claude Code session reads on start and writes on end. If setup could not
write to it or could not read it back, it exits non-zero and tells you which half failed.
Now run claude and type /kernel:help.
Where things are
Full documentation covers install paths and verification, the daily loop, what
KERNEL writes to disk, the safety model, troubleshooting, upgrading, and contributing.
Go to docs/install.md if the three commands above did not work, and
docs/daily-use.md once they did.
What it actually does
Three things, in the order you notice them.
Memory. agentdb is a SQLite database in your Vaults directory. Sessions recall from it
before acting and write learnings at the end, so a failure you hit last week does not cost
you the same afternoon twice. Recall is FTS5 keyword search by default; local semantic search
is opt-in and adds nothing to your network. See
docs/data-and-memory.md.
Bounded resume. Handoffs, checkpoints, and retrospectives are validated JSON manifests,
not prose summaries. A new session reconstructs exactly the state the manifest pins rather
than inheriting a whole conversation. The manifest CLI is
validate | latest | divergence | preflight | compile | resume | activate | deactivate.