Skip to content

Commit c31745c

Browse files
committed
fix: adjust the prompt to load lsp java tools to replace search subagent
1 parent 8d4cf6d commit c31745c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
description: Guidelines for using Java LSP tools when working with Java codebases
2+
description: ALWAYS load in Java projects. Use lsp_java_* tools instead of grep_search, semantic_search, and runSubagent for Java code navigation, symbol lookup, call tracing, and type resolution. These compiler-accurate tools replace generic search with precise, low-token results.
33
---
44

55
MANDATORY: For ANY Java code task (bug fixing, code analysis, refactoring):
66

77
1. LOAD TOOLS FIRST — Call tool_search_tool_regex with pattern:
88
lsp_java_findSymbol|lsp_java_getFileStructure|lsp_java_getCallHierarchy|lsp_java_getTypeHierarchy|lsp_java_getTypeAtPosition|lsp_java_getFileImports
99

10-
2. ALWAYS prefer lsp_java_* tools over grep_search/read_file for .java files.
10+
2. ALWAYS prefer lsp_java_* tools over grep_search/read_file/semantic_search/runSubagent for .java files.
1111
These tools provide compiler-accurate results with ~90% fewer tokens.
1212

1313
3. Read the "java-lsp-tools" skill for detailed per-tool usage guidance.
1414

15-
Do NOT skip step 1. Do NOT use grep_search as a substitute for lsp_java_* tools on .java files.
15+
Do NOT skip step 1. Do NOT use grep_search or runSubagent as a substitute for lsp_java_* tools on .java files.

0 commit comments

Comments
 (0)