File-Based Context

The primary way to manage context is through your project files:

  1. Currently Focused File
  • Your active editor tab is automatically included as context
  • Highlight any text range to emphasize specific sections

Focused file and highlighting example

  1. From Open Tabs
  • Click the file icon in top corner
  • Select/unselect additional files from your tabs

Files dropdown showing context management

  1. From Project Files
  • Click “Add Context”
  • Search and select files/folders
  • Folders include all nested files

Project files search example

Only include the file context needed for your current task. This helps lower cost AND improve output quality.

Additional Context Methods

You can also provide context through:

  1. URLs
  • Paste URLs into chat
  • AI uses webpage contents as context

URL context example

  1. Uploads
  • Use upload icon in bottom corner
  • Supports documents, images, audio, and video

Upload interface options

Conversation Context Management

By default, only the 5 most recent back-and-forth turns in a conversation are kept as context. This automatic management helps maintain an optimal price/performance ratio while keeping the most relevant context.

To preserve specific messages from earlier in the conversation:

  1. Click the three dots menu next to any message
  2. Select “Set as Important”
  3. The message will be marked with a flag 🚩 and kept in context

Setting a message as important

Use the Important flag for key information or instructions you want the AI to remember throughout the conversation.