Sessions
Each conversation in the panel is a session. Sessions are saved per workspace folder, so you can close VS Code and pick one up later. What the agent does in them appears on the Codity dashboard, under the run for that agent start.
Start, find and rename sessions
| To | Do this |
|---|---|
| Start a new session | Click + (New chat) at the top of the panel, or run Codity: New Session. Codity: New Chat starts one in a new editor tab. |
| Open an earlier session | Click the history button, or run Codity: Session History. It lists the sessions saved for this folder. |
| Rename the current session | Run Codity: Rename Session. |
| Open a session in an editor tab | Press Ctrl+Shift+Escape (Cmd+Shift+Escape on macOS), or run Codity: Open in New Tab, to work beside your code with more room. |
| See the run on the dashboard | Click Dashboard under the message box, or run Codity: Open Run in Dashboard. |
Change the conversation
Hover over one of your messages for these actions:
| Action | Effect |
|---|---|
| Edit and resend | Rewinds the conversation, and the files the agent changed, to before this message, and puts the message back in the box to change and send again. |
| Rewind to here | Rewinds the conversation, and the files the agent changed, to before this message. |
| Fork from here | Starts a new session from just before this message, with it back in the box to send differently. The original session stays as it is. |
Long conversations
The bar under the message box shows how much of the model's context the conversation uses. When it fills up, the agent summarizes the conversation so far on its own. To do that sooner, type /compact, run Codity: Compact Conversation, or click Compact beside the context bar, which appears when the context is nearly full. The summary replaces the earlier messages for the model; you can still scroll back through them in the panel.
Restarting
Codity: Restart Agent stops the agent and starts it again in the same folder, which is useful after changing a setting such as codity.billing or your environment. Codity: Show Agent Log opens the agent's log in the Output panel, which is the first place to look when something goes wrong.
If the agent stops because of a network problem, the panel shows what happened and retries by itself a few times over the next minute. If the network is back after that, click Try again.

