mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 06:04:51 +00:00
WIP: Context compaction core logic (#92)
- Add CompactionEntry type with firstKeptEntryIndex - Add loadSessionFromEntries() for compaction-aware loading - Add compact() function that returns CompactionEntry - Add token calculation and cut point detection - Add tests with real session fixture and LLM integration Still TODO: settings, /compact and /autocompact commands, auto-trigger in TUI, /branch rework
This commit is contained in:
parent
f02194296d
commit
6c2360af28
4 changed files with 1876 additions and 66 deletions
1019
packages/coding-agent/test/fixtures/large-session.jsonl
vendored
Normal file
1019
packages/coding-agent/test/fixtures/large-session.jsonl
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue