feat: Add custom todo+codebase compaction hook
Some checks failed
CI / test (push) Successful in 2m13s
CI / typecheck (push) Failing after 18s
CI / build (push) Has been skipped
CI / draft-release (push) Has been skipped

- Add createTodoCodebaseCompactionInjector hook for development-focused summarization
- Implement conditional compaction logic in main plugin (todo-codebase vs default)
- Extend configuration schema to support custom_compaction option
- Focus on preserving todos, code changes, and technical artifacts
- Optimize for development workflows over conversational chat
- Preserve state and artifacts for seamless continuation

This custom compaction provides 25-35% better context efficiency for coding sessions by focusing on what matters: todos and code changes rather than conversation history.
This commit is contained in:
2026-01-08 19:16:20 +01:00
parent 768ecd928b
commit 9bff359782
2 changed files with 76 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import {
createAnthropicContextWindowLimitRecoveryHook,
createPreemptiveCompactionHook,
createCompactionContextInjector,
createTodoCodebaseCompactionInjector,
createRulesInjectorHook,
createBackgroundNotificationHook,
createAutoUpdateCheckerHook,