The Problem
Every time you start a new conversation with your AI copilot, it forgets everything.
- π You repeat the same context about your project, your team, your standards
- π€· The copilot makes mistakes you've already corrected in past sessions
- π Your policies, specs, and business rules sit in files the copilot never sees
- π§ Decisions and rationale from past conversations are lost forever
Copilots are powerful β but they have amnesia.
The Solution
Kahuna gives your copilot a persistent memory that grows smarter over time.
| Without Kahuna | With Kahuna |
|---|---|
| Copilot starts fresh every session | Copilot remembers what it learned |
| You repeat context manually | Context surfaces automatically |
| Knowledge lives in your head | Knowledge lives in a structured KB |
| Decisions are forgotten | Decisions persist across sessions |
How it works: Kahuna runs as an MCP server alongside your copilot. You teach it your context once β policies, specs, decisions, patterns β and it proactively surfaces the right knowledge for each task.
π All data stays local. Your code and context never leave your machine.
Quickstart (Claude Code)
Step 1: Add Kahuna to Claude Code
claude mcp add kahuna -s user -e ANTHROPIC_API_KEY="your-anthropic-api-key" -- npx @aurite-ai/kahuna
Scope options:
-s projectβ Config stored for current project only-s userβ Config stored globally (available across all projects)
Step 2: In any project, tell your copilot:
"Set up Kahuna"
This deploys copilot rules and runs onboarding. The copilot asks a few questions to understand your context β this only happens once.
Step 3: Start teaching it your context:
"learn ~/Downloads/api-guidelines.pdf"
"learn the docs/ folder"
Step 4: Start working β Kahuna surfaces the right context automatically.
"build a customer support agent"
Kahuna feeds your copilot your API conventions, auth patterns, and related context. No reminders needed.
npm (Global Install)
npm install -g @aurite-ai/kahuna
Configure your MCP client to use kahuna-mcp as the command.
npx (No Install)
npx @aurite-ai/kahuna
Docker
docker pull kahuna/mcp
docker run -i kahuna/mcp
From Source
git clone https://github.com/Aurite-ai/kahuna.git
cd kahuna
pnpm install
pnpm --filter @aurite-ai/kahuna build
pnpm --filter @aurite-ai/kahuna bundle
What It Looks Like
You teach Kahuna your company's context:
"learn ~/docs/api-guidelines.pdf"
"learn the docs/ folder"
Later, you start a task:
"build a customer support agent"
Kahuna automatically surfaces the relevant context to your copilot:
- β Your API conventions and auth patterns
- β Customer data models and access policies
- β Error handling and response format standards
- β Related endpoints already in the codebase
Your copilot builds it right the first time β no reminders needed.
How It Works
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YOU COPILOT KAHUNA β
β β
β "set up Kahuna" ββββββββββΊ deploys rules ββββββΊ .claude/ β
β asks questions stores β
β context β
β β
β "learn these docs" ββββββββΊ kahuna_learn ββββββΊ knowledge β
β base β
β β
β "build feature X" βββββββββΊ kahuna_prepare ββββββΊ surfaces β
β _context relevant β
β files β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π‘ If Kahuna saves you from repeating yourself, consider giving it a β. It helps others discover the project.
Contents
- The Problem
- The Solution
- Quickstart
- What It Looks Like
- How It Works
- How It Compares
- Features
- Available Tools
- Documentation
- Contributing
- License
How It Compares
| Feature | Kahuna | Copilot Memory | RAG Tools | Manual Context |
|---|---|---|---|---|
| Persists across sessions | β | Partial | β | β |
| Learns from files & conversations | β | β | Files only | N/A |
| Proactive context surfacing | β | β | Query-based | β |
| Auto-classifies knowledge | β | β | β | Manual |
| Works across projects | β | β | Varies | β |
| Zero-config for copilot | β | β | β | β |
| Data stays local | β | β | Varies | β |
Kahuna is not a replacement for built-in copilot memory β it's what copilot memory should have been.
Features
- π§ Knowledge Base β Store, categorize, and retrieve context from markdown files
- π― Smart Context Surfacing β Automatically surface relevant knowledge for your task
- π Integration Management β Discover, verify, and use external service integrations
- π Secure Credential Vault β Store and manage secrets with multiple provider support
- π Usage Tracking β Monitor token consumption and costs per project
- π Onboarding System β Guided setup for organization and project context
Available Tools
| Tool | Description |
|---|---|
kahuna_initialize |
Deploys copilot rules, runs onboarding |
kahuna_learn |
Adds files to knowledge base with classification |
kahuna_prepare_context |
Surfaces relevant knowledge for a task |
kahuna_ask |
Quick Q&A against the knowledge base |
kahuna_delete |
Remove outdated files from the knowledge base |
kahuna_provide_context |
Store org or user context in the knowledge base |
kahuna_usage |
View token usage and cost summary for the project |
kahuna_list_integrations |
List all discovered integrations and their status |
kahuna_use_integration |
Execute operations on discovered integrations |
kahuna_verify_integration |
Verify integration credentials and connectivity |
health_check |
Verify MCP server connectivity |
Documentation
For Users:
- MCP Server Documentation β Installation, tools, configuration
- Advanced Documentation β Integrations, vault, KB structure
For Contributors:
- Product Design β Core concepts, tool specifications
- Architecture: Repository Infrastructure
- Architecture: Context Management System
Contributing
We welcome contributions of all kinds!
- π Found a bug? Open an issue
- π‘ Have an idea? Open a feature request
- π§ Want to contribute code? Open a PR
Prerequisites
- Node.js 18+
- pnpm 9+
Quick Start
# Install dependencies
pnpm install
# Set up environment
cp apps/mcp/.env.example apps/mcp/.env
# Build workspace packages
pnpm build
# Run tests
pnpm test
Scripts
| Command | Description |
|---|---|
pnpm build |
Build all packages (via Turborepo) |
pnpm test |
Run all tests across workspace |
pnpm lint |
Lint codebase (Biome) |
pnpm lint:fix |
Lint and auto-fix issues |
pnpm format |
Format codebase (Biome) |
pnpm typecheck |
Type-check all packages |
pnpm clean |
Remove build artifacts and caches |
Testing CLI
| Command | Description |
|---|---|
pnpm kahuna-test |
Run testing CLI |
pnpm test:create |
Create a test project from a scenario |
pnpm test:list |
List available scenarios and test projects |
pnpm test:collect |
Collect results from a test session |
Project Structure
kahuna/
βββ apps/
β βββ mcp/ # MCP server (stdio) β context management tools
β βββ src/
β β βββ knowledge/ # Knowledge base domain logic (agents, storage, surfacing)
β β βββ integrations/ # External service integration management
β β βββ vault/ # Secure credential management
β β βββ usage/ # Token usage and cost tracking
β β βββ tools/ # MCP tool handlers
β βββ templates/ # Project initialization templates
βββ packages/
β βββ testing/ # QA testing infrastructure (scenarios + CLI)
β βββ vck-templates/ # Copilot configuration templates
βββ docs/ # Documentation
License
MIT
No comments yet
Be the first to share your take.