Fixes
- Memory injection for new sessions — Memories and session facts are now injected into
message[0]even when no compartments exist yet. Previously, brand-new sessions and existing projects where historian hadn't fired yet saw no<session-history>block at all, leaving agents without project memories until the first historian run. Now the block injects as soon as any memory or fact is available.
Notes
- 7 new tests cover memory-only, facts-only, combined injection, cache transitions from empty-to-populated, and defer-pass replay — reviewed by Oracle for cache safety.
Install: bunx --bun @cortexkit/opencode-magic-context@latest setup · npx @cortexkit/opencode-magic-context@latest setup
Upgrade: bunx --bun @cortexkit/opencode-magic-context@latest doctor