Enhances Cody AI with additional files control and custom command features.
-
Install the Sourcegraph Cody extension in VS Code (if not already installed).
-
Install the Cody++ extension from the Visual Studio Code Marketplace
-
You can also install the extension from the command line:
code --install-extension mnismt.cody-plus-plus
-
Add Files to Cody (Smart):
- Describe what files you want to add to Cody, and let the AI do the rest.
- Supported LLM Providers:
- OpenAI
- Gemini
- OpenAI-compatible
-
Add File to Cody:
- Adds a single file to Cody's context.
-
Add Selected Files to Cody:
- Adds multiple selected files to Cody's context.
-
Add Selected Files to Cody (Recursive):
- Recursively adds multiple selected files, including those in subdirectories, to Cody's context.
-
Add Folder to Cody:
- Adds only the files in the selected folder (non-recursive) to Cody's context.
-
Add Folder to Cody (Recursive):
- Recursively adds all files in a folder to Cody.
- You can configure the file extensions to exclude from being added to Cody.
- You can configure the folders to exclude from being added to Cody.
- You can configure the maximum number of files allowed before showing a warning message.
- Add Custom Command:
- Add, edit, and remove custom commands from the workspace settings.
- Custom commands are managed in a
cody.json
file within your workspace's.vscode
directory. - Provides a user-friendly UI for creating and editing custom commands.
- Edit Custom Command:
- Edit an existing custom command.
- Delete Custom Command:
- Delete a custom command.
This extension contributes the following settings:
codyPlusPlus.fileThreshold
: The maximum number of files allowed before showing a warning message. Default is 15.codyPlusPlus.excludedFileTypes
: List of file extensions to exclude from being added to Cody. Default is [".exe", ".bin"].codyPlusPlus.excludedFolders
: List of folders to exclude from being added to Cody.
To configure this setting in two ways:
-
Using the Settings UI:
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
on Mac). - Type
Preferences: Open Settings (UI)
and press Enter. - In the search bar, type
Cody Plus Plus
. - Adjust the:
File Threshold
setting to your desired value.Excluded File Types
setting to your desired value.Excluded Folders
setting to your desired value.
- Open the Command Palette (
-
Using the
settings.json
file:-
Add these lines to your
settings.json
file:"codyPlusPlus.fileThreshold": 15, "codyPlusPlus.excludedFileTypes": [".exe", ".bin"], "codyPlusPlus.excludedFolders": [".git", "node_modules"]
-
- Node.js 20.x
- pnpm 9.11.0 (specified as the package manager)
The extension comes with a comprehensive test suite. To run tests locally:
# Install dependencies
pnpm install
# Run tests
pnpm test
Cody++ collects anonymous usage information to help improve the extension. We are committed to protecting your privacy:
- What We Track: Basic usage events like file additions and custom command interactions
- What We Don't Track:
- No file contents
- No personal identifiable information
- No code snippets
You can easily opt out of telemetry:
- Open VS Code Settings
- Search for "Cody Plus Plus"
- Uncheck "Enable Telemetry"
For full details, see our TELEMETRY.md document.
We welcome contributions! Please see our GitHub repository for guidelines.