Skip to content

Commands Reference

CodeBuddy registers 52 commands in the command palette, plus several internal commands used programmatically. Open the command palette (Cmd+Shift+P / Ctrl+Shift+P) and type “CodeBuddy” to see all available commands.

These commands operate on the current editor selection. They appear in the editor context menu (right-click) when text is selected.

CommandShortcut (Mac / Win)What it does
Add Comment to Selected CodeCmd+Shift+J / Ctrl+Shift+JGenerates explanatory comments for the selected code
Review Selected CodeCmd+Shift+R / Ctrl+Shift+RRuns an AI code review for best-practice compliance
Refactor Selected CodeCmd+Shift+; / Ctrl+Shift+;AI-driven refactoring for readability and maintainability
Optimize Selected CodeCmd+Shift+0 / Ctrl+Shift+0AI-driven optimization for performance and efficiency
Explain This CodeCmd+Shift+1 / Ctrl+Shift+1Provides a clear explanation of the selected code
Generate Commit MessageCmd+Shift+2 / Ctrl+Shift+2Generates a commit message from the current git diff
Inline ChatCmd+Shift+8 / Ctrl+Shift+8Opens an inline chat dialog in the editor
Interview MeGenerates technical interview questions from selected code
Generate Architectural DiagramCmd+Shift+7 / Ctrl+Shift+7Creates a Mermaid diagram from the selected code
Analyze Codebase & Answer QuestionsCmd+Shift+6 / Ctrl+Shift+6Runs full architectural analysis of the workspace
Review Pull RequestConducts a comprehensive AI-driven PR review

Manually trigger scheduled automations. These normally run on their configured schedules, but you can invoke them on demand.

CommandWhat it does
Trigger Daily StandupGenerates a standup report from recent git activity
Trigger Code Health CheckScans the codebase for health issues, hotspots, and TODOs
Trigger Dependency CheckChecks dependencies for vulnerabilities and updates
Trigger Git WatchdogMonitors git state for anomalies on protected branches
Trigger End-of-Day SummaryGenerates a summary of the day’s coding activity
CommandWhat it does
Jira Tickets (List, Branch, View)Lists Jira tickets and creates branches from them
GitLab Issues (List, Branch, View)Lists GitLab issues and creates branches from them

These commands require an open workspace.

CommandWhat it does
Run DoctorExecutes 9 diagnostic checks and reports findings with severity levels
Doctor Auto-FixAutomatically fixes all fixable issues found by Doctor
Run Security DiagnosticsRuns security diagnostics and outputs to the “CodeBuddy Security” channel
Open External Security ConfigOpens the external security configuration file
Show Onboarding WizardRe-shows the 5-step setup wizard
Credential Proxy Audit LogDisplays the credential proxy audit log (method, provider, status, latency)
CommandWhat it does
Switch Permission ProfileQuick-pick to switch between restricted, standard, and trusted profiles
Switch Access Control ModeQuick-pick to switch between open, allow, and deny modes
Access Control Audit LogDumps allowed/denied actions per user to the output channel
CommandWhat it does
Index Workspace for Semantic SearchIndexes the workspace into a vector DB for semantic code search
Init .codebuddyignoreCreates a .codebuddyignore file with defaults, or opens an existing one
Clear Workspace ContextClears all chat history and sessions for the current workspace
Generate DocumentationAuto-generates README, API docs, and architecture diagrams from codebase analysis
CommandWhat it does
Revert to CheckpointShows a list of workspace checkpoints and reverts to the selected one
CommandWhere it appearsWhat it does
Apply ChangeEditor title bar (on diff views)Applies a pending diff change to the file on disk
Discard ChangeEditor title bar (on diff views)Removes a pending diff change and closes the diff editor

These buttons appear as check (✓) and close (✕) icons in the editor title bar when viewing a CodeBuddy diff (codebuddy-diff scheme).

CommandWhat it does
Review Composer SessionShows session summary with Apply All / Reject All / Review Files options
Apply Composer SessionApplies all changes in a composer session at once
Reject Composer SessionDiscards all changes in a composer session
Clear Inline Review CommentsClears all inline comment threads created by code reviews
CommandShortcutWhat it does
Open Project RulesCmd+Shift+9 / Ctrl+Shift+9Opens .codebuddy/rules.md for editing
Initialize Project RulesCreates a new .codebuddy/rules.md with scaffold content
Reload Project RulesReloads rules from disk into the active service
CommandWhat it does
Toggle Inline CompletionsToggles codebuddy.completion.enabled on or off
Configure Completion SettingsOpens editor settings filtered to codebuddy.completion
CommandWhat it does
Show Agent Queue StatusShows running and queued agent slots; allows cancelling individual or all requests
Cancel All Queued Agent RequestsCancels all waiting agent requests in the concurrency queue
CommandWhat it does
Open URL in Smart ReaderPrompts for a URL and opens it in the built-in reader panel
Open Selection in Smart ReaderOpens the selected URL text in the reader panel
Open Current Page in Smart ReaderRe-opens the last browsed URL in the reader

These are internal commands triggered via the Analyze Codebase flow:

CommandWhat it does
Show Cache StatusDisplays analysis cache status (snapshots, DB size, timestamps) in a webview panel
Clear CacheClears the persistent codebase analysis cache
Refresh AnalysisForce-refreshes codebase analysis with progress notification
Shortcut (Mac)Shortcut (Win/Linux)Command
Cmd+Shift+JCtrl+Shift+JAdd Comment to Selected Code
Cmd+Shift+RCtrl+Shift+RReview Selected Code
Cmd+Shift+;Ctrl+Shift+;Refactor Selected Code
Cmd+Shift+0Ctrl+Shift+0Optimize Selected Code
Cmd+Shift+1Ctrl+Shift+1Explain This Code
Cmd+Shift+2Ctrl+Shift+2Generate Commit Message
Cmd+Shift+6Ctrl+Shift+6Analyze Codebase & Answer Questions
Cmd+Shift+7Ctrl+Shift+7Generate Architectural Diagram
Cmd+Shift+8Ctrl+Shift+8Inline Chat
Cmd+Shift+9Ctrl+Shift+9Open Project Rules