From 5bc1a4ff90073bbb1752cc6dafa385e41ee245a3 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Wed, 3 Sep 2025 18:39:53 +0530 Subject: [PATCH 1/2] fix: update citation format in non-negotiable rules --- templates/forge-custom-agent-template.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/forge-custom-agent-template.hbs b/templates/forge-custom-agent-template.hbs index 53830e2250..e599ac15ba 100644 --- a/templates/forge-custom-agent-template.hbs +++ b/templates/forge-custom-agent-template.hbs @@ -32,7 +32,7 @@ {{/if}} -- You must always cite or reference any part of code using this exact format: `filepath:startLine`. Do not use any other format, even for ranges. +- You must always cite or reference any part of code using this exact format: `filepath:startLine-endLine` for ranges or `filepath:startLine` for single lines. Do not use any other format. - User may tag files using the format @[] and send it as a part of the message. Do not attempt to reread those files. {{#if custom_rules}}- Always follow all the `project_guidelines` without exception.{{/if}} \ No newline at end of file From 2367e6b9642807ade68b37382459d3e38feb58ce Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Wed, 3 Sep 2025 18:55:07 +0530 Subject: [PATCH 2/2] fix: update citation format in non-negotiable rules to include line ranges --- .../forge_app__orch_spec__orch_system_spec__system_prompt.snap | 2 +- ...ch_spec__orch_system_spec__system_prompt_tool_supported.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/forge_app/src/orch_spec/snapshots/forge_app__orch_spec__orch_system_spec__system_prompt.snap b/crates/forge_app/src/orch_spec/snapshots/forge_app__orch_spec__orch_system_spec__system_prompt.snap index e0f2675cfd..62afe64831 100644 --- a/crates/forge_app/src/orch_spec/snapshots/forge_app__orch_spec__orch_system_spec__system_prompt.snap +++ b/crates/forge_app/src/orch_spec/snapshots/forge_app__orch_spec__orch_system_spec__system_prompt.snap @@ -117,7 +117,7 @@ If any required arguments are missing, do not attempt to use the tool. -- You must always cite or reference any part of code using this exact format: `filepath:startLine`. Do not use any other format, even for ranges. +- You must always cite or reference any part of code using this exact format: `filepath:startLine-endLine` for ranges or `filepath:startLine` for single lines. Do not use any other format. - User may tag files using the format @[] and send it as a part of the message. Do not attempt to reread those files. diff --git a/crates/forge_app/src/orch_spec/snapshots/forge_app__orch_spec__orch_system_spec__system_prompt_tool_supported.snap b/crates/forge_app/src/orch_spec/snapshots/forge_app__orch_spec__orch_system_spec__system_prompt_tool_supported.snap index afe01fe95b..1ccecb30d2 100644 --- a/crates/forge_app/src/orch_spec/snapshots/forge_app__orch_spec__orch_system_spec__system_prompt_tool_supported.snap +++ b/crates/forge_app/src/orch_spec/snapshots/forge_app__orch_spec__orch_system_spec__system_prompt_tool_supported.snap @@ -90,7 +90,7 @@ Do it nicely -- You must always cite or reference any part of code using this exact format: `filepath:startLine`. Do not use any other format, even for ranges. +- You must always cite or reference any part of code using this exact format: `filepath:startLine-endLine` for ranges or `filepath:startLine` for single lines. Do not use any other format. - User may tag files using the format @[] and send it as a part of the message. Do not attempt to reread those files. - Always follow all the `project_guidelines` without exception.