#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
Stars, last 29 weeks+2,279
21 Apr 2026: 228 stars28 Apr 2026: 411 stars5 May 2026: 480 stars12 May 2026: 544 stars19 May 2026: 625 stars26 May 2026: 685 stars2 Jun 2026: 738 stars9 Jun 2026: 814 stars16 Jun 2026: 907 stars23 Jun 2026: 978 stars30 Jun 2026: 1,081 stars7 Jul 2026: 1,219 stars14 Jul 2026: 1,284 stars21 Jul 2026: 1,354 stars28 Jul 2026: 1,462 stars4 Aug 2026: 1,570 stars11 Aug 2026: 1,656 stars18 Aug 2026: 1,733 stars25 Aug 2026: 1,835 stars1 Sept 2026: 1,936 stars8 Sept 2026: 2,010 stars15 Sept 2026: 2,079 stars22 Sept 2026: 2,140 stars29 Sept 2026: 2,204 stars6 Oct 2026: 2,239 stars13 Oct 2026: 2,295 stars20 Oct 2026: 2,347 stars27 Oct 2026: 2,388 stars3 Nov 2026: 2,461 stars10 Nov 2026: 2,507 stars

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
Also in Skills, plugins and prompts
RankProjectScore
1claude-memPersistent cross-session memory plugin for Claude Code and other coding agents116.1k stars+16,557 (+17%) in 30 daysApache-2.097 out of 100
2impeccableDesign skill with 24 slash commands for AI coding agents' frontend output Live demo ↗ (opens in a new tab)108k stars+28,186 (+35%) in 30 daysApache-2.097 out of 100
3gstackMarkdown slash-command skills that give Claude Code planning, review, QA and ship roles141.2k stars+5,515 (+4.1%) in 30 daysMIT96 out of 100
#4rufloAgent harness adding swarms, memory and hooks to Claude Code and Codex Live demo ↗ (opens in a new tab)81.5k stars+7,413 (+10%) in 30 daysMIT96 out of 100
#5cavemanShortens coding-agent replies and compresses tool output before the model reads it Live demo ↗ (opens in a new tab)119k stars+8,390 (+7.6%) in 30 daysApache-2.095 out of 100