Sweep Chat

Chat

Sweep lets you work with your codebase using natural language.

Our chat sidebar automatically uses the current open file as context. Use it to ask Sweep questions, double-check your work, and get help working through technical problems.

Chat

You can add additional files using @-mentions or by enabling "search" (cmd . Mac / ctrl . Windows).

Use Sweep Chat for quick refactors, unit tests, and anything you'd normally use ChatGPT or Copilot for:

Shortcuts

You can open Sweep using ⌘ J or Ctrl J or by clicking the Sweep icon in the sidebar.

ActionMacWindows/Linux
Add Code to Context⌘ Shift JCtrl Shift J
Open/Close Chat⌘ JCtrl J
Toggle Normal/Search⌘ .Ctrl .

Chat Tips & Best Practices

  • Start new chats when switching topics since previous context influences responses
  • Use code selection to focus Chat on specific parts of your codebase
  • Ask follow-up questions to dive deeper into topics and have the AI fix linter errors and bugs
  • Treat Chat as a pair programmer for complex problem-solving

Key Features

  • Context-Aware: Toggle on "search" mode using ⌘+. (Mac) or Ctrl+. (Windows/Linux). Sweep will automatically understand your current workspace and file context.
  • Code Selection: Highlight specific code and press ⌘+shift+J (Mac) or Ctrl+shift+J (Windows/Linux) to add it to the context
  • Toggle Modes: Use ⌘+. (Mac) or Ctrl+. (Windows/Linux) to switch between chat and context-aware modes
  • File References: Use @ to quickly reference and add files to the conversation