mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user