compression: keep the last four turns verbatim, not eight
Four turns still carry the current task word for word; everything older is
already summarised, so eight bought little and pushed the compression trigger
later than it needed to be.

The mid-turn window is unchanged: it counts messages, not turns, and
max(12, keep_recent*2) still floors at 12. navi_code keeps its own override of
12 turns.

Examples, docs and the two tests that assert the default follow.
1 parent 679707d commit 92a86bd125eda10ccc164138abe7733c2a6a0792
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 16 hours ago
Showing 8 changed files
View
.env.example
View
.env.navi_code.example
View
docs/api.md
View
docs/config.md
View
docs/sessions.md
View
navi/config.py
View
tests/unit/api/test_session_info.py
View
tests/unit/core/test_agent.py