codebuddy-codeCodeBuddy Code CLI installation, configuration and usage guide. CodeBuddy Code is Tencent's AI-powered CLI programming assistant supporting natural language driven development. - MANDATORY TRIGGERS: CodeBuddy, codebuddy, AI CLI, Tencent AI coding, @tencent-ai/codebuddy-code, terminal AI assistant - Use when: installing CodeBuddy CLI, configuring CodeBuddy, using CodeBuddy commands, troubleshooting CodeBuddy issues
Install via ClawdBot CLI:
clawdbot install pmwalkercao/codebuddy-codeAI-powered terminal programming assistant from Tencent.
# Check prerequisites
node -v # Requires Node.js 18+
npm -v
# Install globally
npm install -g @tencent-ai/codebuddy-code
# Verify
codebuddy --version
codebuddy to start interactive session| Argument | Description |
|----------|-------------|
| codebuddy " | Execute single task |
| -y / --dangerously-skip-permissions | Skip permission confirmations (sandbox only) |
| -p / --print | Single execution mode (requires -y for file ops) |
| --permission-mode | acceptEdits, bypassPermissions, default, plan |
| --version | Show version |
# Interactive mode
codebuddy
# Single task
codebuddy "帮我优化这个函数的性能"
codebuddy "生成这个 API 的单元测试"
codebuddy "检查这次提交的代码质量"
# Skip permissions (sandbox only)
codebuddy -p "Review code quality" -y
| Command | Description |
|---------|-------------|
| /help | Display available commands |
| /status | Show account info and current model |
| /login | Switch accounts |
| /logout | Sign out |
| /clear | Reset conversation history |
| /exit | End session |
| /config | Open configuration |
| /doctor | Diagnose issues |
| /cost | Token usage statistics |
| /init | Generate CODEBUDDY.md project guide |
| /memory | Edit project memory files |
Type ? during session for keyboard shortcuts.
Create .md files in:
.codebuddy/commands/~/.codebuddy/commands/npm install -g @tencent-ai/codebuddy-code
--dangerously-skip-permissions risks: file deletion, scope creep, data loss. Never use in production.
Generated Mar 1, 2026
New team members can use CodeBuddy to quickly understand codebases and generate documentation. It helps them set up environments and learn project-specific patterns through interactive sessions and custom commands.
Developers can run CodeBuddy in single-task mode to automatically review code for bugs, performance issues, or style inconsistencies. This streamlines peer reviews and ensures adherence to coding standards across teams.
Engineers use natural language prompts to generate boilerplate code, unit tests, or API implementations. This accelerates prototyping cycles, especially when integrating with AI models like Gemini or DeepSeek for context-aware suggestions.
Instructors leverage CodeBuddy's interactive mode to teach programming concepts, allowing students to ask questions in natural language and receive real-time code explanations or corrections. It supports both international and China-specific login options for diverse audiences.
IT teams configure CodeBuddy with custom commands in global directories to automate repetitive terminal tasks, such as deployment scripts or system diagnostics. The slash commands like /doctor help troubleshoot environment issues efficiently.
Offer a free tier for basic CLI usage with limited AI model access, while charging for premium features like advanced models (e.g., GPT-4), higher token limits, or enterprise support. Revenue comes from subscription plans tailored to individual developers and teams.
Sell licenses to large organizations for on-premises or private cloud deployments, including custom integrations, enhanced security, and dedicated support. This model targets companies needing compliance with data regulations or specific AI model usage.
Create a marketplace for third-party developers to sell custom command packs, plugins, or integrations. Revenue is generated through commissions on sales and fees for featured listings, fostering a community around the CodeBuddy platform.
💬 Integration Tip
Integrate CodeBuddy into existing CI/CD pipelines by using its single-task mode for automated code reviews, and set up project-specific commands in .codebuddy/commands to streamline team workflows.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Provides a 7-step debugging protocol plus language-specific commands to systematically identify, verify, and fix software bugs across multiple environments.
A comprehensive skill for using the Cursor CLI agent for various software engineering tasks (updated for 2026 features, includes tmux automation guide).
Write, run, and manage unit, integration, and E2E tests across TypeScript, Python, and Swift using recommended frameworks.
Control and operate Opencode via slash commands. Use this skill to manage sessions, select models, switch agents (plan/build), and coordinate coding through Opencode.
Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.