Subagent system prompt rework: separate from parent, briefing as system context
run_ephemeral:
- Add briefing param (passed from spawn_agent, injected into system prompt)
- Subagent system prompt is now completely separate from parent's system_prompt:
    1. profile.subagent_system_prompt  (executor persona)
    2. custom_system_prompt            (role specialisation for this task)
    3. briefing                        (task context as system-level instruction)
  Fallback to profile.system_prompt only if subagent_system_prompt is not defined

spawn_agent:
- task → user message only (the goal)
- briefing → system prompt (credentials, context, instructions)
- system_prompt → role specialisation injected alongside briefing
- Removed old user-message composition (## Context / ## Task split)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4822cd9 commit b9bef3393256f8da68f32a88583af85d9ea3c928
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 17 Apr
Showing 2 changed files
View
navi/core/agent.py
View
navi/tools/spawn_agent.py