A context-aware personal memory bank.
Kore solves the "Recall Disconnect" — the gap between saving high-value inspiration and actually remembering it when it matters. It passively ingests content from your existing tools (Apple Notes, bookmarks, etc.), uses an LLM to distill it into structured memories, and surfaces it automatically — through an AI agent via MCP, the CLI, or proactive push nudges based on location and time.
What makes it different:
- Passive ingestion — you don't change how you work; Kore watches your existing tools
- LLM-powered understanding — content is extracted into structured memories with intent, tags, and confidence, not just stored as text
- Consolidation — a background loop synthesizes clusters of related memories into higher-order insights over time
- Agentic-first — your AI assistant (Claude, OpenClaw, etc.) has direct access to your memory via MCP, and uses it proactively without being asked
- File-system native — every memory is a plain
.mdfile; no proprietary database lock-in - Privacy-first — runs fully locally with Ollama, or with a cloud LLM if you prefer
- Greek: Meaning "the core" or "the heart" — fitting for a personal memory bank.
- Japanese: Kore (これ) is the demonstrative pronoun for "this" — a literal pointer to the memory being surfaced right now.
See the Vision Document for the full strategic vision, design principles, and real-world scenarios.
graph TD
subgraph Ingestion
A1[Apple Notes] --> B
A2[Bookmarks] --> B
A3[Web Clips] --> B
A4[Manual API] --> B
end
B[POST /api/v1/remember] --> C[(SQLite Task Queue)]
C -->|worker polls every 5s| D[LLM Cloud/Local<br/>Structured Extraction]
D --> E[$KORE_HOME/data/*.md<br/>YAML frontmatter + body]
E -->|file watcher| F[QMD Index<br/>BM25 + vectors + reranking]
E -->|consolidation loop| G[Insight .md<br/>synthesized from clusters]
G --> F
F --> H[MCP Server<br/>any agent]
F --> I[CLI & API]
F --> J[Push Nudges<br/>roadmap]
- Ingest — raw text arrives via REST API, Apple Notes plugin, or other source
- Queue — task is stored in a local SQLite database and processed asynchronously
- Extract — a background worker calls an LLM (cloud or local via Ollama) to produce structured metadata
- Write — a
.mdfile with YAML frontmatter 8000 is written to$KORE_HOME/data/ - Index — a file watcher detects the new file and triggers
qmd update - Consolidate — a background loop clusters related memories and synthesizes higher-order insight files
- Retrieve — QMD serves the indexed memories to MCP agents, the CLI, or the REST API
This project is a Bun monorepo.
kore/
├── apps/
│ ├── core-api/ # REST API server + extraction worker + file watcher + consolidation loop
│ ├── cli/ # Command-line interface for Kore
│ ├── macos/ # Swift + WebView hybrid macOS app
│ └── mcp-server/ # Stdio-to-HTTP proxy for Claude Desktop, Claude Code, OpenClaw, etc.
├── packages/
│ ├── shared-types/ # Zod schemas and TypeScript interfaces (single source of truth)
│ ├── llm-extractor/ # Vercel AI SDK + Ollama integration
│ ├── qmd-client/ # Typed wrapper around the QMD CLI
│ ├── an-export/ # Apple Notes → Markdown exporter
│ └── plugin-apple-notes/ # Apple Notes sync plugin (passive ingestion)
├── docs/ # Architecture docs and guides
│ ├── design/ # Feature-level design specs
│ ├── planning/ # Assessments and roadmap
│ └── testing/ # QA and testing guides
└── tasks/ # PRDs and design docs
- Bun —
curl -fsSL https://bun.sh/install | bash - Ollama — install, then pull a model (e.g.
ollama pull qwen2.5:7b) (or configure a cloud LLM — see below)
bun installcp .env.example .envEdit .env. The primary configuration variable is KORE_HOME, which sets the base directory for all Kore data (database files, notes storage). It defaults to ~/.kore if not set.
KORE_HOME=~/.kore
KORE_API_KEY=your-secret-key-here
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=qwen2.5:7b
| Variable | Default | Description |
|---|---|---|
KORE_HOME |
~/.kore |
Base directory for all Kore data (SQLite queue, notes, QMD cache) |
KORE_API_KEY |
(required) | Bearer token for API authentication |
LLM_PROVIDER |
ollama |
LLM backend: ollama (local) or gemini (cloud) |
LLM_MODEL |
(provider default) | Override the model name for the chosen provider |
OLLAMA_BASE_URL |
http://localhost:11434 |
Ollama server URL (when LLM_PROVIDER=ollama) |
OLLAMA_MODEL |
qwen2.5:7b |
Legacy alias for LLM_MODEL when using Ollama |
GEMINI_API_KEY |
(required for Gemini) | Google Gemini API key (when LLM_PROVIDER=gemini) |
XDG_CACHE_HOME |
~/.cache |
Base cache dir; QMD embedding models stored at $XDG_CACHE_HOME/qmd |
KORE_SYNTHESIS_MODEL |
(uses LLM_MODEL) | Optional model override specifically for insight synthesis |
CONSOLIDATION_INTERVAL_MS |
1800000 (30 min) |
How often the consolidation loop runs |
CONSOLIDATION_COOLDOWN_DAYS |
7 |
Days before a memory can be re-consolidated |
CONSOLIDATION_MAX_ATTEMPTS |
3 |
Max synthesis attempts before marking as failed |
As an alternative to .env, you can configure Kore using a config.json file in $KORE_HOME (default: ~/.kore/config.json). This is the format the macOS app reads and writes.
Precedence order (highest wins):
- Environment variables (explicit
VAR=value bun run start) .envfile (Bun auto-loads)$KORE_HOME/config.json
Example ~/.kore/config.json:
{
"port": 3000,
"apiKey": "your-secret-key",
"llm": {
"provider": "gemini",
"geminiApiKey": "AIza...",
"geminiModel": "gemini-2.5-flash-lite",
"ollamaBaseUrl": "http://localhost:11434",
"ollamaModel": "qwen2.5:7b"
},
"appleNotes": {
"enabled": true,
"syncIntervalMs": 900000,
"includeHandwriting": false,
"folderAllowlist": [],
"folderBlocklist": []
},
"consolidation": {
"intervalMs": 1800000,
"cooldownDays": 7,
"maxAttempts": 3
},
"embedIntervalMs": 300000,
"mcpEnabled": true
}All fields are optional — missing fields fall back to the same defaults as the environment variables above. If config.json does not exist, Kore behaves exactly as before (no change to existing setups).
bun run startThe API is now running at http://localhost:3000. Logs appear directly in your terminal.
# Install globally
bun install -g ./apps/cli
# Check connectivity
kore health
# Send your first memory
kore ingest note.mdOr send a memory directly via curl:
curl -X POST http://localhost:3000/api/v1/remember \
-H "Authorization: Bearer your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{"source": "manual", "content": "Mutekiya in Ikebukuro — best tsukemen, cash only, 30 min wait."}'Kore exposes its memory via MCP so any compatible agent (Claude Desktop, Claude Code, etc.) can recall and save memories directly in conversation.
Kore uses a stdio proxy pattern — you register the kore mcp command with your agent, and it spawns the proxy automatically at session start. The proxy connects to the running Kore server at localhost:3000.
macOS app shortcut: If you're using the Kore macOS app, you can skip manual config editing — go to Settings > MCP and click Install MCP Config to auto-configure Claude Desktop and/or Claude Code. The first-run onboarding wizard also offers this step.
Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"kore": {
"command": "kore",
"args": ["mcp"],
"env": {
"KORE_API_KEY": "your-api-key-here",
"KORE_API_URL": "http://localhost:3000"
}
}
}
}Claude Code — add to your project's .mcp.json:
{
"mcpServers": {
"kore": {
"command": "kore",
"args": ["mcp"],
"env": {
"KORE_API_KEY": "your-api-key-here",
"KORE_API_URL": "http://localhost:3000"
}
}
}
}Once connected, your agent has access to 6 tools: recall, remember, inspect, insights, health, and consolidate.
See apps/mcp-server/README.md for the full MCP setup guide, tool reference, and troubleshooting.
Kore supports plugins for passive ingestion from external sources. Plugins run as background processes within the Kore server and are enabled via environment variables.
Automatically syncs your Apple Notes into Kore's memory store. Notes are incrementally exported, transformed with folder context, and processed by the LLM extraction pipeline. Deletions in Apple Notes are reflected in Kore on the next sync cycle.
Quick start:
- Grant Full Disk Access to your terminal (System Settings > Privacy & Security)
- Add to your
.env:KORE_APPLE_NOTES_ENABLED=true
- Restart Kore — the first sync runs 10 seconds after startup
CLI commands:
kore sync # trigger a manual sync
kore sync --status # check sync statusConfiguration:
| Variable | Default | Description |
|---|---|---|
KORE_APPLE_NOTES_ENABLED |
false |
Enable the plugin |
KORE_AN_SYNC_INTERVAL_MS |
900000 (15 min) |
Sync interval |
KORE_AN_FOLDER_ALLOWLIST |
(all) | Comma-separated folders to include |
KORE_AN_FOLDER_BLOCKLIST |
(none) | Comma-separated folders to exclude |
KORE_AN_INCLUDE_HANDWRITING |
false |
Include handwriting OCR text |
See packages/plugin-apple-notes/README.md for the full configuration reference, API endpoints, content transformation details, and troubleshooting.
Kore automatically synthesizes clusters of related memories into higher-order insight files. A background consolidation loop runs every 30 minutes, identifying groups of semantically similar memories via QMD hybrid search, classifying the cluster type, and generating a structured synthesis via LLM.
- A seed memory is selected from the consolidation tracker (prioritizing re-evaluation of existing insights over new seeds)
- QMD hybrid search finds 3-8 related candidate memories
- The cluster is classified deterministically:
cluster_summary,evolution(>30 day span), orconnection(cross-category) - An LLM synthesizes the cluster into a structured insight with title, synthesis paragraph, connections, and distilled items. The LLM may override the type to
contradictionif conflicting facts are detected. - The insight is written to
$KORE_DATA_PATH/insights/as a standard.mdfile and indexed by QMD - Source memories receive
consolidated_atandinsight_refsfrontmatter back-references
- When a new memory is indexed, the system checks for related existing insights and flags them for re-evaluation
- When a source memory is deleted, insights are transitioned based on remaining source integrity:
evolving(>=50%),de 98F2 graded(<50%), orretired(0%) - Insights can be superseded when re-synthesis produces a better version (old insight is
retired, new one links viasupersedes)
kore consolidate # trigger one consolidation cycle
kore consolidate --dry-run # preview without LLM synthesis
kore consolidate --reset-failed # retry failed consolidations
kore consolidation reset # delete all insights and restore source memories to unconsolidated state (preserves ingested memories)
kore list --type insight # list all insights
kore show <insight-id> # view full insight content
kore delete <insight-id> # delete an insight; source memories are automatically restored to the consolidation pool
kore search "topic" # insights appear in search results (retired insights are filtered out)See apps/core-api/README.md for API endpoint details and the Consolidation System Design for the full specification.
# Run all unit tests (excludes E2E)
bun test
# Type check all packages
bun run typecheck
# Run tests for a specific package
bun test packages/shared-types
bun test packages/llm-extractor
bun test packages/qmd-client
bun test apps/core-api
# Run E2E tests (requires the API to be running: bun run start)
bun run test:e2e
# Add a dependency to a specific workspace
bun add <package> --filter @kore/core-apiKore runs as a single Bun process — no Docker or process orchestration required. The API server, extraction worker, file watcher, and embedder all run together via apps/core-api/src/index.ts.
# Production
bun run start
# Development (with hot-reload)
bun run devThe API is available at http://localhost:3000. All log output (startup, worker activity, watcher events) appears directly in your terminal.
You can compile the API server and CLI into self-contained executables using Bun's --compile flag:
# Build both binaries
bun run build:bin
# Or build individually
bun run --cwd apps/core-api build:bin # → apps/core-api/bin/kore-server
bun run --cwd apps/cli build:bin # → apps/cli/bin/koreNote on
node-llama-cpp: QMD depends onnode-llama-cpp, which ships pre-built native.nodebinaries for each platform (e.g.,@node-llama-cpp/mac-arm64-metal). These native addons are not bundleable into a singlebun build --compileexecutable. The compiledkore-serverbinary falls back gracefully — QMD's embedding features will be unavailable unless you run viabun run start(which resolves the native addons throughnode_modules). For production deployments,bun run startis the recommended approach. Spatialite (mod_spatialite) must also be installed on the host — it cannot be bundled.
| Package | Description |
|---|---|
apps/core-api |
API server, worker, watcher — the main service to run |
apps/cli |
Command-line interface — install globally with bun install -g ./apps/cli |
packages/shared-types |
Zod schemas and TypeScript interfaces |
packages/llm-extractor |
LLM extraction via Vercel AI SDK + Ollama |
packages/qmd-client |
Typed QMD CLI wrapper |
packages/an-export |
Apple Notes → Markdown exporter |
packages/plugin-apple-notes |
Apple Notes sync plugin — passive ingestion |
See docs/README.md for the full documentation index. Key documents:
| Document | Description |
|---|---|
| Vision | Strategic vision, design principles, real-world scenarios |
| System Architecture | High-level layers, technology stack, data flows |
| Data Schema | Zod schemas, directory layout, frontmatter format |
| Consolidation System Design | Background consolidation loop, insight lifecycle, synthesis |
| MCP Server Design | Agent-facing interface with 6 core tools |
See docs/planning/roadmap.md for the full roadmap — upcoming features, ideas queue, and prioritization framework.
Kore is a personal project in active development. Phase 1 (ingestion pipeline + MCP) and Phase 2 (consolidation + Apple Notes) are complete with a full test suite. The push channel (location/temporal nudges) and additional ingestion sources are on the roadmap.
Issues and pull requests are welcome. For significant changes, open an issue first to discuss the approach.
MIT