You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/07-Pro Features/01-ai-chat.md
+32-8Lines changed: 32 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,24 @@
2
2
title: AI Chat
3
3
---
4
4
5
-
Phoenix Code comes with a built-in AI assistant powered by Claude Code. You can ask it to write code, fix bugs, explain files, and more. The AI can read and edit your project files, run terminal commands, take screenshots of your Live Preview, and work alongside you as you code.
5
+
import React from 'react';
6
+
import VideoPlayer from '@site/src/components/Video/player';
6
7
7
-
> AI Chat is available only in desktop apps. Free users get a daily and monthly chat limit. [Upgrade to Phoenix Code Pro](https://phcode.io/pricing) for unlimited access.
8
+
:::info Pro Feature
9
+
[Upgrade to Phoenix Code Pro](https://phcode.io/pricing) to access this feature.
10
+
:::
8
11
9
-
<!-- Add an image here showing the AI Chat panel in the sidebar with a conversation -->
12
+
Phoenix Code comes with a built-in AI assistant powered by Claude Code. You can ask it to write code, fix bugs, explain files, and more. The AI can read and edit your project files, run terminal commands, take screenshots, and work alongside you as you code.
13
+
14
+
> AI Chat is available only in desktop apps.
15
+
16
+
:::note
17
+
Free users get a daily and monthly chat limit. [Upgrade to Phoenix Code Pro](https://phcode.io/pricing) for unlimited access.
@@ -28,6 +41,8 @@ Type your message in the input box at the bottom and press `Enter` to send. Pres
28
41
29
42
While the AI is working, you can type your next message. It shows up as a queued message and gets sent automatically once the AI finishes its current response.
30
43
44
+
To stop the AI mid-response, click the **stop button***(square icon)* that appears next to the send button while the AI is working, or press `Escape`.
45
+
31
46
### Context
32
47
33
48
Phoenix Code automatically provides context about what you're working on. Small chips appear above the input box showing:
@@ -40,20 +55,26 @@ You can dismiss any of these by clicking the **x** button on the chip.
40
55
41
56
## Attachments and Screenshots
42
57
43
-
Click the **paperclip button** to attach files from your project. You can attach images (PNG, JPG, GIF, WebP, SVG) and other files like code or documents.
58
+
Click the **paperclip button** to attach a file or folder. The dropdown lets you choose:
59
+
60
+
-**Attach a file** - attach a single file. Supported image formats include PNG, JPG, GIF, WebP, and SVG. You can also attach code or document files.
61
+
-**Add folder as context** - attach an entire folder so the AI can read its contents.
62
+
63
+
You can also paste an image directly from your clipboard into the input box.
44
64
45
65
Click the **camera button** to take a screenshot and attach it. The dropdown lets you choose what to capture:
46
66
47
67
-**Live Preview** - your Live Preview panel (if open)
48
68
-**Selected Element** - the currently selected element in Live Preview
49
69
-**Full Editor** - the entire editor window
50
70
-**Area** - a custom region you select with a crop tool
71
+
-**Upload from Device** - choose an existing image from your computer instead of taking a new screenshot
51
72
52
73
## Permission Modes
53
74
54
75
The AI has three permission levels that control how much it can do on its own. Click the **permission label** at the bottom of the panel to cycle between them.
55
76
56
-
-**Plan** - the AI proposes a plan first. You review it and click **Approve** to proceed or **Revise** to give feedback. Good for complex tasks where you want to stay in control.
77
+
-**Plan** - the AI proposes a plan first as a card in the chat (titled **Proposed Plan**). Click the **expand icon** in the card header to view the plan in full screen. Then click **Approve** to proceed, or **Revise** to open an inline feedback box where you describe what should change before the AI tries again. Good for complex tasks where you want to stay in control.
57
78
-**Edit** (default) - the AI can read and edit files on its own, but asks for your approval before running terminal commands.
58
79
-**Full Auto** - the AI works through everything without pausing. Terminal commands still ask for confirmation.
59
80
@@ -67,9 +88,11 @@ Sessions are saved per project, so each project has its own chat history.
67
88
68
89
## Undo and Restore
69
90
70
-
Before the AI makes any edits, Phoenix Code creates a **restore point**. If you don't like the changes, click **Undo** on the edit summary card to revert all the files back to how they were.
91
+
Before each AI response that edits files, Phoenix Code creates a **restore point**. Each edit summary card has a button to revert to that point: it reads **Undo** on the most recent response and **Restore to this point** on earlier ones. Both do the same thing: they roll your files back to the saved state.
92
+
93
+
The first time you undo or restore in a session, Phoenix Code shows a confirmation dialog before reverting.
71
94
72
-
If the AImade changes across multiple responses, you can click **Restore to this point** on any earlier edit summary to go back to that state.
95
+
> Restore only reverts changes made by the AI. Edits you made outside the AI Chat are not tracked and may be lost if they overlap with files the AI also edited. For full version history, use version control like Git.
73
96
74
97
<!-- Add an image here showing an edit summary card with the Undo button and file change stats -->
75
98
@@ -90,4 +113,5 @@ Click the **gear icon** in the chat panel to open AI settings. Here you can:
90
113
| Send message |`Enter`|
91
114
| New line |`Shift + Enter`|
92
115
| Cycle permission mode |`Shift + Tab`|
93
-
| Cancel or clear input |`Escape`|
116
+
| Stop the AI mid-response |`Escape` (while AI is generating) |
117
+
| Clear input and focus the editor |`Escape` (when idle) |
0 commit comments