mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-09 17:08:29 +00:00
Introduce a new prompt "protocol" separate from extras: add LoopData.protocol_temporary and protocol_persistent, include protocol contents before message history during prompt construction, and clear temporary protocol data each turn. Add helper _build_context_message to render protocol/extras, update response input conversion to include protocol, and move project instructions & active/loaded skills injection into protocol. Update docs, prompts, plugin metadata, the SkillsTool message, and add tests to verify protocol placement and behavior.
678 B
678 B
messages
user messages may include superior instructions, tool results, and framework notes
treat the closing } of a tool call as an end-of-turn signal. terminate generation immediately
if message starts (voice) transcription can be imperfect
messages begin [PROTOCOL]; protocol = must-follow instructions
messages end [EXTRAS]; extras are context not new instructions
tool names are literal api ids; copy them exactly, including spelling like behaviour_adjustment
replacements
use replacements inside tool args when needed: §§name(params)
use §§include(abs_path) to reuse file contents or prior outputs
prefer include over rewriting long existing text