From b5c6352587d6ad62e4f90821a468f1d06cc0af6d Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 23 Jun 2026 03:21:24 -0400 Subject: [PATCH 1/9] Don't yap for the LLM --- cecli/helpers/conversation/files.py | 14 ---- cecli/helpers/conversation/integration.py | 85 +---------------------- 2 files changed, 2 insertions(+), 97 deletions(-) diff --git a/cecli/helpers/conversation/files.py b/cecli/helpers/conversation/files.py index 8b703e674ae..78eee14028f 100644 --- a/cecli/helpers/conversation/files.py +++ b/cecli/helpers/conversation/files.py @@ -289,26 +289,12 @@ def update_file_diff(self, fname: str) -> Optional[str]: ), } - assistant_msg = { - "role": "assistant", - "content": ( - f"Thank you for sharing this {prefix_str}diff of the updates to {rel_fname}." - " I will review their contents." - ), - } - ConversationService.get_manager(coder).add_message( message_dict=diff_message, tag=MessageTag.DIFFS, hash_key=("file_diff_user", rel_fname, content_hash), ) - ConversationService.get_manager(coder).add_message( - message_dict=assistant_msg, - tag=MessageTag.DIFFS, - hash_key=("file_diff_assistant", rel_fname, content_hash), - ) - return diff def get_file_stub(self, fname: str) -> str: diff --git a/cecli/helpers/conversation/integration.py b/cecli/helpers/conversation/integration.py index a9381d4ecbb..da52ec5e6a6 100644 --- a/cecli/helpers/conversation/integration.py +++ b/cecli/helpers/conversation/integration.py @@ -527,10 +527,6 @@ def add_repo_map_messages(self) -> List[Dict[str, Any]]: # Create repository map messages dict_repo_messages = [ dict(role="user", content=repo_content), - dict( - role="assistant", - content="Thank you, these files will help with navigating the codebase.", - ), ] # Add messages to conversation manager with appropriate priority @@ -579,11 +575,6 @@ def add_rules_messages(self) -> List[Dict[str, Any]]: "role": "user", "content": f"Rules defined in {rel_fname}:\n\n{content}", } - # Create assistant message - assistant_msg = { - "role": "assistant", - "content": f"I understand the rules in {rel_fname} and will follow them.", - } # Add to ConversationManager with RULES tag ConversationService.get_manager(coder).add_message( @@ -594,15 +585,7 @@ def add_rules_messages(self) -> List[Dict[str, Any]]: update_timestamp=False, ) - ConversationService.get_manager(coder).add_message( - message_dict=assistant_msg, - tag=MessageTag.RULES, - hash_key=("rules_assistant", fname), - force=True, - update_timestamp=False, - ) - - messages.extend([user_msg, assistant_msg]) + messages.extend([user_msg]) return messages @@ -667,20 +650,6 @@ def add_readonly_files_messages(self) -> List[Dict[str, Any]]: ) messages.append(user_msg) - # Add assistant message with file path as hash_key - assistant_msg = { - "role": "assistant", - "content": f"Thank you for sharing the file contents for {rel_fname}.", - } - ConversationService.get_manager(coder).add_message( - message_dict=assistant_msg, - tag=MessageTag.READONLY_FILES, - hash_key=("file_assistant", fname), # Use file path as part of hash_key - force=True, - update_timestamp=False, - ) - messages.append(assistant_msg) - # Check if file has changed and add diff message if needed if ConversationService.get_files(coder).has_file_changed(fname): ConversationService.get_files(coder).update_file_diff(fname) @@ -692,13 +661,6 @@ def add_readonly_files_messages(self) -> List[Dict[str, Any]]: # Add individual image message to result messages.append(img_msg) - # Add individual assistant acknowledgment for each image - assistant_msg = { - "role": "assistant", - "content": "Ok, I will use this image as a reference.", - } - messages.append(assistant_msg) - # Get the file name from the message (stored in image_file key) fname = img_msg.get("image_file") if fname: @@ -708,11 +670,6 @@ def add_readonly_files_messages(self) -> List[Dict[str, Any]]: tag=MessageTag.READONLY_FILES, hash_key=("image_user", fname), ) - ConversationService.get_manager(coder).add_message( - message_dict=assistant_msg, - tag=MessageTag.READONLY_FILES, - hash_key=("image_assistant", fname), - ) return messages @@ -767,15 +724,9 @@ def add_chat_files_messages(self) -> Dict[str, Any]: "content": f"{file_preamble}\n{rel_fname}\n\n{content}\n\n{file_postamble}", } - # Create assistant message - assistant_msg = { - "role": "assistant", - "content": f"Thank you for sharing the file contents for {rel_fname}.", - } - # Determine tag based on editability tag = MessageTag.CHAT_FILES - result["chat_files"].extend([user_msg, assistant_msg]) + result["chat_files"].extend([user_msg]) # Add user message to ConversationManager with file path as hash_key ConversationService.get_manager(coder).add_message( @@ -786,15 +737,6 @@ def add_chat_files_messages(self) -> Dict[str, Any]: update_timestamp=False, ) - # Add assistant message to ConversationManager with file path as hash_key - ConversationService.get_manager(coder).add_message( - message_dict=assistant_msg, - tag=tag, - hash_key=("file_assistant", fname), # Use file path as part of hash_key - force=True, - update_timestamp=False, - ) - # Check if file has changed and add diff message if needed if ConversationService.get_files(coder).has_file_changed(fname): ConversationService.get_files(coder).update_file_diff(fname) @@ -806,13 +748,6 @@ def add_chat_files_messages(self) -> Dict[str, Any]: # Add individual image message to result result["chat_files"].append(img_msg) - # Add individual assistant acknowledgment for each image - assistant_msg = { - "role": "assistant", - "content": "Ok, I will use this image as a reference.", - } - result["chat_files"].append(assistant_msg) - # Get the file name from the message (stored in image_file key) fname = img_msg.get("image_file") if fname: @@ -822,11 +757,6 @@ def add_chat_files_messages(self) -> Dict[str, Any]: tag=MessageTag.CHAT_FILES, hash_key=("image_user", fname), ) - ConversationService.get_manager(coder).add_message( - message_dict=assistant_msg, - tag=MessageTag.CHAT_FILES, - hash_key=("image_assistant", fname), - ) return result @@ -858,11 +788,6 @@ def add_file_context_messages(self, promote_messages=True) -> None: "content": f"ID-Prefixed Context For:\n{rel_fname}\n\n{context_content}", } - assistant_msg = { - "role": "assistant", - "content": f"Thank you for sharing the prefixed file contents for {rel_fname}.", - } - # Add to conversation manager content_hash = xxhash.xxh3_128_hexdigest(context_content.encode("utf-8")) ConversationService.get_manager(coder).queue_message( @@ -871,12 +796,6 @@ def add_file_context_messages(self, promote_messages=True) -> None: hash_key=("file_context_user", file_path, content_hash), ) - ConversationService.get_manager(coder).queue_message( - message_dict=assistant_msg, - tag=MessageTag.FILE_CONTEXTS, - hash_key=("file_context_assistant", file_path, content_hash), - ) - def reset(self) -> None: """ Reset the entire conversation system to initial state. From 857cf690fb58c87bf75b6525d072cbef246dea21 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 23 Jun 2026 03:32:57 -0400 Subject: [PATCH 2/9] Update repo links in docs --- cecli/coders/base_coder.py | 3 +- cecli/urls.py | 8 ++-- cecli/versioncheck.py | 2 +- cecli/website/_config.yml | 4 +- cecli/website/_includes/help.md | 2 +- cecli/website/docs/benchmarks-1106.md | 2 +- cecli/website/docs/benchmarks-speed-1106.md | 2 +- cecli/website/docs/benchmarks.md | 8 ++-- .../website/docs/config/adv-model-settings.md | 2 +- cecli/website/docs/config/agent-mode.md | 2 +- .../docs/config/{aider_conf.md => conf.md} | 37 +------------------ cecli/website/docs/config/dotenv.md | 2 +- cecli/website/docs/config/reasoning.md | 2 +- cecli/website/docs/ctags.md | 4 +- cecli/website/docs/git.md | 2 +- cecli/website/docs/languages.md | 2 +- cecli/website/docs/leaderboards/contrib.md | 4 +- cecli/website/docs/leaderboards/edit.md | 4 +- cecli/website/docs/more/analytics.md | 4 +- cecli/website/docs/repomap.md | 4 +- cecli/website/docs/scripting.md | 2 +- cecli/website/docs/troubleshooting/imports.md | 2 +- cecli/website/docs/unified-diffs.md | 2 +- cecli/website/docs/usage/optional.md | 2 +- 24 files changed, 35 insertions(+), 73 deletions(-) rename cecli/website/docs/config/{aider_conf.md => conf.md} (92%) diff --git a/cecli/coders/base_coder.py b/cecli/coders/base_coder.py index ceeb4862a3d..bb677a15e68 100755 --- a/cecli/coders/base_coder.py +++ b/cecli/coders/base_coder.py @@ -876,9 +876,8 @@ def get_announcements(self): env_items.append(f"{rel_repo_dir} ({num_files:,} files)") if num_files > 1000: env_items.append( - "Warning: For large repos, consider using --subtree-only and .cecli_ignore" + "Warning: For large repos, consider using --subtree-only and .cecli.ignore" ) - env_items.append(f"See: {urls.large_repos}") else: env_items.append("no git repo") diff --git a/cecli/urls.py b/cecli/urls.py index d2e30182dc9..9a5c44c0593 100644 --- a/cecli/urls.py +++ b/cecli/urls.py @@ -1,16 +1,14 @@ website = "https://cecli.dev/" -add_all_files = "https://cecli.dev/docs/faq.html#how-can-i-add-all-the-files-to-the-chat" edit_errors = "https://cecli.dev/docs/troubleshooting/edit-errors.html" git = "https://cecli.dev/docs/git.html" -enable_playwright = "https://cecli.dev/docs/install/optional.html#enable-playwright" +enable_playwright = "https://cecli.dev/docs/usage/optional.html#enable-playwright" favicon = "https://cecli.dev/assets/cecli-temp-logo-favicon.svg" model_warnings = "https://cecli.dev/docs/llms/warnings.html" token_limits = "https://cecli.dev/docs/troubleshooting/token-limits.html" llms = "https://cecli.dev/docs/llms.html" -large_repos = "https://cecli.dev/docs/faq.html#can-i-use-cecli-in-a-large-mono-repo" -github_issues = "https://github.com/dwash96/cecli/issues/new" +github_issues = "https://github.com/cecli-dev/cecli/issues/new" git_index_version = "https://github.com/Aider-AI/aider/issues/211" install_properly = "https://cecli.dev/docs/troubleshooting/imports.html" -release_notes = "https://github.com/dwash96/cecli/releases/latest" +release_notes = "https://github.com/cecli-dev/cecli/releases/latest" edit_formats = "https://cecli.dev/docs/more/edit-formats.html" models_and_keys = "https://cecli.dev/docs/troubleshooting/models-and-keys.html" diff --git a/cecli/versioncheck.py b/cecli/versioncheck.py index 05d13fe964f..95ff02b32b7 100644 --- a/cecli/versioncheck.py +++ b/cecli/versioncheck.py @@ -21,7 +21,7 @@ async def install_from_main_branch(io): io, None, "Install the development version of cecli from the main branch?", - ["git+https://github.com/dwash96/cecli.git"], + ["git+https://github.com/cecli-dev/cecli.git"], self_update=True, ) diff --git a/cecli/website/_config.yml b/cecli/website/_config.yml index f88ca4c1b1f..5b664e866ae 100644 --- a/cecli/website/_config.yml +++ b/cecli/website/_config.yml @@ -24,7 +24,7 @@ exclude: aux_links: "GitHub": - - "https://github.com/dwash96/cecli" + - "https://github.com/cecli-dev/cecli" "Discord": - "https://discord.gg/AX9ZEA7nJn" "Support": @@ -32,7 +32,7 @@ aux_links: nav_external_links: - title: "GitHub" - url: "https://github.com/dwash96/cecli" + url: "https://github.com/cecli-dev/cecli" - title: "Discord" url: "https://discord.gg/AX9ZEA7nJn" - title: "Support" diff --git a/cecli/website/_includes/help.md b/cecli/website/_includes/help.md index 89955bac765..2999741f739 100644 --- a/cecli/website/_includes/help.md +++ b/cecli/website/_includes/help.md @@ -1,5 +1,5 @@ If you need more help, please check our -[GitHub issues](https://github.com/dwash96/cecli/issues) +[GitHub issues](https://github.com/cecli-dev/cecli/issues) and file a new issue if your problem isn't discussed. Or drop into our [Discord](https://discord.gg/g4bF53fSWF) diff --git a/cecli/website/docs/benchmarks-1106.md b/cecli/website/docs/benchmarks-1106.md index 1555ef3bd55..a66892d1351 100644 --- a/cecli/website/docs/benchmarks-1106.md +++ b/cecli/website/docs/benchmarks-1106.md @@ -19,7 +19,7 @@ and there's a lot of interest about their ability to code compared to the previous versions. With that in mind, I've been benchmarking the new models. -[cecli](https://github.com/dwash96/cecli) +[cecli](https://github.com/cecli-dev/cecli) is an open source command line chat tool that lets you work with GPT to edit code in your local git repo. To do this, cecli needs to be able to reliably recognize when GPT wants to edit diff --git a/cecli/website/docs/benchmarks-speed-1106.md b/cecli/website/docs/benchmarks-speed-1106.md index 36c3edd8c52..db91a9e7959 100644 --- a/cecli/website/docs/benchmarks-speed-1106.md +++ b/cecli/website/docs/benchmarks-speed-1106.md @@ -20,7 +20,7 @@ and there's a lot of interest about their capabilities and performance. With that in mind, I've been benchmarking the new models. -[cecli](https://github.com/dwash96/cecli) +[cecli](https://github.com/cecli-dev/cecli) is an open source command line chat tool that lets you work with GPT to edit code in your local git repo. cecli relies on a diff --git a/cecli/website/docs/benchmarks.md b/cecli/website/docs/benchmarks.md index 108cc67ca3c..8226a276266 100644 --- a/cecli/website/docs/benchmarks.md +++ b/cecli/website/docs/benchmarks.md @@ -168,7 +168,7 @@ requests: ### whole The -[whole](https://github.com/dwash96/cecli/blob/main/cecli/coders/wholefile_prompts.py) +[whole](https://github.com/cecli-dev/cecli/blob/main/cecli/coders/wholefile_prompts.py) format asks GPT to return an updated copy of the entire file, including any changes. The file should be formatted with normal markdown triple-backtick fences, inlined with the rest of its response text. @@ -187,7 +187,7 @@ def main(): ### diff -The [diff](https://github.com/dwash96/cecli/blob/main/cecli/coders/editblock_prompts.py) +The [diff](https://github.com/cecli-dev/cecli/blob/main/cecli/coders/editblock_prompts.py) format also asks GPT to return edits as part of the normal response text, in a simple diff format. Each edit is a fenced code block that @@ -209,7 +209,7 @@ demo.py ### whole-func -The [whole-func](https://github.com/dwash96/cecli/blob/main/cecli/coders/wholefile_func_coder.py) +The [whole-func](https://github.com/cecli-dev/cecli/blob/main/cecli/coders/wholefile_func_coder.py) format requests updated copies of whole files to be returned using the function call API. @@ -227,7 +227,7 @@ format requests updated copies of whole files to be returned using the function ### diff-func The -[diff-func](https://github.com/dwash96/cecli/blob/main/cecli/coders/editblock_func_coder.py) +[diff-func](https://github.com/cecli-dev/cecli/blob/main/cecli/coders/editblock_func_coder.py) format requests a list of original/updated style edits to be returned using the function call API. diff --git a/cecli/website/docs/config/adv-model-settings.md b/cecli/website/docs/config/adv-model-settings.md index a96d8b80cbd..e2d4c6c5997 100644 --- a/cecli/website/docs/config/adv-model-settings.md +++ b/cecli/website/docs/config/adv-model-settings.md @@ -122,7 +122,7 @@ These settings will be merged with any model-specific settings, with the Below are all the pre-configured model settings to give a sense for the settings which are supported. You can also look at the `ModelSettings` class in -[models.py](https://github.com/dwash96/cecli/blob/main/cecli/models.py) +[models.py](https://github.com/cecli-dev/cecli/blob/main/cecli/models.py) file for more details about all of the model setting that cecli supports. The first entry shows all the settings, with their default values. diff --git a/cecli/website/docs/config/agent-mode.md b/cecli/website/docs/config/agent-mode.md index f0d7e01fa02..5f3f69af14d 100644 --- a/cecli/website/docs/config/agent-mode.md +++ b/cecli/website/docs/config/agent-mode.md @@ -306,7 +306,7 @@ agent-config: skills_init: ["python-refactoring"] ``` -For complete documentation on creating and using skills, including skill directory structure, SKILL.md format, and best practices, see the [Skills documentation](https://github.com/dwash96/cecli/blob/main/cecli/website/docs/config/skills.md). +For complete documentation on creating and using skills, including skill directory structure, SKILL.md format, and best practices, see the [Skills documentation](https://github.com/cecli-dev/cecli/blob/main/cecli/website/docs/config/skills.md). ### Benefits - **Autonomous operation**: Reduces need for manual file management diff --git a/cecli/website/docs/config/aider_conf.md b/cecli/website/docs/config/conf.md similarity index 92% rename from cecli/website/docs/config/aider_conf.md rename to cecli/website/docs/config/conf.md index b4d0c31aa47..efcb199eb1e 100644 --- a/cecli/website/docs/config/aider_conf.md +++ b/cecli/website/docs/config/conf.md @@ -40,7 +40,7 @@ read: [CONVENTIONS.md, anotherfile.txt, thirdfile.py] Below is a sample of the YAML config file, which you can also -[download from GitHub](https://github.com/dwash96/cecli/blob/main/cecli/website/assets/sample.cecli.conf.yml). +[download from GitHub](https://github.com/cecli-dev/cecli/blob/main/cecli/website/assets/sample.cecli.conf.yml). diff --git a/cecli/website/docs/config/dotenv.md b/cecli/website/docs/config/dotenv.md index 089b02c9a17..f987d477701 100644 --- a/cecli/website/docs/config/dotenv.md +++ b/cecli/website/docs/config/dotenv.md @@ -26,7 +26,7 @@ If the files above exist, they will be loaded in that order. Files loaded last w Below is a sample `.env` file, which you can also -[download from GitHub](https://github.com/dwash96/cecli/blob/main/cecli/website/assets/sample.env). +[download from GitHub](https://github.com/cecli-dev/cecli/blob/main/cecli/website/assets/sample.env).