katolikov

Kanerva — AI skill for Claude Code

AI community

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

Kanerva: long-term memory for coding agents

License: Apache-2.0 Python 3.10+ Tests

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