@DanKornas: Your coding agent shouldn’t start from zero every session Magic Context is a CortexKit plugin for giving coding agents …

X AI KOLs Timeline Tools

Summary

Magic Context is an open-source CortexKit plugin that gives coding agents self-managing context and long-term project memory across OpenCode and Pi, allowing persistent sessions and automatic memory capture.

Your coding agent shouldn’t start from zero every session Magic Context is a CortexKit plugin for giving coding agents self-managing context and long-term project memory across OpenCode and Pi. It helps you keep one long-running project session alive by moving older history into tiered compartments, capturing durable project knowledge, and recalling the right memories when the agent needs them. Key features: • Background context management – historian compresses older session history into scored compartments so the active window stays small • Automatic memory capture – lifts decisions, constraints, conventions, config values, and naming rules into project memory • Optional overnight consolidation – dreamer merges duplicates, verifies memories against the codebase, archives stale facts, and maintains docs • Cross-session recall – searches project memories, raw conversation history, and opt-in indexed git commits when you need old context • OpenCode + Pi support – setup wizard detects harnesses, configures plugins, and shares one CortexKit database across both It’s open-source (MIT license). Link in the reply
Original Article
View Cached Full Text

Cached at: 06/20/26, 04:20 PM

Your coding agent shouldn’t start from zero every session

Magic Context is a CortexKit plugin for giving coding agents self-managing context and long-term project memory across OpenCode and Pi.

It helps you keep one long-running project session alive by moving older history into tiered compartments, capturing durable project knowledge, and recalling the right memories when the agent needs them.

Key features:

• Background context management – historian compresses older session history into scored compartments so the active window stays small • Automatic memory capture – lifts decisions, constraints, conventions, config values, and naming rules into project memory • Optional overnight consolidation – dreamer merges duplicates, verifies memories against the codebase, archives stale facts, and maintains docs • Cross-session recall – searches project memories, raw conversation history, and opt-in indexed git commits when you need old context • OpenCode + Pi support – setup wizard detects harnesses, configures plugins, and shares one CortexKit database across both

It’s open-source (MIT license).

Link in the reply

Similar Articles

Agent Context

Product Hunt

Agent Context is a dev tool that lets users attach reference projects to AI coding assistants.