Skip to content

Conversation

@Sanyue0v0
Copy link
Contributor

Add compactionThreshold config option (default 0.80) to control when context compaction triggers. Previously hardcoded at 80%, now users can adjust via supermemory.jsonc.

  • Add compactionThreshold to SupermemoryConfig interface
  • Add default value 0.80 in DEFAULTS
  • Export compactionThreshold in CONFIG
  • Pass threshold to createCompactionHook
  • Update README with config documentation

Add compactionThreshold config option (default 0.80) to control when
context compaction triggers. Previously hardcoded at 80%, now users
can adjust via supermemory.jsonc.

- Add compactionThreshold to SupermemoryConfig interface
- Add default value 0.80 in DEFAULTS
- Export compactionThreshold in CONFIG
- Pass threshold to createCompactionHook
- Update README with config documentation
Prevents silent failures when users enter invalid values like 80 instead
of 0.80, which would disable compaction and risk context overflow.
@nexxeln nexxeln merged commit 5b9d105 into supermemoryai:main Jan 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants