{"id":22870588,"url":"https://github.com/knoxai/buddy","last_synced_at":"2025-05-07T15:24:44.912Z","repository":{"id":267527652,"uuid":"889850423","full_name":"knoxai/buddy","owner":"knoxai","description":"Buddy DevOps自动化运维与VS Code及其兼容扩展AI代码助理并驾齐驱","archived":false,"fork":false,"pushed_at":"2025-01-27T03:12:52.000Z","size":75346,"stargazers_count":10,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T11:31:36.458Z","etag":null,"topics":["ai","anthropic","buddy","buddyred","buddyworks","cicd","cloud","codeserver","containers","devops","docker","gpt","ide","mistral","openai","openai-api","pipelines","theia","vscodium","webide"],"latest_commit_sha":null,"homepage":"https://open-vsx.org/extension/Buddy/buddy","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knoxai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-17T12:06:39.000Z","updated_at":"2025-03-08T23:40:01.000Z","dependencies_parsed_at":"2025-02-06T17:01:35.540Z","dependency_job_id":null,"html_url":"https://github.com/knoxai/buddy","commit_stats":null,"previous_names":["knoxai/buddy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxai%2Fbuddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxai%2Fbuddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxai%2Fbuddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxai%2Fbuddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knoxai","download_url":"https://codeload.github.com/knoxai/buddy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252903809,"owners_count":21822500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","anthropic","buddy","buddyred","buddyworks","cicd","cloud","codeserver","containers","devops","docker","gpt","ide","mistral","openai","openai-api","pipelines","theia","vscodium","webide"],"created_at":"2024-12-13T13:15:12.437Z","updated_at":"2025-05-07T15:24:44.907Z","avatar_url":"https://github.com/knoxai.png","language":null,"readme":"## [Buddy ](https://buddy.red)是一个帮助程序员编程的AI助理VS Code插件 | Cursor平替AI代码助理、随意使用任何兼容OpenAI API的模型。\n\n![](./media/cn-chat-box.png)\n\n**Buddy** 旨在无缝集成到VS Code或其他相关的兼容编辑器中，为开发者提供智能助理以提高生产力和简化工作流程。使用Buddy，开发人员可以随意挑选当前强大的AI功能轻松浏览代码库、编写和调试代码，并对项目管理。\n\n### 特色功能\n\n#### **1. 搜索整个代码仓并联网提供辅助信息**\n快捷搜索您的整个代码库，包括文件、代码和文档，如若联网并给予相关信息链接确保获取及时更新的信息。Buddy的智能搜索功能能快速访问特定所指、函数或关键词，为您节省时间和提高效率。\n\n| ![](./media/searchRepoUrl.gif) |\n| ---------------------------------------- |\n\n#### **2. AI驱动的代码自动补全**  \n通过AI驱动的自动补全提高编码效率。Buddy理解您的上下文环境，并提供智能代码建议，美化结构和修正缩进等让您加速开发进程。\n\n| ![](./media/autoComplete.gif) |\n| --------------------------------------- |\n\n#### **3. 将选中的代码添加到聊天**\n\n使用快捷键 **Cmd/Ctrl + L** 可以快速将编辑器中选中的代码传送到聊天框。此功能让您在不中断工作流程的情况下便捷交互代码。\n\n| ![](./media/addSelectCode.gif) |\n| ---------------------------------------- |\n\n#### **4. 在聊天中编辑选中的代码**\n利用快捷键 **Cmd/Ctrl + I**，不仅可以将选中的代码从编辑器添加到聊天框，还可以编辑代码。此功能使您能够直接优化和修改代码。\n\n| ![](./media/editSelectCode.gif) |\n| ----------------------------------------- |\n\n#### **5. 上下文环境来源**\n\n以添加上下文环境来源作为插件，让您访问特定信息，并将其整合到对话中。当您输入 “@” 时，会出现一个下拉菜单，显示可用的内容，可以用作与模型交互时的资源环境。这让您可以在互动时轻松引用并提供相关信息给大型语言模型。\n\n- **文件**\n\n| ![](./media/atFile.gif) |\n| --------------------------------- |\n\n- **代码库**\n- **提示词文件**\n- **代码**\n- **文档**\n- **Git 差异**\n- **终端**\n- **问题**\n- **文件夹**\n\n#### **6. 右键操作**  \n\n使用直观的右键选项简化编码任务： \n\n- **优化代码**\n- **修复代码**\n- **修正语法/拼写**\n- **添加所选代码至环境**\n- **编写文档字符串**\n- **编写注释**\n\n| ![](./media/writeComments.gif) |\n| ---------------------------------------- |\n\n- **写文档字符串**\n\n#### **7. 选择文件作为上下文环境来源**\n\n“选择文件作为上下文”功能允许您右键点击文件，并将其作为上下文环境。此功能将所选文件的内容整合到您的工作流程中，为大型语言模型提供直接的相关信息，增强功能性和效率。\n\n| ![](./media/FilesAsContext.gif) |\n| ----------------------------------------- |\n\n#### **8. 附加图片作为上下文环境**\n\n| ![](./media/imageAsContext.gif) |\n| ----------------------------------------- |\n\n#### **9. 聊天对话里便捷的代码片段：应用代码、光标位置插入、复制与空文件添加内容**\n\n| ![](./media/codeInteraction.gif) |\n| ------------------------------------------ |\n\n---\n\n### 安装说明  \n下载安装Buddy，如果遇到与您的操作系统不兼容时，选取相应适合您操作系统的版本下载`.vsix`扩展安装，或使用[英文版](https://open-vsx.org/extension/Buddy/buddy)，即可使用Buddy的全部功能！\n\nBuddy帮助开发者编写简洁、高效且可维护的代码，同时减少在重复性任务上花费的时间。无论您是在调试、编写文档还是进行优化，Buddy都是您可靠的编码伙伴。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknoxai%2Fbuddy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknoxai%2Fbuddy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknoxai%2Fbuddy/lists"}