ConKeeper (context-keeper)
A file-based agent memory system for AI coding assistants that provides structured context management using plain Markdown files.
Multi-Platform Support: ConKeeper works with Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Windsurf, and Zed.
Memory roots
New projects use .ai/memory/; existing legacy-only projects keep .claude/memory/. Global memory resolves independently between ~/.ai/memory/ and ~/.claude/memory/. Both roots means prefer .ai, warn, and never merge. Paths shown below are new-project examples; substitute the selected legacy root when applicable. Use bash <conkeeper-path>/tools/memory-root.sh (or --global) to resolve without creating directories. All workflows use that root for settings, sessions, queues, decisions and handoffs. AGENTS.md is primary; the installer can also add the same instructions to CLAUDE.md as a compatibility fallback, preserving existing instructions.
vNext planning
Fixed memory-root selection and the approved lightweight durable-knowledge scope are implemented. Existing skills, workflows and Markdown templates support optional Knowledge Workspaces with configuration inheritance, human-reviewed proposals and quoted provenance. Implementation evidence records the completed checks and host-verification limits. The broader vNext specifications retain manifest, migration tooling, automated ingestion/export and wrapper integration as deferred work requiring separate approval.
Overview
ConKeeper replaces database-backed context management with simple, version-controllable Markdown files. It provides:
- Global memory (
~/.ai/memory/) - Cross-project preferences and patterns
- Project memory (
<project>/.ai/memory/) - Project-specific context, decisions, and progress
- SessionStart hook - Automatic memory awareness at session start
- Context preservation hooks - Automatic memory-sync before context compaction
- Skills + commands - Easy memory initialization, sync, and session handoff
- Category tags - Structured
<!-- @category: ... --> tags for filtering and search
- Privacy tags -
<private> blocks and file-level privacy for sensitive content
- Observation hook - Automatic tool usage logging via PostToolUse hook
- Correction detection - Real-time detection of user corrections and friction signals
- Session retrospection - After Action Review workflow via
/memory-reflect
- Facets integration - Claude Code session analytics for friction and satisfaction trends
- Context brackets - Graduated behavioral directives as context window fills
- Lifecycle automation - Auto-handoff generation and seamless session resume
Installation
Option 1: Marketplace (Recommended)
Add the marketplace and install the plugin:
# Add the marketplace (use full HTTPS URL to avoid SSH auth issues)
/plugin marketplace add https://github.com/swannysec/context-keeper.git
# Install the plugin
/plugin install context-keeper@swannysec-plugins
Note: Using the full HTTPS URL avoids SSH authentication issues with the github source type.
Option 2: Manual Installation
-
Clone or symlink this repo to ~/.claude/plugins/context-keeper:
# Use absolute path for reliable symlink (not relative)
ln -s /absolute/path/to/context-keeper ~/.claude/plugins/context-keeper
-
Enable the plugin in ~/.claude/settings.json:
{
"enabledPlugins": {
"context-keeper": true
}
}
-
Create global memory directory:
# Use the selected global root described above
mkdir -p "$(bash /path/to/context-keeper/tools/memory-root.sh --global)"
Multi-Platform Support
ConKeeper supports multiple AI coding platforms through native skills and AGENTS.md awareness.
Platform Support Matrix
| Platform | Support Type | Status |
|---|
| Claude Code | Native Plugin | ✅ Fully Tested |
| GitHub Copilot in VSCode | Native Skills | ✅ Verified |
| OpenAI Codex | Native Skills | ⚠️ Documented |
| Cursor | Native Skills (Nightly) | ⚠️ Documented |
| Windsurf | .windsurfrules | ⚠️ Documented |
| Zed | AGENTS.md + Rules | ✅ Verified |
Quick Setup (Any Platform)
Add this snippet to your project's AGENTS.md:
<!-- ConKeeper Memory System -->
## Memory System
This project uses ConKeeper for persistent AI context management.
**Memory Location:** Use existing `.ai/memory/`, otherwise existing `.claude/memory/`, otherwise `.ai/memory/` for initialization. Apply the same rule independently under the home directory for global memory. If both roots exist, use `.ai`, warn, and leave legacy files untouched.