|
1 | 1 | import Image from '@site/src/components/Image'; |
2 | 2 |
|
3 | | -# The Chat Interface |
| 3 | +# Chatting with Kilo Code |
4 | 4 |
|
5 | | -The Kilo Code chat interface is your primary way of interacting with it. It's located in the Kilo Code panel, which you can open by clicking the Kilo Code icon (<img src="/docs/img/kilo-v1.svg" width="12" />) in the VS Code Primary Side Bar. |
| 5 | +:::tip |
6 | 6 |
|
7 | | -The Kilo Code panel can also be moved to the VS Code Secondary Side Bar. If you ever accidentally close the Kilo Code panel, you can get it back using View > Open View... and searching for "Kilo Code". |
| 7 | +**Bottom line:** Kilo Code is an AI coding assistant that lives in VS Code. You chat with it in plain English, and it writes, edits, and explains code for you. |
8 | 8 |
|
9 | | -## Components of the Chat Interface |
| 9 | +::: |
10 | 10 |
|
11 | | -The chat interface consists of the following main elements: |
| 11 | +## Quick Setup |
12 | 12 |
|
13 | | -1. **Chat / Task History:** This area displays the conversation history between you and Kilo Code, or if you are not in a current task the history of all of the tasks you've created. It shows your requests, Kilo Code's responses, and any actions taken (like file edits or command executions). |
| 13 | +Find the Kilo Code icon (<img src="/docs/img/kilo-v1.svg" width="12" />) in VS Code's Primary Side Bar. Click it to open the chat panel. |
14 | 14 |
|
15 | | -2. **Input Field:** This is where you type your tasks and questions for Kilo Code. You can use [plain English to communicate what you want Kilo Code to do](/basic-usage/typing-your-requests). |
| 15 | +**Lost the panel?** Go to View > Open View... and search for "Kilo Code" |
16 | 16 |
|
17 | | -3. **Action Buttons:** These buttons appear below the input field and allow you to approve or reject Kilo Code's proposed actions. The available buttons change depending on the context and your [auto-approval settings](/features/auto-approving-actions). |
| 17 | +## How to Talk to Kilo Code |
18 | 18 |
|
19 | | -4. **Send Button:** This looks like a small plane and it's located to the far right of the input field. This sends messages to Kilo after you've typed them. Alternatively you can just press `Enter` |
| 19 | +**The key insight:** Just type what you want in normal English. No special commands needed. |
20 | 20 |
|
21 | | -5. **Plus Button:** The plus button is located at the top in the header, and it starts a new task session. |
| 21 | +<Image src="/docs/img/typing-your-requests/typing-your-requests.png" alt="Example of typing a request in Kilo Code" width="600" /> |
22 | 22 |
|
23 | | -6. **Settings Button:** The settings button is a gear, and it's used for opening the settings to customize features or behavior. |
| 23 | +**Good requests:** |
24 | 24 |
|
25 | | -7. **Mode Selector:** The mode selector is a dropdown located to the left of the chat input field. It is used for selecting which mode Kilo should use for your tasks. |
| 25 | +``` |
| 26 | +create a new file named utils.py and add a function called add that takes two numbers as arguments and returns their sum |
| 27 | +``` |
| 28 | + |
| 29 | +``` |
| 30 | +in the file @src/components/Button.tsx, change the color of the button to blue |
| 31 | +``` |
| 32 | + |
| 33 | +``` |
| 34 | +find all instances of the variable oldValue in @/src/App.js and replace them with newValue |
| 35 | +``` |
| 36 | + |
| 37 | +**What makes requests work:** |
| 38 | +- **Be specific** - "Fix the bug in `calculateTotal` that returns incorrect results" beats "Fix the code" |
| 39 | +- **Use @ mentions** - Reference files and code directly with `@filename` |
| 40 | +- **One task at a time** - Break complex work into manageable steps |
| 41 | +- **Include examples** - Show the style or format you want |
| 42 | + |
| 43 | + |
| 44 | +## The Chat Interface |
26 | 45 |
|
27 | 46 | <Image |
28 | 47 | src="/docs/img/the-chat-interface/the-chat-interface-1.png" |
29 | 48 | alt="Chat interface components labeled with callouts" width="750" |
30 | | - caption="The key components of the Kilo Code chat interface" |
| 49 | + caption="Everything you need is right here" |
31 | 50 | /> |
32 | 51 |
|
33 | | -## Interacting with Messages |
| 52 | +**Essential controls:** |
| 53 | +- **Chat history** - See your conversation and task history |
| 54 | +- **Input field** - Type your requests here (press Enter to send) |
| 55 | +- **Action buttons** - Approve or reject Kilo's proposed changes |
| 56 | +- **Plus button** - Start a new task session |
| 57 | +- **Mode selector** - Choose how Kilo should approach your task |
| 58 | + |
| 59 | +## Quick Interactions |
| 60 | + |
| 61 | +**Click to act:** |
| 62 | +- File paths → Opens the file |
| 63 | +- URLs → Opens in browser |
| 64 | +- Messages → Expand/collapse details |
| 65 | +- Code blocks → Copy button appears |
| 66 | + |
| 67 | +**Status signals:** |
| 68 | +- Spinning → Kilo is working |
| 69 | +- Red → Error occurred |
| 70 | +- Green → Success |
| 71 | + |
| 72 | +## Common Mistakes to Avoid |
34 | 73 |
|
35 | | -* **Clickable Links:** File paths, URLs, and other mentions in the chat history are clickable. Clicking a file path will open the file in the editor. Clicking a URL will open it in your default browser. |
36 | | -* **Copying Text:** You can copy text from the chat history by selecting it and using the standard copy command (`Ctrl/Cmd + C`). Some elements, like code blocks, have a dedicated "Copy" button. |
37 | | -* **Expanding and Collapsing**: Click on a message to expand or collapse it. |
| 74 | +| Instead of this... | Try this | |
| 75 | +|-------------------|----------| |
| 76 | +| "Fix the code" | "Fix the bug in `calculateTotal` that returns incorrect results" | |
| 77 | +| Assuming Kilo knows context | Use `@` to reference specific files | |
| 78 | +| Multiple unrelated tasks | Submit one focused request at a time | |
| 79 | +| Technical jargon overload | Clear, straightforward language works best | |
38 | 80 |
|
39 | | -## Status Indicators |
| 81 | +**Why it matters:** Kilo Code works best when you communicate like you're talking to a smart teammate who needs clear direction. |
40 | 82 |
|
41 | | -* **Loading Spinner:** When Kilo Code is processing a request, you'll see a loading spinner. |
42 | | -* **Error Messages:** If an error occurs, a red error message will be displayed. |
43 | | -* **Success Messages:** Green messages indicate successful completion of actions. |
| 83 | +Ready to start coding? Open the chat panel and describe what you want to build! |
0 commit comments