/ and can be typed in the input field.
Quick Reference
/help
Show help and shortcuts
/init
Initialize project
/new
Start new conversation
/publish
Publish custom agents
/usage
View credit usage
/bash
Execute shell commands
Session Management
/new (aliases: /n, /clear, /c, /reset)
Start a new conversation, clearing the current chat history./history (aliases: /chats)
Browse and continue previous conversations./exit (aliases: /quit, /q)
Exit the CLI application.You can also use
Ctrl+D to exit the CLI.Project Setup
/init
Initialize your project with Codebuff configuration files.knowledge.md- Project context file for giving agents information about your project.agents/- Directory for custom agent definitions.agents/types/- TypeScript type definitions:agent-definition.ts- AgentDefinition interfacetools.ts- Tool type definitionsutil-types.ts- Utility types
knowledge.md template includes sections for:
- Quickstart commands (setup, dev, test)
- Architecture overview
- Coding conventions
- Patterns to follow and avoid
Agent Management
/publish
Publish custom agents from your.agents/ directory to the Codebuff agent store.
- Select which agents to publish
- Review agent details
- Confirm publication
- You must be logged in
- Agents must have a valid
publisherfield - Agents must be in a
.agents/directory
- Missing publisher field
- Publisher not found or no access
- Validation errors
Agent Mode Commands
Switch between different agent modes:/mode:default
Switch to DEFAULT mode (balanced performance)./mode:free
Switch to FREE mode (fast, economical)./mode:max
Switch to MAX mode (maximum capability)./mode:plan
Switch to PLAN mode (planning and strategy).Shell Integration
/bash (alias: !)
Enter bash mode to execute shell commands.! prefix). Press Escape to exit bash mode.
Direct execution:
Execute a command immediately:
- Commands run in the current working directory
- Output is captured and displayed in the chat
- Exit codes are shown
- Environment variables from your shell are preserved
- Commands run synchronously (you see output as it streams)
Account & Usage
/usage (alias: /credits)
View your current credit usage and remaining balance.- Current credit balance
- Usage this month
- Subscription tier (if applicable)
- Renewal date
/subscribe (aliases: /strong, /sub, /buy-credits)
Open your browser to the subscription page.https://codebuff.com/subscribe in your default browser.
/refer-friends (aliases: /referral, /redeem)
Enter or redeem referral codes.Escape to exit.
Direct redemption:
/login (alias: /signin)
Notifies you that you’re already logged in. To switch accounts, use/logout.
/logout (alias: /signout)
Log out of your Codebuff account.- Stop any running agents
- Clear your authentication token
- Return you to the login screen
Help & Information
/help (aliases: /h, /?)
Show the help banner with keyboard shortcuts and available commands.- Common keyboard shortcuts
- Command list with descriptions
- Tips for effective usage
Escape or Backspace to close the help screen.
/feedback (aliases: /bug, /report)
Submit feedback or report bugs.- Describe the issue
- Select feedback type
- Include conversation context
Attachments
/image (aliases: /img, /attach)
Attach images to your prompts.- Type a file path
- Press
Ctrl+Vto paste from clipboard - Drag and drop images (in supported terminals)
- PNG, JPEG, GIF, WebP
- Maximum 5MB per image
- Multiple images per prompt
Advanced Commands
/review
Request a code review from the GPT-5 Agent.@GPT-5 Agent Please review: Check for security issues in the authentication code
/theme:toggle
Toggle between light and dark themes.The CLI automatically detects your terminal’s theme on startup. Use this command to override the detection.
/ads:enable
Enable promotional messages in the CLI./ads:disable
Disable promotional messages in the CLI.Command Arguments
Many commands accept arguments that modify their behavior:Commands without arguments
Commands without arguments
These commands don’t accept arguments. Any text after the command is ignored:
/help/init/exit/login/logout/usage/subscribe/history/theme:toggle/ads:enable/ads:disable
Commands with optional arguments
Commands with optional arguments
These commands work with or without arguments:
/new [prompt]- Start new chat, optionally with a prompt/bash [command]- Enter bash mode or execute command/image [path]- Enter image mode or attach specific file/feedback [text]- Open feedback form, optionally pre-filled/refer-friends [code]- Enter referral mode or redeem code/review [instructions]- Open file picker or review with instructions/mode:* [prompt]- Switch mode, optionally with a prompt
Commands requiring arguments
Commands requiring arguments
These commands require at least one argument:
/publish <agent-id> [agent-id...]- Publish one or more agents
Command Aliases
Many commands have shorter aliases for faster typing:| Full Command | Aliases |
|---|---|
/help | /h, /? |
/new | /n, /clear, /c, /reset |
/exit | /quit, /q |
/bash | ! |
/usage | /credits |
/subscribe | /strong, /sub, /buy-credits |
/refer-friends | /referral, /redeem |
/feedback | /bug, /report |
/image | /img, /attach |
/history | /chats |
/login | /signin |
/logout | /signout |
Command History
The CLI maintains a history of your commands:- Press
Up/Downarrows to navigate history - Press
Ctrl+Rto search history - History persists across sessions
- Separate history for bash commands
Tips
Next Steps
Configuration
Configure environment variables and settings
Workflows
Learn common CLI workflows and best practices

