Autonomous reasoning improvements: budget, anchoring, anti-stall, validation
- AgentProfile: per-profile thinking mechanics flags (think_enabled,
  iteration_budget_enabled, goal_anchoring, anti_stall, step_validation,
  planning_reflect, adaptive_replan) — all profiles updated in config.json
- Iteration budget: inject remaining iterations into context so model knows
  when to wrap up; urgency levels at ≤7 and ≤3 remaining
- Goal anchoring: inject original goal + todo state every N iterations to
  prevent drift on long tasks
- Anti-stall: two signals — no todo progress for N iterations, or identical
  tool calls repeated N times; warning injected into context
- Todo step validation: marking done requires a validation field describing
  how result was verified; failed gets a soft nudge with tip for re-planning
- stream_complete: add think param to base class, ollama and openai backends
- Summarizer: raise max_tokens 1024→3000, expand system prompt with
  user-preferences section and verbatim-value instructions
- Compression card: persist to session.messages (is_compression flag on
  Message), show expandable summary in webclient with markdown body
- ToolResult.to_message_content: always include output on failure so
  tracebacks and error details reach the model (fixes silent Error: None)
- Developer profile: fix subagent profile secretary→developer, add write_tool
  to subagent_tools, clarify write_tool vs filesystem in system prompt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fcb1c12 commit 9704a9242033eecd5a82b7deb190af5a912f8b34
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 20 Apr
Showing 22 changed files
View
CLAUDE.md
View
navi/config.py
View
navi/core/agent.py
View
navi/core/compressor.py
View
navi/llm/base.py
View
navi/llm/ollama.py
View
navi/llm/openai_backend.py
View
navi/profiles/base.py
View
navi/profiles/developer/config.json
View
navi/profiles/developer/subagent_system_prompt.txt
View
navi/profiles/developer/system_prompt.txt
View
navi/profiles/secretary/config.json
View
navi/profiles/server_admin/config.json
View
navi/tools/base.py
View
navi/tools/todo.py
View
navi/workers/compressor.py
View
webclient/dist/assets/index-CzedwUs9.js 0 → 100644
Not supported
View
webclient/dist/assets/index-eEP-Qhbj.css 0 → 100644
View
webclient/dist/index.html
View
webclient/src/components/messages/CompressionNotice.vue
View
webclient/src/stores/chat.js
View
webclient/src/styles/app.scss