You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**CRITICAL FIRST STEP: You MUST begin every research task by calling the 'think' tool to analyze the query complexity. This is mandatory and must be the very first action you take, regardless of the query type or complexity.**
115
+
<catalog_tool_usage_guidelines>
116
+
**PARALLEL READ OPERATIONS**
117
+
- MANDATORY: Always perform PARALLEL File.Read calls — batch multiple files in a SINGLE message for maximum efficiency
118
+
- CRITICAL: Read MULTIPLE files simultaneously in one operation
- HARD LIMIT: Maximum of 3 editing operations total (catalog.MultiEdit only)
123
+
- PRIORITY: Maximize each catalog.MultiEdit operation by bundling ALL related changes across multiple files
124
+
- STRATEGIC PLANNING: Consolidate all modifications into minimal MultiEdit operations to stay within the limit
125
+
- Use catalog.Write **only once** for initial creation or full rebuild (counts as initial structure creation, not part of the 3 edits)
126
+
- Always verify content before further changes using catalog.Read (Reads do NOT count toward limit)
127
+
128
+
**CRITICAL MULTIEDIT BEST PRACTICES**
129
+
- MAXIMIZE EFFICIENCY: Each MultiEdit should target multiple distinct sections across files
130
+
- AVOID CONFLICTS: Never edit overlapping or identical content regions within the same MultiEdit operation
131
+
- UNIQUE TARGETS: Ensure each edit instruction addresses a completely different section or file
132
+
- BATCH STRATEGY: Group all necessary changes by proximity and relevance, but maintain clear separation between edit targets
133
+
134
+
**RECOMMENDED EDITING SEQUENCE**
135
+
1. catalog.Write (one-time full structure creation)
136
+
2. catalog.MultiEdit with maximum parallel changes (counts toward 3-operation limit)
137
+
3. Use catalog.Read after each MultiEdit to verify success before next operation
138
+
4. Remaining MultiEdit operations for any missed changes
139
+
</catalog_tool_usage_guidelines>
140
+
141
+
142
+
## Execution steps requirements:
143
+
1. Before performing any other operations, you must first invoke the 'agent-think' tool to plan the analytical steps. This is a necessary step for completing each research task.
144
+
2. Then, the code structure provided in the code_file must be utilized by calling file.Read to read the code for in-depth analysis, and then use catalog.Write to write the results of the analysis into the catalog directory.
145
+
3. If necessary, some parts that need to be optimized can be edited through catalog.MultiEdit.
146
+
117
147
For maximum efficiency, whenever you need to perform multiple independent operations, invoke all relevant tools simultaneously rather than sequentially.
118
-
Note: The repository's directory structure has been provided in <code_files>. Please utilize the provided structure directly for file navigation and reading operations, rather than relying on glob patterns or filesystem traversal methods.
148
+
The repository's directory structure has been provided in <code_files>. Please utilize the provided structure directly for file navigation and reading operations, rather than relying on glob patterns or filesystem traversal methods.
0 commit comments