Kairn — AI skill for Claude Code
Context-aware knowledge engine for AI assistants.
How to install Kairn
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open primeline-ai/kairn and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Kairn does
Context-aware knowledge engine for AI assistants.
Alternatives in AI
- Context Engineering Intro — GitHub Repo stars Context engineering - the new way of AI coding assistants Context engineering guide 12.8k ★
- OpenContext — A personal context store for AI agents and assistants—reuse your existing coding agent CLI (Codex/Claude/OpenC 1.1k ★
- UnrealClaude — Claude Code CLI integration for Unreal Engine 5.7 - Get AI coding assistance with built-in UE5.7 documentation 524 ★
README
Kairn

Watch the 30-second tour on GitHub.
Context-aware knowledge engine for AI assistants.
**Status: pre-1.0.** In daily use since February 2026, with a test suite that runs on Linux, macOS and Windows (see [Development](https://github.com/primeline-ai/kairn/blob/v0.3.1/README.md#development)) and a published [LongMemEval-S benchmark](https://github.com/primeline-ai/kairn/blob/v0.3.1/README.md#benchmarks) (measured before 0.3.0). Interfaces may still change between releases until 1.0. Feedback and issues welcome.
Other tools give your AI a memory. **Kairn** gives it a knowledge graph with intelligent context routing. It knows what to load, when to load it, and how much - so your AI stays focused, not overwhelmed.
pip install kairn-ai
kairn init ~/brain
kairn serve ~/brain
Claude Code and Codex each take one line; `--init` creates `~/brain` and its database on first start, so this works even without `kairn init`:
claude mcp add kairn -- kairn serve --init ~/brain
codex mcp add kairn -- kairn serve --init ~/brain
Or install it as a one-click bundle, no Python setup required: download the `.mcpb` file from the [latest release](https://github.com/primeline-ai/kairn/releases/latest) and open it with a bundle-aware app such as Claude Desktop.
For other clients, see [Quick Start](https://github.com/primeline-ai/kairn/blob/v0.3.1/README.md#quick-start) below. New to Kairn? Jump to [First 5 Minutes](https://github.com/primeline-ai/kairn/blob/v0.3.1/README.md#first-5-minutes).
Install routes
| Route | Who it is for | Command |
|---|---|---|
| PyPI | anyone with Python, and every MCP client | pip install kairn-ai |
MCP Bundle (.mcpb) |
C |
Related Skills
Context Manager Intelligence
Cut what your coding agent re-sends. Cache-aware, zero-LLM context engine + local proxy for Claude Code, Codex
Jarkos Motion UI
Modular 7-theme canvas motion & glassmorphism UI engine with zero dependencies, AI-agent skill installer, desi
Membrane Memory
Temporal-aware, local-first, explainable memory engine for AI agents. Zero runtime dependencies, no telemetry,
Knowledge Distiller
AI agent skill that distills documents into temporally-aware structured knowledge graphs. Dual output: .knowle
Token Saver
Zero-cost token optimization engine for AI coding assistants (Claude Code, Cursor, Antigravity, Windsurf). Sav
TokenJar
Zero-cost token optimization engine for AI coding assistants (Claude Code, Cursor, Antigravity, Windsurf). Sav
Related Agents
Hatch3r Context Rules
Context-aware rules engine that applies coding standards based on file type, location, and project conventions
AI Search Researcher
Checks how AI assistants and search engines see a business (answer-engine visibility, crawler access, entity c
Reverse Salient Agent
Surfaces reverse-salient findings (Engine 1 Act 1) as F.0 Decision Gates with persona-aware framing. Sibling t