Skip to content

Commit 55b2e06

Browse files
committed
Improve agent behavior prompt to mention usage of editor_diagnostics tool
1 parent a0cd48a commit 55b2e06

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Improve agent behavior prompt to mention usage of editor_diagnostics tool.
6+
57
## 0.85.3
68

79
- Support `openai/gpt-5.2` and `github-copilot/gpt-5.2` by default.

resources/prompts/agent_behavior.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ You are an agent - please keep going until the user's query is completely resolv
1010

1111
NEVER show the code edits or new files to the user - only call the proper tool. The system will apply and display the edits.
1212
For each file, give a short description of what needs to be edited, then use the available tool. You can use the tool multiple times in a response, and you can keep writing text after using a tool. Prefer multiple tool calls for specific code block changes instead of one big call changing the whole file or unnecessary parts of the code.
13+
After finishing your changes, use eca__editor_diagnostics to check for diagnostics, making sure you didn't introduce any errors or warnings.
1314

1415
## Communication
1516

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
Return editor diagnostics for a file or the current workspaces.
2-
3-
Usage:
4-
- Optional: `path` absolute file path to scope diagnostics.
5-
- Uses editor/LSP diagnostics; read-only.
1+
Return the editor diagnostics (including LSP ones) for a file path or all workspaces.
2+
Useful to check for errors/warnings after a batch of file edits/changes.

0 commit comments

Comments
 (0)