magic-context

Unbounded context. Memory that manages itself. One session, for life. The hippocampus for coding agents, part of CortexKit.

What is magic-context?

Unbounded context. Memory that manages itself. One session, for life. The hippocampus for coding agents, part of CortexKit.

Overview of magic-context

What it is

Magic Context is an open-source tool that provides unbounded context and self-managing memory for coding agents. It is described as the hippocampus for coding agents and is part of CortexKit. The project aims to give agents persistent memory across sessions, so a single session can last for weeks, months, or years without forgetting past work.

Key features

  • Capture: automatically compresses conversation history and extracts durable knowledge (decisions, constraints, conventions) into project memory.
  • Consolidate: uses background dreamer agents to verify memories against the codebase, curate duplicates and stale entries, and promote recurring patterns.
  • Recall: surfaces relevant memories automatically each turn, and allows the agent to search across memories, past conversations, and git history on demand.
  • Works across multiple harnesses: OpenCode, Pi, and Oh My Pi (OMP).
  • No compaction pauses: the agent never stops to manage its context, avoiding broken flow.
  • Plugin auto-detection and setup wizard: detects installed harnesses and configures each one.

Use cases

Magic Context is intended for developers using coding agents who want to maintain long-term project memory. It is suitable for projects where an agent needs to remember decisions, constraints, and conventions across multiple sessions. The tool is designed to replace the default context management of OpenCode, Pi, or OMP, preventing memory loss and compaction pauses.

Getting started

bashnpx @cortexkit/magic-context@latest setupFor manual setup with OpenCode, add the plugin to opencode.jsonc and create a magic-context.jsonc configuration file. See the repository README for detailed instructions.

License and pricing

Magic Context is licensed under MIT and is open-source. The pricing type is listed as open_source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/cortexkitmagic-context.svg)](https://yunodb.com/tools/cortexkitmagic-context?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/cortexkitmagic-context?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/cortexkitmagic-context.svg" alt="Featured on YunoDB" height="20"></a>