Full Changelog: v1.2.0...v1.2.1
What changed:
- New PreCompact hook (hooks/precompact.{sh,ps1}) — reads your repo's lorekeeper notes from disk and injects them, along with 6 handoff rules, directly into the compaction prompt. No LLM calls, pure disk reads, must be fast (<2s).
- 6 handoff rules tell the summarizer what to preserve:
- The why behind decisions, not just the what
- Exact file paths and line numbers
- Error messages/stack traces that informed diagnoses
- Current task status (complete / in-progress / blocked)
- Prior compaction summaries carried forward cumulatively
- Blockers and dependencies
- OMP plugin upgraded — session.compacting handler now injects full note content (not just titles) plus the same handoff rules as context lines.
- Installers updated — both install.sh and install.ps1 now register the PreCompact hook into Claude Code's .claude/settings.json.
- Template updated — CLAUDE.md gets an "After compaction" section explaining the mechanism.