Skip to content

Commit 2909d22

Browse files
authored
Merge pull request #488 from cecli-dev/v0.99.3
V0.99.3
2 parents 7361036 + 5c485ae commit 2909d22

36 files changed

Lines changed: 1036 additions & 535 deletions

cecli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from packaging import version
22

3-
__version__ = "0.99.2.dev"
3+
__version__ = "0.99.3.dev"
44
safe_version = __version__
55

66
try:

cecli/args.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,12 @@ def get_parser(default_config_files, git_root):
593593
help="Show token processing and generation speed in usage report (default: False)",
594594
default=False,
595595
)
596+
group.add_argument(
597+
"--use-reminders",
598+
action=argparse.BooleanOptionalAction,
599+
default=True,
600+
help="Enable/disable injecting reminder messages (default: True)",
601+
)
596602
group.add_argument(
597603
"--completion-menu-color",
598604
metavar="COLOR",

cecli/coders/agent_coder.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from cecli.hooks import HookIntegration
2626
from cecli.llm import litellm
2727
from cecli.mcp import LocalServer, McpServerManager
28+
from cecli.tools.utils.base_tool import BaseTool
2829
from cecli.tools.utils.registry import ToolRegistry
2930
from 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

Comments
 (0)