2525from cecli .hooks import HookIntegration
2626from cecli .llm import litellm
2727from cecli .mcp import LocalServer , McpServerManager
28+ from cecli .tools .utils .base_tool import BaseTool
2829from cecli .tools .utils .registry import ToolRegistry
2930from cecli .utils import copy_tool_call , tool_call_to_dict
3031
@@ -52,12 +53,9 @@ def __init__(self, *args, **kwargs):
5253 self .read_tools = {
5354 "command" ,
5455 "commandinteractive" ,
55- "viewfilesatglob" ,
56- "viewfilesmatching" ,
56+ "exploresymbols" ,
5757 "ls" ,
58- "viewfileswithsymbol" ,
5958 "grep" ,
60- "listchanges" ,
6159 "showcontext" ,
6260 "thinking" ,
6361 "updatetodolist" ,
@@ -328,7 +326,7 @@ async def _execute_local_tool_calls(self, tool_calls_list):
328326 {"role" : "tool" , "tool_call_id" : tool_call .id , "content" : result_message }
329327 )
330328
331- if self .auto_lint and used_write_tool and not self . edit_allowed :
329+ if self .auto_lint and used_write_tool :
332330 edited = list (self .files_edited_by_tools )
333331 lint_errors = self .lint_edited (edited , show_output = False )
334332 self .lint_outcome = not lint_errors
@@ -1160,7 +1158,7 @@ def _add_file_to_context(self, file_path, explicit=False):
11601158
11611159 Parameters:
11621160 - file_path: Path to the file to add
1163- - explicit: Whether this was an explicit view command (vs. implicit through ViewFilesMatching )
1161+ - explicit: Whether this was an explicit view command (vs. implicit through other tools )
11641162 """
11651163 abs_path = self .abs_root_path (file_path )
11661164 rel_path = self .get_rel_fname (abs_path )
@@ -1205,7 +1203,7 @@ async def check_for_file_mentions(self, content):
12051203
12061204 Override parent's method to disable implicit file mention handling in agent mode.
12071205 Files should only be added via explicit tool commands
1208- (`View`, `ViewFilesAtGlob`, `ViewFilesMatching`, `ViewFilesWithSymbol `).
1206+ (`ContextManager `).
12091207 """
12101208 pass
12111209
@@ -1217,6 +1215,7 @@ async def preproc_user_input(self, inp):
12171215 inp = await super ().preproc_user_input (inp )
12181216 inp = self .wrap_user_input (inp )
12191217
1218+ BaseTool .clear_invocation_cache ()
12201219 self .agent_finished = False
12211220 self .turn_count = 0
12221221 return inp
0 commit comments