magic-context
cortexkit
Background memory plugin for the OpenCode and Pi agents that replaces compaction with a self-managing historian.
What is magic-context?
A background context-management plugin for coding agents, billed as 'the hippocampus for coding agents'. It replaces the host's built-in compaction with a 'historian' that compresses session history into tiered memory, captures durable decisions and conventions, runs an optional overnight 'dreamer' agent to consolidate, and provides semantic recall across memories, past conversations and git history. It targets the OpenCode and Pi harnesses, sharing one SQLite database across both.
Pros & Cons
Pros
- Substantive and active: a real TypeScript monorepo with 100+ releases, a desktop dashboard and architecture and audit docs, MIT
- Novel design: replaces compaction with a background historian plus overnight consolidation
- Local-first SQLite plus local embeddings, and background models can run on cheaper tiers
Cons
- Supports only the OpenCode and Pi harnesses, so the audience is narrow and excludes Claude Code and Cursor users
- Setup is invasive: it must disable the host's built-in compaction, and development needs Bun
- Growth-optimised presentation (a Discord-only homepage, 22-language READMEs) and pre-1.0 versioning
License
MIT (OSI-open)
When it is interesting
OpenCode or Pi users running long-lived projects who want automatic, self-managing cross-session memory and recall.
When it is too early
If you use Claude Code, Cursor or any other harness (unsupported), or want a stable 1.0 with less invasive setup.
This repo featured in the 2026-07 edition of the Open-Source AI Radar.
claude-mem
thedotmack
Persistent memory layer across agent sessions with automatic semantic summaries and token-cost transparency.
graphify
safishamsi
AI coding skill that turns a folder of code, docs and images into a queryable knowledge graph across 20+ agents.
memU
NevaMind-AI
Memory framework for proactive AI agents - typed memory graph from chats, docs and media.