Local-first memory and governance kernel for AI coding agents. Provides shared memory, episodic archive, approval inbox for rules, generated instruction files, and deterministic policy guard to enforce standards across sessions.
Ships in delegate-team-agent-kernel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The memory backbone of delegate-team. A vendored, version-pinned copy of @mamdouh/[email protected] ships inside this repo at
agent-kernel/dist/cli.mjs. Installed by default with./install.sh --allin delegate-team v2.5.0+.
A single Node.js CLI (agent-kernel / ak) that gives every coding agent you use:
~/.agent-kernel/source/memories/*.json~/.agent-kernel/episodes/ (with search/show/stats)AGENTS.md (Claude Code / Codex / Cursor / OpenCode)CLAUDE.md.cursor/rules/00-agent-kernel.mdc.agents/agents.mdGEMINI.mdPreToolUse + PostToolUse, git pre-commit, optional CI guardagent_kernel_search_episodes, agent_kernel_read_episode,
agent_kernel_capture_episode, agent_kernel_sync_episodesrm -rf, curl|sh, force-push to main,
secret leaks, and any rule you adddelegate-team orchestrates many agents. Without a shared memory, each session starts cold — the same standards get repeated every conversation. agent-kernel solves that:
| Without agent-kernel | With agent-kernel |
|---|---|
| Standards repeated in every prompt | Standards live in ~/.agent-kernel/source/memories/*.json and auto-attach |
| Lost context after session end | Episodes saved locally; searchable later |
| Agent writes whatever rule it wants | Proposal inbox; you approve before publish |
Manual git commit may leak secrets | Pre-commit hook + agent-kernel guard --staged blocks |
| Different agents see different rules | One JSON-first source compiles to all platforms |
# One command — link + init + link the project + install hooks
./install.sh --kernel
# Or auto-installed via:
./install.sh --all
# Verify
agent-kernel doctor
agent-kernel status
After installation, in any project:
agent-kernel init --sync --enforce # First time in a project
agent-kernel link . --hooks # Link AGENTS.md + git hook
# Save a rule
agent-kernel remember "Never add local SQLite fallback to production Supabase apps." \
--type policy --level critical --tags supabase,database --publish
# Search episodes
agent-kernel episode search "SQLite fallback Supabase"
agent-kernel episode show <episode-id>
agent-kernel/
dist/cli.mjs # The CLI — single ~85KB ESM file
docs/ # 8 architecture + protocol docs
examples/ # CI guard workflow, sample memory rules, sample episode
develpment/ # Backlog + epics + milestones + sprint plan + backlog.json
LICENSE # MIT
README.md # Upstream README (verbatim)
scripts/build.mjs # Build script (not used here — cli.mjs is shipped pre-built)
SKILL.md # THIS FILE — Skills.sh manifest
install.sh # Local installer
wrapper.sh # Bash shim — prefers global agent-kernel, falls back to vendored
MEMORY.md # How delegate-team uses this for memory
VERSION # 0.0.5
| Agent | Memory source | Hook install | Compile target |
|---|---|---|---|
| Claude Code | ✅ via AGENTS.md + CLAUDE.md | ✅ ~/.claude/hooks/ | PreToolUse + PostToolUse |
| Codex | ✅ via AGENTS.md | n/a (read-only) | AGENTS.md |
| Cursor | ✅ via .cursor/rules/00-agent-kernel.mdc | n/a | .mdc rule |
| OpenCode | ✅ via AGENTS.md | n/a | AGENTS.md |
| Antigravity | ✅ via .agents/agents.md | n/a | .agents/ |
| Gemini CLI | ✅ via GEMINI.md | n/a | GEMINI.md |
| 60+ others | ✅ see Skills.sh index | depends on agent | via AGENTS.md |
Memory layout: fully backward compatible with v0.0.1 (auto-migrates flat files via
agent-kernel migrate json --publish).
| Path | When |
|---|---|
Global npm install -g @mamdouh/agent-kernel (when published) | Preferred when user wants the latest |
Vendored at agent-kernel/dist/cli.mjs | Default with delegate-team — guaranteed version match |
npx -y agent-kernel | One-off use, no install |
The wrapper.sh shim picks the right one:
agent-kernel on $PATH → use it (user's preferred version)node agent-kernel/dist/cli.mjs works → use vendored copyinstall.shMEMORY.md — how delegate-team uses agent-kernel for the /apeiron memory layerdocs/MEMORY_PROTOCOL.md — rule + episode data modeldocs/MCP_SERVER.md — MCP tool definitions for non-CLI integrationdocs/EPISODIC_MEMORY.md — episode sync from Claude/Codex JSONL transcriptsdocs/STRICT_MODE.md — when to flip --enforcedocs/JSON_FIRST_STORAGE.md — storage schemaMIT (© Mamdouh Aboammar) — upstream agent-kernel v0.0.5.
https://github.com/imMamdouhaboammar/delegate-team/tree/master/agent-kernel
LICENSE (opens in a new tab)MEMORY.md (opens in a new tab)README.md (opens in a new tab)VERSION (opens in a new tab)develpment/BACKLOG.md (opens in a new tab)develpment/EPICS.md (opens in a new tab)develpment/MILESTONES.md (opens in a new tab)develpment/README.md (opens in a new tab)develpment/RELEASE-GATES.md (opens in a new tab)develpment/SPRINT-PLAN.md (opens in a new tab)develpment/backlog.json (opens in a new tab)dist/cli.mjs (opens in a new tab)docs/ARCHITECTURE.md (opens in a new tab)docs/EPISODIC_MEMORY.md (opens in a new tab)docs/INTEGRATIONS.md (opens in a new tab)docs/JSON_FIRST_STORAGE.md (opens in a new tab)docs/MCP_SERVER.md (opens in a new tab)docs/MEMORY_PROTOCOL.md (opens in a new tab)docs/STRICT_MODE.md (opens in a new tab)examples/github-agent-kernel-guard.yml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/delegate-team-agent-kernel:agent-kernelfrom delegate-team-agent-kernel
npx claudepluginhub immamdouhaboammar/delegate-team --plugin delegate-team-agent-kernel2 plugins in one repository ship this exact skill · first indexed Jul 17, 2026