profiles: teach the agent to scout profiles and tools before switching
Persona gains a reconnaissance order (list_profiles, then list_tools for the
real toolset, then tool_manual) and the switch-vs-delegate rule: switch when
the task itself is another profile's work, delegate a side piece with
spawn_agent. The profiles block is built in one place and shared with the
admin prompt debug view, and the stale 'next user message' claim is fixed.

list_tools applies the admin-only role gate to an explicitly named profile,
the same one list_profiles uses, so it cannot enumerate hidden profiles.
1 parent 6ac782a commit 556117d0771b2ff96937c9fe78a8982caece8836
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 22 hours ago
Showing 15 changed files
View
docs/auth.md
View
docs/mechanics.md
View
docs/profiles.md
View
navi/api/routes/agents.py
View
navi/core/context_builder.py
View
navi/profiles/assistant/system_prompt.txt
View
navi/profiles/designer_3d/system_prompt.txt
View
navi/tools/list_profiles.py
View
navi/tools/list_tools.py
View
navi/tools/switch_profile.py
View
persona.txt
View
tests/unit/core/test_context_builder.py
View
tests/unit/tools/test_list_tools.py
View
webclient/docs/architecture.md
View
webclient/docs/profiles.md