magic-context
Magic Context is a plugin for coding agent harnesses, currently OpenCode, Pi and OMP. It replaces the host's built-in compaction with its own context management so the agent does not pause to compact and drop what it knew mid-task.
A background historian compresses older history into tiered summaries with importance scores and lifts durable decisions, constraints and conventions into project memory. Separate dreamer agents run later to verify memories against the codebase and remove duplicates or stale entries, and relevant memories are injected each turn. The agent can also search memories, past conversations and git history.
Setup is a wizard (`npx @cortexkit/magic-context@latest setup`) that detects installed harnesses, registers the plugin and turns off built-in compaction. A historian model must be configured; the README notes it can be a cheaper or local model than the main agent.
Features
Why choose it
Trade-offs
Maintenance check
- Last commit
- 2026-10-22
- Commits, last 90 days
- 100+
- Releases, last 90 days
- 30
- Latest release
- dashboard-v0.20.11 (2026-10-22)
- Open issues
- 35
- Recent issues with at least one comment
- 27/30
Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.
Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.
Most discussed open issues
- #332 On win11, entering the first character after starting opencode causes bun error. However, after restarting opencode 2 - 3 times it remains s11 comments · 2026-08-18
- #646 [omp] Non-git project memories do not follow /move — dir identity has no re-home hook6 comments · 2026-10-09
- #335 Memory promotion is single-episode: `seen_count` counts phrasing repeats, not corroboration — proposal for an episode table + optional tieri6 comments · 2026-08-18
- #554 [Windows][OpenCode 2] MC 0.44.0 hangs opencode serve at boot: /health never answers, supervisor kill/restart loop5 comments · 2026-09-28
- #360 Add little-coder support5 comments · 2026-08-23
Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.
Compatibility
Quick start
Use cases
Alternatives
Comments
No comments yet. Be the first!