From 7577d3b8d52b24879b6dc95d93c9e6876fc3c1fa Mon Sep 17 00:00:00 2001 From: Nelson Herrera Date: Mon, 18 May 2026 08:54:16 -0700 Subject: [PATCH] Updated the default system prompt to also use xml boundaries instead of using ## so that agents are less likely to ingest a prompt with unclear boundaries. --- packages/coding-agent/src/core/system-prompt.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/coding-agent/src/core/system-prompt.ts b/packages/coding-agent/src/core/system-prompt.ts index 3675e4133..a88b41b31 100644 --- a/packages/coding-agent/src/core/system-prompt.ts +++ b/packages/coding-agent/src/core/system-prompt.ts @@ -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\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 += `\n${content}\n\n\n`; } + prompt += "\n"; } // Append skills section (only if read tool is available)