Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cecli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from packaging import version

__version__ = "0.99.2.dev"
__version__ = "0.99.3.dev"
safe_version = __version__

try:
Expand Down
6 changes: 6 additions & 0 deletions cecli/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,12 @@ def get_parser(default_config_files, git_root):
help="Show token processing and generation speed in usage report (default: False)",
default=False,
)
group.add_argument(
"--use-reminders",
action=argparse.BooleanOptionalAction,
default=True,
help="Enable/disable injecting reminder messages (default: True)",
)
group.add_argument(
"--completion-menu-color",
metavar="COLOR",
Expand Down
13 changes: 6 additions & 7 deletions cecli/coders/agent_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from cecli.hooks import HookIntegration
from cecli.llm import litellm
from cecli.mcp import LocalServer, McpServerManager
from cecli.tools.utils.base_tool import BaseTool
from cecli.tools.utils.registry import ToolRegistry
from cecli.utils import copy_tool_call, tool_call_to_dict

Expand Down Expand Up @@ -52,12 +53,9 @@ def __init__(self, *args, **kwargs):
self.read_tools = {
"command",
"commandinteractive",
"viewfilesatglob",
"viewfilesmatching",
"exploresymbols",
"ls",
"viewfileswithsymbol",
"grep",
"listchanges",
"showcontext",
"thinking",
"updatetodolist",
Expand Down Expand Up @@ -328,7 +326,7 @@ async def _execute_local_tool_calls(self, tool_calls_list):
{"role": "tool", "tool_call_id": tool_call.id, "content": result_message}
)

if self.auto_lint and used_write_tool and not self.edit_allowed:
if self.auto_lint and used_write_tool:
edited = list(self.files_edited_by_tools)
lint_errors = self.lint_edited(edited, show_output=False)
self.lint_outcome = not lint_errors
Expand Down Expand Up @@ -1160,7 +1158,7 @@ def _add_file_to_context(self, file_path, explicit=False):

Parameters:
- file_path: Path to the file to add
- explicit: Whether this was an explicit view command (vs. implicit through ViewFilesMatching)
- explicit: Whether this was an explicit view command (vs. implicit through other tools)
"""
abs_path = self.abs_root_path(file_path)
rel_path = self.get_rel_fname(abs_path)
Expand Down Expand Up @@ -1205,7 +1203,7 @@ async def check_for_file_mentions(self, content):

Override parent's method to disable implicit file mention handling in agent mode.
Files should only be added via explicit tool commands
(`View`, `ViewFilesAtGlob`, `ViewFilesMatching`, `ViewFilesWithSymbol`).
(`ContextManager`).
"""
pass

Expand All @@ -1217,6 +1215,7 @@ async def preproc_user_input(self, inp):
inp = await super().preproc_user_input(inp)
inp = self.wrap_user_input(inp)

BaseTool.clear_invocation_cache()
self.agent_finished = False
self.turn_count = 0
return inp
Expand Down
Loading
Loading