|
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> |
|---|
|
|
| navi/core/agent.py |
|---|
| navi/core/compressor.py |
|---|
| navi/core/planning.py |
|---|
| tests/unit/core/test_agent.py |
|---|
| tests/unit/core/test_planning.py |
|---|