Merge pull request #4709 from herrnel/fix/apply-explicit-fences-to-default-prompt

Fix(coding-agent) Updated default prompt to also use xml boundaries instead of ## for clearer file seperation.
This commit is contained in:
Mario Zechner
2026-05-18 22:21:01 +02:00
committed by GitHub
Unverified
@@ -153,11 +153,12 @@ Pi documentation (read only when the user asks about pi itself, its SDK, extensi
// Append project context files
if (contextFiles.length > 0) {
prompt += "\n\n# Project Context\n\n";
prompt += "\n\n<project_context>\n\n";
prompt += "Project-specific instructions and guidelines:\n\n";
for (const { path: filePath, content } of contextFiles) {
prompt += `## ${filePath}\n\n${content}\n\n`;
prompt += `<project_instructions path="${filePath}">\n${content}\n</project_instructions>\n\n`;
}
prompt += "</project_context>\n";
}
// Append skills section (only if read tool is available)