agent: skip planning for casual greetings + strengthen DIRECT shortcut in Phase 1
- Add fast _is_casual_message heuristic in navi/core/agent.py. Greetings and
  social chat (e.g. 'привет', 'как дела', 'hi', 'thanks') bypass planning even
  on the first session message, unless planning_mandatory is enabled.
- Strengthen Phase 1 planning prompt in navi/core/planning.py: explicitly
  require DIRECT output for greetings, simple questions, and one-step
  instructions.
- Fix broken ContextCompressed import in navi/core/compressor.py.
- Add unit tests covering the new heuristic and DIRECT prompt.

Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 77af8fe commit cb7dfd97661e568ce1b88866bee3854b00f23c25
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 10 hours ago
Showing 5 changed files
View
navi/core/agent.py
View
navi/core/compressor.py
View
navi/core/planning.py
View
tests/unit/core/test_agent.py
View
tests/unit/core/test_planning.py