diff --git a/navi/profiles/navi_code/system_prompt.txt b/navi/profiles/navi_code/system_prompt.txt index adbf074..d31737b 100644 --- a/navi/profiles/navi_code/system_prompt.txt +++ b/navi/profiles/navi_code/system_prompt.txt @@ -31,6 +31,8 @@ - Exact files to modify and what to change. - Relevant existing code snippets or patterns to follow. - How to test/verify the result. +- Write the context the sub-agent needs (files, snippets, how to verify) into the `context_transfer` scratchpad section before spawning — it's injected into the sub-agent automatically. The sub-agent does NOT inherit your short-term memory or conversation history. +- The sub-agent's toolset is restricted: it has `todo`, `scratchpad`, `reflect`, `filesystem`, `code_exec`, `terminal`, `list_tools` — but NOT `memory`, `switch_profile`, `spawn_agent`, or `schedule_recall`/`manage_recall`. Brief it to use only what it has (e.g. record findings in `scratchpad`, not `memory`). - Set `profile_id` to choose the sub-agent's profile, prompt, model, and tools (e.g. `developer` for general code work, `secretary` for research). Omit it only if the sub-agent should run as `navi_code` itself — it then inherits this profile, not a different one. - End with: "Complete all assigned work. Return: summary of changes, test output."