replan: integrated mid-task re-planning tool
Add a replan tool that re-runs the planner over the live session context
+ todo + scratchpad when the plan's structure is stale due to discoveries
(NOT failed steps -- that stays [Adaptive re-plan]). Integrated approach:
PlanningEngine.run gains is_replan/replan_context (suppresses DIRECT
shortcut and observe-skip, frames Phase 1 as a revision); ReplanRunner
packs reason/goal/todo/findings/errors and captures PlanReady; the tool
is exposed to navi_code/developer/tool_developer via a
current_replan_runner ContextVar set per-iteration in run_stream (correct
after switch_profile). New plan replaces the todo. Lazy events import
breaks the navi.tools -> navi.core -> navi.tools cycle.
1 parent 458fab8 commit b1693d3d518bbea7c4cf5c99c0631377937ef6b3
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 1 day ago
Showing 13 changed files
View
navi/core/agent.py
View
navi/core/planning.py
View
navi/core/registry.py
View
navi/profiles/developer/config.json
View
navi/profiles/developer/system_prompt.txt
View
navi/profiles/navi_code/config.json
View
navi/profiles/navi_code/system_prompt.txt
View
navi/profiles/tool_developer/config.json
View
navi/profiles/tool_developer/system_prompt.txt
View
navi/tools/__init__.py
View
navi/tools/_internal/base.py
View
navi/tools/replan.py 0 → 100644
View
tests/unit/tools/test_replan.py 0 → 100644