cd /path/to/your/project
codebuddycbc
CodeBuddy Code v1.0.0Enter /help to view available commands.Start a conversation and let AI become your coding partner.>
/config command after startup to set the Language option./init command first to initialize the project context:> /init
# When Using the Project for the First Time> /init# When the Project Structure Undergoes Significant Changes (Such as Adding New Modules or Refactoring)> /clear # Start a new conversation> /init # Reinitialize
> Help me analyze the structure of this project.
codebuddy
> I want to add a loading state to this React component.> Help me refactor this function to make it more readable.> What are the potential performance issues in this code?> Write unit tests for this API.
# Ask Directlycodebuddy -p "Optimize the performance of this SQL query"# Pipe Inputcat error.log | codebuddy -p "Analyze these error logs"# File Analysis (Add -y or --dangerously-skip-permissions when authorization is required)codebuddy -p "Review the code quality of src/utils.js" -y
-p/--print parameter for a single execution, if the operation requires authorized actions such as accessing files or running commands, you must add the -y (or --dangerously-skip-permissions) parameter.# Project Refactoring (Requires File Operation Authorization)codebuddy -p "Migrate all components from class components to function components" -y# Code Standards (Requires File Read Authorization)codebuddy -p "Check the TypeScript type definitions across the entire project" -y# Test Coverage (Requires File Operation Authorization)codebuddy -p "Add unit tests for all files in the services directory" -y
Shortcut Keys | Function |
↑/↓ | Browse command history |
↓ | View background tasks (when tasks are running). |
Tab | Autocomplete commands |
Esc | Clear input (press twice) / Return to previous menu. |
Ctrl+C | Exit the program. |
Ctrl+D | Exit the program (when the input box is empty and no conversation is in progress, press twice). |
Shortcut Keys | Function |
Shift+Tab (Windows also supports Alt+M). | Switch permission mode (default → bypass → accept → plan). |
Shortcut Keys | Function |
Ctrl+R | Expand or collapse detailed output (in conversations). |
Ctrl+G | Edit prompts with an external editor. |
Enter | Sending messages. |
Shift+Enter | Line break (multi-line input). |
\\Enter | Line break (backslash escape). |
Ctrl+J | Insert line break (multi-line input). |
Shortcut Keys | Function |
Up/Down or j/k | Navigate options in the panel (Vim-style supported). |
Enter | Select the current item. |
Space | Toggle selection (multi-select panel). |
x | Terminate the selected background task. |
Shortcut Keys | Function |
Ctrl+O | View thinking details panel. |
Ctrl+O to open the full reasoning content, and then press Ctrl+O again to exit.Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback