|
25 | 25 |
|
26 | 26 | --- |
27 | 27 |
|
| 28 | +## What is Magic Context? |
| 29 | + |
| 30 | +Context windows fill up, old messages get dropped, and the agent loses track of decisions it made twenty minutes ago. Magic Context is an OpenCode plugin that fixes this: |
| 31 | + |
| 32 | +**1.** Transparent context compaction via a background historian — all operations are **cache-aware** and deferred to avoid wasting cached prefixes. |
| 33 | + |
| 34 | +**2.** Cross-session project memory — architecture decisions, constraints, and preferences persist across conversations. |
| 35 | + |
| 36 | +**3.** Overnight dreamer agent that consolidates, deduplicates, and promotes memories into canonical facts, plus maintains codebase documentation. |
| 37 | + |
| 38 | +**4.** On-demand sidekick that augments prompts with relevant project context. |
| 39 | + |
| 40 | +--- |
| 41 | + |
28 | 42 | ## Get Started |
29 | 43 |
|
30 | 44 | ### Quick Setup (Recommended) |
@@ -100,20 +114,6 @@ The setup wizard handles this automatically if it detects an oh-my-opencode conf |
100 | 114 |
|
101 | 115 | --- |
102 | 116 |
|
103 | | -## What is Magic Context? |
104 | | - |
105 | | -AI coding agents forget everything the moment a conversation gets long enough. Context windows fill up, old messages get dropped, and the agent loses track of decisions it made twenty minutes ago. |
106 | | - |
107 | | -Magic Context fixes this with a background historian — a separate, lightweight model that compresses older conversation into structured summaries and durable facts while the main agent keeps working. The agent never stops to summarize its own history. It never notices the rewriting happening beneath it. |
108 | | - |
109 | | -Every mutation is **cache-aware**. Drops and rewrites are queued until the provider's cached prefix expires, so you're not paying to throw away work that's already cached. |
110 | | - |
111 | | -Across sessions, architecture decisions, constraints, and preferences persist in a **cross-session memory** system. A new conversation starts with everything the previous one learned, without replaying old transcripts. |
112 | | - |
113 | | -And overnight, a **dreamer** agent consolidates, verifies, and improves memories — checking them against the actual codebase and merging duplicates into clean canonical facts. |
114 | | - |
115 | | ---- |
116 | | - |
117 | 117 | ## What Your Agent Gets |
118 | 118 |
|
119 | 119 | Magic Context injects structured context automatically and gives the agent five tools. |
|
0 commit comments