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
@@ -1018,25 +1016,25 @@ def _generate_tool_context(self, repetitive_tools):
10181016
10191017 if not self .model_kwargs :
10201018 self .model_kwargs = {
1021- "temperature" : default_temp + 0.1 ,
1022- "frequency_penalty" : default_fp + 0.2 ,
1019+ "temperature" : default_temp + 2 ** - 5 ,
1020+ "frequency_penalty" : default_fp + 2 ** - 5 ,
10231021 # "presence_penalty": 0.1,
10241022 }
10251023 else :
10261024 temperature = nested .getter (self .model_kwargs , "temperature" , default_temp )
10271025 freq_penalty = nested .getter (self .model_kwargs , "frequency_penalty" , default_fp )
10281026
1029- self .model_kwargs ["temperature" ] = temperature + 0.1
1030- self .model_kwargs ["frequency_penalty" ] = freq_penalty + 0.1
1027+ self .model_kwargs ["temperature" ] = temperature + 2 ** - 5
1028+ self .model_kwargs ["frequency_penalty" ] = freq_penalty + 2 ** - 5
10311029
10321030 if random .random () < 0.2 :
10331031 self .model_kwargs ["temperature" ] = max (
10341032 default_temp ,
1035- temperature - 0.15 ,
1033+ temperature - 2 ** - 4 ,
10361034 )
10371035 self .model_kwargs ["frequency_penalty" ] = max (
10381036 default_fp ,
1039- freq_penalty - 0.15 ,
1037+ freq_penalty - 2 ** - 4 ,
10401038 )
10411039
10421040 self .model_kwargs ["temperature" ] = max (
@@ -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