About Chat
The chat panel is your primary interface for interacting with Cheetah AI. It provides a conversational experience where you can ask questions, request code changes, explore your codebase, and execute complex development tasks. The AI maintains context throughout your conversation, allowing you to build on previous messages and refine your requests iteratively. Unlike simple code completion tools, the chat interface enables rich, multi-turn conversations where you can discuss problems, explore solutions, and collaborate with the AI on implementation details. The AI remembers what you’ve discussed and can reference earlier parts of the conversation when responding to new messages.Opening Chat
There are several ways to open the chat panel:- Press
Cmd+L(macOS) orCtrl+L(Windows/Linux) from anywhere in the editor - Click the chat icon in the sidebar
- Use the Command Palette (
Cmd+Shift+P) and search for “Open Chat”
Providing Context
The quality of AI responses depends heavily on the context you provide. Cheetah AI offers several ways to include relevant information in your messages, helping the AI understand exactly what you’re working on and what you need.File References
Reference specific files in your messages using the@ symbol followed by the file path. This tells the AI to read and consider that file when responding to your message.
Code Selections
The fastest way to provide context is by selecting code before opening chat. When you have code selected and pressCmd+L, the selection is automatically included in your message.
- Select the code you want to discuss or modify in the editor
- Press
Cmd+Lto open chat - The selected code appears in your message as context
- Type your question or request and send
Folder Context
For broader context, you can reference entire directories:Writing Effective Prompts
The way you phrase your requests significantly impacts the quality of AI responses. Clear, specific prompts with relevant context produce better results than vague or ambiguous requests.Be Specific
Vague prompts lead to generic responses. Include specific details about what you want to accomplish, where the change should be made, and any constraints or requirements. Less effective:Provide Context
Even when the AI can read your files, explicitly stating relevant context helps it understand your intent and constraints. Less effective:Specify Constraints
If you have preferences about implementation approach, libraries to use, or patterns to follow, include them in your prompt. Less effective:State Expected Behavior
When reporting issues or requesting changes, describe both the current behavior and what you expect to happen. Less effective:Chat Features
Code Blocks in Responses
When the AI generates code, it appears in syntax-highlighted code blocks with action buttons: Copy - Copies the code to your clipboard for manual pasting Apply - In Agent mode, applies the code change directly to the relevant file. The AI determines where the code should go based on context. Insert - Inserts the code at your current cursor position in the editorConversation History
Your conversations are automatically saved and accessible from the sidebar. This allows you to:- Return to previous conversations and continue where you left off
- Search through past conversations to find solutions you’ve discussed before
- Reference earlier discussions when working on related problems
Multi-turn Conversations
The AI maintains context throughout a conversation, allowing you to build on previous messages without repeating information.Inline Editing with Cmd+K
For quick edits without opening the full chat panel, use the inline editor. This provides a streamlined interface for making targeted changes to selected code. How to use inline editing:- Select the code you want to modify in the editor
- Press
Cmd+K(macOS) orCtrl+K(Windows/Linux) - A small prompt appears near your selection
- Type your instruction (e.g., “add error handling”, “convert to TypeScript”, “optimize performance”)
- Press Enter to generate the change
- Review the diff and accept or reject
- Adding error handling to a function
- Converting code to use different patterns
- Adding TypeScript types to JavaScript code
- Refactoring small sections of code
- Adding comments or documentation
Reviewing Changes
When the AI modifies your files, changes appear as diffs showing exactly what was added, modified, or removed. This gives you full visibility and control over every change.Diff View
Changes are displayed with:- Green highlighting for additions
- Red highlighting for deletions
- Line numbers showing where changes occur
Accept and Reject
Each change can be individually accepted or rejected:| Action | macOS | Windows/Linux |
|---|---|---|
| Accept Change | Cmd+Enter | Ctrl+Enter |
| Reject Change | Cmd+Backspace | Ctrl+Backspace |
| Next Change | Cmd+] | Ctrl+] |
| Previous Change | Cmd+[ | Ctrl+[ |
| Accept All | Cmd+Shift+Enter | Ctrl+Shift+Enter |
| Reject All | Cmd+Shift+Backspace | Ctrl+Shift+Backspace |
Checkpoints
The AI automatically creates checkpoints as it works, capturing the state of your files at each step. If you need to undo changes, you can revert to any previous checkpoint without losing your conversation history.Tips for Better Results
Use Gather mode first for unfamiliar code - Before making changes to code you don’t fully understand, use Gather mode to explore and learn. This gives you context that helps you write better prompts when you switch to Agent mode. Start with Plan mode for complex tasks - For significant features or refactoring efforts, Plan mode helps you and the AI align on the approach before any code is written. You can catch misunderstandings early. Reference specific files - Using@ to reference files gives the AI precise context. This is more effective than describing files in words.
Break large tasks into smaller requests - While Agent mode can handle complex multi-step tasks, breaking them into smaller pieces makes it easier to review changes and catch issues early.
Review changes before committing - Always check your git diff before committing AI-generated changes. The AI is powerful but not perfect, and a quick review catches potential issues.
