compressor: structured summaries, profile-aware compression, adaptive keep_recent
- Replace free-form summary with strict Markdown template (Goal, Active Files,
  Decisions, Completed Work, Pending Work/Todo, Errors, Key Values).
- Keep filesystem/code_exec/terminal tool results and messages with
  is_compression_critical=True verbatim during compression instead of 300-char truncation.
- Make compression profile-aware: AgentProfile gains compression_keep_recent,
  compression_max_tokens, compression_prompt_file. navi_code uses dedicated
  compression prompt and larger keep_recent/max_tokens.
- Adaptive partition_messages(): important turns (user corrections, errors,
  critical tools) survive longer; filler/social turns compress sooner.
- Increase default context_summary_max_tokens from 3000 to 4000.
- Propagate active profile changes to ContextCompressor and SubAgentRunner.

Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cb7dfd9 commit 4519268582054ee80c42a2d004ef018c759b8d08
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 9 hours ago
Showing 11 changed files
View
docs/config.md
View
navi/config.py
View
navi/core/agent.py
View
navi/core/compressor.py
View
navi/core/subagent_runner.py
View
navi/llm/base.py
View
navi/profiles/base.py
View
navi/profiles/loader.py
View
navi/profiles/navi_code/compression_prompt.txt 0 → 100644
View
navi/profiles/navi_code/config.json
View
tests/unit/core/test_compressor.py