cortexkit/magic-context
Unbounded context. Memory that manages itself. One session, for life. The hippocampus for coding agents, part of CortexKit. observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 87
- Longevity 11
Flags: young
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 160
- days_rel: 7
- days_push: 7
- n_releases_24m: 174
Adoption not part of the score
1892 stars · 96 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Magic Context is a TypeScript library that gives coding agents self-managing, unbounded memory so a single session can last indefinitely. It is part of the CortexKit ecosystem and ships integrations for coding agents like OpenCode and pi.
Use cases
- give my coding agent persistent memory across a long session
- stop my AI agent from losing context when the conversation gets too long
- manage context windows automatically for an LLM agent
- add long-term memory to an opencode agent
- let an agent recall earlier decisions without manual summarization
- build a coding assistant that remembers the whole project history
When to choose
- you are building or extending coding agents that run for long sessions
- you use OpenCode or pi and want drop-in memory/context management
- you want cache-aware, self-consolidating agent memory in a TypeScript stack
When to avoid
- you need a general-purpose vector database rather than agent session memory
- your stack is not JavaScript/TypeScript or an unsupported agent runtime
- you need a fully hosted memory service with a managed API
Facets
library · maturity active
agent-framework rag caching llm-inference large-language-models developer-tools cli agent-memory context-management coding-agents opencode self-managing-memory long-term-memory ai-agents nodejs typescript
2 sources
- readme: https://github.com/cortexkit/magic-context · fetched 2026-08-28 · efceb4f351b9
- homepage: https://discord.gg/DSa65w8wuf · fetched 2026-08-29 · b49a4bfeed4b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| cortexkit/magic-context | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="cortexkit/magic-context")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem