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
|
// Append project context files
|
||||||
if (contextFiles.length > 0) {
|
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";
|
prompt += "Project-specific instructions and guidelines:\n\n";
|
||||||
for (const { path: filePath, content } of contextFiles) {
|
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)
|
// Append skills section (only if read tool is available)
|
||||||
|
|||||||
Reference in New Issue
Block a user