Skip to content

Magic Context

Your coding agent, with a memory. Sessions that last weeks, context that manages itself.

Unbounded sessions

A background Historian condenses old conversation into a compact, tiered history. Your session keeps going — no context wall, no lossy compaction pauses.

Project memory

Durable facts, rules, and constraints persist across sessions. Every new session starts already knowing your project.

Full recall

Nothing is lost. The agent can search and re-expand any part of the original conversation, project memories, and indexed git history.

Prompt-cache aware

Every mutation is engineered around provider prompt caching — context management that pays for itself instead of re-billing your prefix.

  • OpenCode — CLI, TUI, and Desktop
  • Pi — terminal coding agent

One shared store: sessions, memories, and history are shared across both harnesses on the same machine.

Terminal window
npx @cortexkit/magic-context@latest setup