Kanerva — AI skill for Claude Code
Long-term memory for coding agents: Claude Code, Codex, OpenCode, OpenClaw, Copilot, Cursor and more.
How to install Kanerva
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open katolikov/kanerva and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Kanerva does
Long-term memory for coding agents: Claude Code, Codex, OpenCode, OpenClaw, Copilot, Cursor and more. Local SQLite, no LLM calls, hard token budget. Your agent remembers decisions, commands and fixes across sessions, and gets only what the current step needs.
Alternatives in AI
- Hindsight — State-of-the-art long-term memory for AI agents by Vectorize 6.7k ★
- Nocturne Memory — A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents 1.3k ★
- Iai Personal Memory Engine — A cyber brain for your AI 866 ★
README
Coding agents start every session from zero. You explain the test command again, the deploy steps again, the bug you already fixed last week. Memory tools help, but most of them paste the top few similar notes into your context, whatever those notes cost and whether or not they are still true.
**Kanerva gives your agent long-term memory that runs on your machine, makes no LLM calls, and injects only what the current step needs, under a hard token budget.**
- Small context. You set the budget in tokens, and Kanerva picks the set of notes worth the most per token. Plugins estimate tokens instead of counting them exactly, so treat the limit as close, not exact.
- Facts stay current. Give a fact a key, or write a near-identical note, and the new version replaces the old one. Old versions stay in history, and every note shows its date, newest first.
- Private by default. One SQLite file in your home folder. No account, no cloud, no API key. Known key and token formats are redacted before anything is stored.
- No extra model calls. No LLM on write or read, so memory costs you the tokens it injects, plus one short agent turn when a session with real work ends. You can turn that off.
- Fits your tools. Plugins for Claude Code, Codex, OpenCode, Copilot CLI and more, plus an MCP server for everything else. The table says which ones have been run.
Install
You
Related Skills
Token Goat Mem
Local-first long-term memory for AI coding agents (Claude Code, Copilot, Codex): durable facts with trust leve
Muster Code
Muster Agent — the AI coding agent desktop app that remembers. Claude Code, Codex, OpenCode and local models i
Echomind Memory.Skill
An AI Multi-Agent memory system that remembers your code style, fixes, and preferences — for Hermes-Agent.Open
Memora Customersupportagent
AI customer-support agent with persistent, long-term customer memory. Built with Next.js, Anthropic's Claude,
Muster MCP
Rust core + MCP server for running many LLM agents in parallel without blowing your token budget — hard budget
Enfold
Enfold. Every memory enfolds the whole. Local, private long-term memory for AI agents: one SQLite brain shared
Related Agents
Developer Overview
code-container (container) creates isolated Docker environments for AI coding harnesses (Claude Code, OpenCode
Consult Agent
Execute cross-tool AI consultations via Task spawning. Use when agents or workflows need a second opinion from
Budgeter
Resource gatekeeper. Other agents must call the budgeter before launching long-running training, expensive LLM