Common workflows
Step-by-step recipes for everyday tasks. Each workflow shows a concrete scenario, the prompts to use, and what to expect.
- Understand a new codebase
- Reference files and directories
- Find and fix bugs
- Refactor code
- Write tests
- Create a pull request
- Fix a UI bug from a screenshot
- Resume previous conversations
- Plan before you build
- Sync taste across machines
- Review a pull request
- Share a debugging session
- Write complex prompts with an external editor
Start Command Code in the project root and ask for a high-level overview, then drill into specifics.
Get a broad overview
Ask for overview
Explore the architecture
Architecture
Zoom into a specific area
Dive deeper
Use @ to include files or directories in any prompt. This gives Command Code the exact context it needs.
Reference a single file
Reference file
This helps Command Code focus on the right file and provide targeted suggestions.
Reference a directory
Reference directory
Command Code reads the directory listing and explains how the files relate.
Use the IDE extension for instant context
If you're using an IDE like Visual Studio Code or Cursor, install the Command Code extension with /ide or cmd --ide-setup. Once installed, selecting lines of code or clicking a file in your editor automatically injects that context into your prompt. No need to reference file paths manually with @.
Share an error, let Command Code trace the root cause, and apply the fix.
Share the error
Report error
Find the root cause
Trace bug
Apply the fix and verify
Fix bug
Modernize a module while keeping behavior identical.
Identify what to refactor
Refactor target
Review and apply changes
Command Code shows a diff. Approve the edits or ask for adjustments before they're written.
Run tests to confirm
Verify
Add tests for a module using the testing framework your project already uses.
Generate tests
Add tests
Run and iterate
Run tests
Add edge cases
Edge cases
Review changes, generate a PR, and polish the description — all without leaving the terminal.
Review your changes
Summarize
Create the PR
Create PR
Command Code generates the title, description, and test plan using your commit history and diff.
Polish the description
Improve PR
Paste a screenshot of the broken UI directly into the terminal and let Command Code identify and fix the issue.
Share the screenshot
Copy a screenshot to your clipboard and paste it into the terminal, or reference an image file:
Reference image
Identify the issue
Command Code analyzes the image, identifies the visual bug (overlapping elements, wrong spacing, missing styles), and locates the responsible component.
Apply the fix
Fix UI
Pick up where you left off with --continue (most recent) or --resume (conversation picker).
Continue the most recent conversation
Continue
This resumes your last conversation immediately.
Browse and select a past conversation
Resume picker
This displays an interactive picker:
Use arrow keys to navigate, Enter to select, Esc to exit.
Use plan mode to explore the codebase and design an approach before any files change.
Enter plan mode
Start plan mode
Or press shift+tab inside an active session to cycle into plan mode.
Describe what you want to build
Plan prompt
Command Code reads files and proposes an implementation plan without making changes.
Review the plan and execute
Review the proposed steps. Approve to let Command Code implement them, or refine the plan first.
Push your taste profile to the cloud and pull it on another machine.
Push from your current machine
Push taste
Pull on another machine
Pull taste
Verify your profiles
List taste
This shows all taste profiles synced to your account. Manage your taste at Command Code Studio.
Use the /review command to get an analysis of a PR without leaving the terminal.
Start the review
Review PR
Command Code fetches the PR diff, analyzes the changes, and provides a structured review.
Read the analysis
The review covers code quality, potential bugs, missing tests, and style issues.
Fetch PR comments to address feedback
Fetch PR comments
Retrieves all PR comments — issue comments and inline review comments — from the pull request associated with your current branch so you can address feedback directly in your session.
Leave comments
Comment on PR
Create a shareable link to show teammates what you've tried.
Debug with Command Code
Work through the problem in a normal session — reproduce the bug, investigate, try fixes.
Share the session
Share
This copies a shareable link to your clipboard.
Stop sharing when done
Unshare
Press ctrl+g to open your $EDITOR for multi-line prompts with code examples.
Open your editor
Press ctrl+g in the input line. Your configured $EDITOR opens with a temporary file.
Write your prompt
Write a detailed, multi-paragraph prompt. Include code examples, constraints, or references. Save and close the editor.
Submit
The editor content becomes your prompt and is submitted automatically.
- Taste — how taste learning works under the hood
- Skills — specialized agent capabilities
- Memory — customize behavior with AGENTS.md
- Interactive mode — shortcuts, commands, and modes
- CLI reference — all flags and subcommands
Questions or feedback? Join the Discord community.