➕ Add Context Tool

While Augmented Context indexes your whole project, the Add Context tool allows you to manually and precisely select which files or information should be included in your current query.


🛠️ How to use Add Context

You can find the "+ Add Context" button just above the chat input field. When clicked, it opens a menu with several options:

  • Files: Browse and select specific files from your workspace.
  • Open Tabs: Quickly add all files currently open in your editor.
  • Folder: Select an entire folder to be used as context.
  • Code Selection: If you have code selected in your editor, it can be automatically attached.

⌨️ Keyboard Shortcuts (Mentions)

You don't always need to click the button. CodeGPT supports Mentions directly in the input box:

  • # (Hashtag): Start typing a filename after a # to mention and attach that file (e.g., #index.js).
  • / (Slash): Use slash commands to trigger specific actions (e.g., /explain, /fix).

💡 Best Practices

  • Be selective: Adding too much irrelevant context can sometimes confuse the model or increase token costs unnecessarily.
  • Combine with Mentions: Use @codebase for general searches and #filename for specific file questions.

🔜 Next Step

Understand how billing works in the Plans & Credits section.