Skip to content

VS Code Chat Panel

The chat panel works like the CLI’s full-screen REPL, with the editor wired in. This page goes through it in the order you’ll meet it: starting a chat, following a turn, giving the agent your code, and staying in control of what it changes.


Open a chat from the fuseraft status bar item, + in the Chats view, or Ctrl+Shift+Alt+F (Cmd+Shift+Alt+F on macOS).

A new chat offers up to three places to start, depending on what’s open:

  • Explain <file> — the file you’re in.
  • Review my uncommitted changes — when git status reports any, with the count.
  • Continue “”</strong> — your last chat in this workspace.</li> </ul> <p>Clicking one fills in the prompt for you to edit. <strong>Continue</strong> resumes that chat in the same panel.</p> <p>Below them, a line shows where the agent may work: the folder it’s sandboxed to, or a warning when <code dir="auto">repl.yolo</code> has turned the sandbox off. See <a href="/fuseraft-cli/security/">Security & Sandbox</a>.</p> <p>A chat that’s open when VS Code closes or reloads is resumed in its tab when it comes back.</p> <hr> <div class="sl-heading-wrapper level-h2"><h2 id="following-a-turn">Following a turn</h2><a class="sl-anchor-link" href="#following-a-turn"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Following a turn”</span></a></div> <ul> <li><strong>Thinking</strong> streams in dimmed under <code dir="auto">∴</code>, and folds to one line when the model moves on.</li> <li><strong>Tool calls</strong> are one line each. A line counts up while the call runs and turns ✓ or ✗ with how long it took. A sub-agent’s calls are nested under it.</li> <li><strong>Changed files</strong> show as <code dir="auto">✎ path +added -removed</code>. Click one to open it.</li> <li><strong>Details:</strong> click a tool line for its arguments and output, or press <strong>Ctrl+O</strong> to page through recent tool output, thinking, and shell output in full.</li> </ul> <p>The status line under the prompt shows the model, the turn, how full the context is (yellow as auto-compaction nears), the session’s tokens and how many came from the provider’s cache, active modes such as <code dir="auto">hitl</code>, how many tools the model has, and a timer.</p> <p>Switch models from the panel’s header at any time without losing the conversation.</p> <hr> <div class="sl-heading-wrapper level-h2"><h2 id="working-with-your-code">Working with your code</h2><a class="sl-anchor-link" href="#working-with-your-code"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Working with your code”</span></a></div> <p><strong>Add a selection.</strong> Select code and press <strong>Ctrl+Shift+Alt+A</strong> (<strong>Cmd+Shift+Alt+A</strong>), or right-click and choose <strong>fuseraft: Add to Chat</strong>. The code goes into your message, so the agent doesn’t have to read the file. With nothing selected, the whole file is attached.</p> <p><strong>Fix a problem.</strong> On an error or warning, open the quick fixes (the light bulb, or <strong>Ctrl+.</strong>) and choose <strong>Fix with fuseraft</strong>. The problem goes in the prompt, with the code from five lines above it to five below attached, ready to send. With several problems under the cursor, you get up to three to choose from.</p> <p><strong>Attach files.</strong> Right-click files or folders in the Explorer, or an editor tab, and choose <strong>fuseraft: Add File to Chat</strong>. You can also hold <strong>Shift</strong> and drop them on the panel, or type <code dir="auto">@</code> and a path in the prompt. Files ignored by git and <code dir="auto">.env</code> files aren’t offered.</p> <p><strong>The file you’re in</strong> shows as a chip above the prompt and is named with each message, with any lines you’ve selected. So you can ask about “this function” without attaching anything. Click the chip to turn it off or on, or set <code dir="auto">fuseraft.includeActiveFile</code>.</p> <p><strong>Replies link back to your code.</strong></p> <ul> <li>File paths like <code dir="auto">src/app.ts:42</code> open the file at that line.</li> <li>Code blocks can be inserted at your cursor (replacing the selection), opened in a new editor, or copied.</li> </ul> <p><strong>Ctrl+Shift+Alt+F</strong> in the chat takes you back to your file.</p> <hr> <div class="sl-heading-wrapper level-h2"><h2 id="talking-to-it">Talking to it</h2><a class="sl-anchor-link" href="#talking-to-it"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Talking to it”</span></a></div> <ul> <li><strong>Type while it works.</strong> <strong>Send</strong> holds a message as a chip above the prompt until the work is done. The chip’s send arrow (or Ctrl+Enter instead of Enter) hands it to the model at its next call without stopping anything: after its current tool calls, or as the next turn of a <code dir="auto">/goal</code> run starts. Its pencil (or <strong>↑</strong> on an empty prompt, for the last chip) takes it back into the prompt. <code dir="auto">/title</code> and <code dir="auto">/hitl on|off</code> apply at once, for the whole of a <code dir="auto">/goal</code> run too. Other <code dir="auto">/commands</code>, <code dir="auto">!commands</code>, and <code dir="auto">$skills</code> wait as a chip. Stopping the turn drops the chips.</li> <li><strong>Completions</strong> for <code dir="auto">/commands</code>, <code dir="auto">$skills</code>, and <code dir="auto">@paths</code>.</li> <li><strong>Images:</strong> paste a screenshot, or attach images with the paperclip.</li> <li><strong>Long pastes</strong> (more than 10 lines or 2,000 characters) show as <code dir="auto">[pasted #1 · 40 lines]</code> and are sent in full. <strong>Ctrl+O</strong> shows them.</li> <li><strong>History:</strong> <strong>↑/↓</strong> walk your earlier messages, <strong>Ctrl+R</strong> searches them.</li> <li><strong>Long drafts:</strong> <strong>Ctrl+G</strong> opens the draft in an editor tab beside the panel. Each save puts it back in the prompt.</li> <li><strong>Run something yourself:</strong> <code dir="auto">!git status</code> runs a command unsandboxed and streams its output into the panel. It’s never shown to the model.</li> </ul> <p>The REPL’s <code dir="auto">/commands</code> work here too, except the few that need a terminal, such as <code dir="auto">/provider setup</code> (use the setup screen instead). See <a href="/fuseraft-cli/cli-reference/#fuseraft-repl">CLI Reference — <code dir="auto">fuseraft repl</code></a>.</p> <hr> <div class="sl-heading-wrapper level-h2"><h2 id="staying-in-control">Staying in control</h2><a class="sl-anchor-link" href="#staying-in-control"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Staying in control”</span></a></div> <p><strong>Approvals.</strong> With HITL on (the default), shell commands, file writes, and other changes ask first, in a bar above the prompt. A file write opens as a real diff in an editor tab. Answer with <strong>Allow</strong> or <strong>Deny</strong>, or press <strong>y</strong> or <strong>n</strong>; <strong>Esc</strong> denies.</p> <p><strong>Tools.</strong> Click the tools count in the status line to choose what the model can use in this chat. Each category (Shell, Git, an MCP server, …) has a switch, and expanding it gives each tool its own, so you can keep Git but turn off <code dir="auto">git_commit</code>. Optional tools such as Http turn on here too. A tool that’s off isn’t offered to the model at all. A change made while a reply is running applies once it finishes.</p> <p><img alt="The tools menu over a chat: Git expanded, with git_commit switched off and 35 of 76 tools on" loading="lazy" decoding="async" width="784" height="980" src="/fuseraft-cli/_astro/vscode-tools.BM1Ci4wZ_seNWH.webp"></p> <p><strong>Save as default</strong> makes new chats start with the tools on now, and <strong>Reset</strong> goes back to those defaults. The <strong>Tools</strong> section of <strong>fuseraft: Settings</strong> has the same switches for new chats, and <code dir="auto">/tools</code> does the same from the prompt. See <a href="/fuseraft-cli/cli-reference/#fuseraft-repl">CLI Reference — <code dir="auto">fuseraft repl</code></a>.</p> <p><strong>Questions.</strong> When the agent asks you something, the choices appear above the prompt. Pick one, type your own answer, or <strong>Skip</strong> to let the agent decide.</p> <p><strong>Stopping.</strong> <strong>Stop</strong> or <strong>Ctrl+C</strong> interrupts a turn. Press again to kill commands it’s stuck on.</p> <p><strong>Notifications.</strong> While you’re elsewhere, you get a notification when a reply finishes or an approval or question is waiting. Turn them off with <code dir="auto">fuseraft.notifications</code>. The status bar item also turns to <strong>approval needed</strong> or <strong>question for you</strong>.</p> <hr> <div class="sl-heading-wrapper level-h2"><h2 id="keyboard-shortcuts">Keyboard shortcuts</h2><a class="sl-anchor-link" href="#keyboard-shortcuts"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Keyboard shortcuts”</span></a></div> <table> <thead> <tr> <th>Key</th> <th>Action</th> </tr> </thead> <tbody> <tr> <td><strong>Enter</strong></td> <td>Send</td> </tr> <tr> <td><strong>Shift+Enter</strong> / <strong>Alt+Enter</strong></td> <td>New line</td> </tr> <tr> <td><strong>↑ / ↓</strong></td> <td>Previous / next message in your history (on an empty prompt, <strong>↑</strong> first takes back a queued message)</td> </tr> <tr> <td><strong>Ctrl+R</strong></td> <td>Search your history</td> </tr> <tr> <td><strong>Ctrl+G</strong></td> <td>Edit the draft in an editor tab</td> </tr> <tr> <td><strong>Ctrl+O</strong></td> <td>Page through recent tool output, thinking, shell output, and long pastes</td> </tr> <tr> <td><strong>Ctrl+C</strong></td> <td>Interrupt the turn (again to kill stuck commands)</td> </tr> <tr> <td><strong>y</strong> / <strong>n</strong> / <strong>Esc</strong></td> <td>Allow / deny / deny a pending approval</td> </tr> <tr> <td><strong>PgUp / PgDn</strong></td> <td>Scroll</td> </tr> <tr> <td><strong>Alt+↑ / Alt+↓</strong></td> <td>Jump between the messages you sent</td> </tr> <tr> <td><strong>Ctrl+End</strong></td> <td>Follow new output again</td> </tr> <tr> <td><strong>Ctrl+F</strong></td> <td>Search the conversation</td> </tr> <tr> <td><strong>F2</strong></td> <td>Rename the chat</td> </tr> <tr> <td><strong>Ctrl+Shift+Alt+F</strong></td> <td>Open the chat, or go back to your file</td> </tr> <tr> <td><strong>Ctrl+Shift+Alt+A</strong></td> <td>Add the selection (or file) to the chat, from the editor</td> </tr> </tbody> </table> <p>On macOS, use <strong>Cmd</strong> in place of <strong>Ctrl</strong> for the last two. <code dir="auto">/copy</code> puts the last reply on the clipboard.</p> </div><footer class="sl-flex astro-ddtxxk7k"><div class="meta sl-flex astro-ddtxxk7k"><a href="https://github.com/fuseraft/fuseraft-cli/edit/main/docs/vscode-chat.md" class="sl-flex print:hidden astro-qlekgd3o"><svg aria-hidden="true" class="astro-qlekgd3o astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a></div><div class="pagination-links print:hidden astro-b5raizh3" dir="ltr"><a href="/fuseraft-cli/vscode-setup/" rel="prev" class="astro-b5raizh3"><svg aria-hidden="true" class="astro-b5raizh3 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-b5raizh3">Previous<br class="astro-b5raizh3"><span class="link-title astro-b5raizh3">Setup & Providers</span></span></a><a href="/fuseraft-cli/vscode-reference/" rel="next" class="astro-b5raizh3"><svg aria-hidden="true" class="astro-b5raizh3 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-b5raizh3">Next<br class="astro-b5raizh3"><span class="link-title astro-b5raizh3">Reference</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>