Skip to content

Commit 7caff5f

Browse files
committed
Adjust claude-code context
* Keep the replace_content tool enabled * Instruct the agent to use Serena's editing tools, especially when editing code that was read through Serena This is in reaction to Claude Code's editing tool denying edits without corresponding prior reads Resolves #1400
1 parent 110ddff commit 7caff5f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/serena/resources/config/contexts/claude-code.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ prompt: |
77
**IMPORTANT**: If you haven't seen Serena's tools yet, you should use the tool search tool to load all of them
88
right now.
99
For exploring and reading code in a token-efficient manner, use Serena's code-centric overview and symbolic search tools.
10-
For edits, where it makes sense, use Serena's editing tools since they are more token efficient.
11-
Use your own editing tools only if Serena's editing tools would be suboptimal.
12-
**IMPORTANT**: Never use a tool before reading its schema via the tool-search tool!
10+
For edits, prefer Serena's editing tools since they are more token efficient.
11+
Especially when editing code you have read through Serena, ALWAYS use Serena's tools for editing, because your built-in tools will deny such edits (they will assume you haven't read the content).
12+
**IMPORTANT**: Never use a tool before having read its schema via the tool-search tool!
1313
1414
1515
excluded_tools:
1616
- create_text_file
1717
- read_file
1818
- execute_shell_command
19-
- replace_content
2019
- find_file
2120
- list_dir
2221
- search_for_pattern

0 commit comments

Comments
 (0)