#193193rd of 389 in Skills, plugins and prompts
magic-context
Self-managing context and long-term memory plugin for OpenCode, Pi and OMP
- Stars
- 2.5k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- TypeScript
228 on 21 Apr 20262,507 on 10 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Magic Context is a plugin for OpenCode, Pi and Oh My Pi that replaces the host's built-in compaction. A background historian compresses old history into tiered compartments and lifts decisions and conventions into project memory. An optional dreamer agent verifies and curates memories overnight, and agents recall them with ctx_search, ctx_expand and ctx_note.
Who it is for: Heavy OpenCode, Pi or OMP users wanting long-running sessions with memory
Strengths
- Background compression is structured to keep the cached prompt prefix stable
- Memory is shared across OpenCode, Pi and OMP through one store
- ctx_search covers memories, past conversations, git commits, notes and primers
- Historian and dreamer can run on a cheap or local model
Weaknesses
- Stays off if built-in compaction, DCP or other context plugins are active
- Does not backfill sessions from before it was installed
- historian.opencode.model must be set or older history is not summarized
- Pi needs >= 0.74.0 and OMP needs >= 17.1.7
What it needs
- Needs OpenCode, Pi or Oh My Pi, LLM for historian (and optional dreamer), Node.js/npx for setup
- Models: Any provider/model-id configured in the host harness, Local Xenova/all-MiniLM-L6-v2 embeddings by default
Quick answers
Is magic-context open source?
Yes. Its code is on GitHub under the MIT license.
Also in Skills, plugins and prompts
See all 389| Rank | Project | Score |
|---|---|---|
| 1 | claude-memPersistent cross-session memory plugin for Claude Code and other coding agents | 97 out of 100 |
| 2 | impeccableDesign skill with 24 slash commands for AI coding agents' frontend output | 97 out of 100 |
| 3 | gstackMarkdown slash-command skills that give Claude Code planning, review, QA and ship roles | 96 out of 100 |
| #4 | rufloAgent harness adding swarms, memory and hooks to Claude Code and Codex | 96 out of 100 |
| #5 | cavemanShortens coding-agent replies and compresses tool output before the model reads it | 95 out of 100 |