Skip to content

Enhances Cody AI with additional files control and custom command features.

License

Notifications You must be signed in to change notification settings

mnismt/codyplusplus

Repository files navigation

Cody++

Cody++ README

Enhances Cody AI with additional files control and custom command features.

X (formerly Twitter) Follow CI Tests

Installation

  1. Install the Sourcegraph Cody extension in VS Code (if not already installed).

  2. Install the Cody++ extension from the Visual Studio Code Marketplace

  3. You can also install the extension from the command line:

code --install-extension mnismt.cody-plus-plus

Features

Files control

  • Add Files to Cody (Smart):

    • Describe what files you want to add to Cody, and let the AI do the rest.

    image

    • Supported LLM Providers:
      • OpenAI
      • Gemini
      • OpenAI-compatible

    image

    • Select and switch between available models for each provider using the "Select LLM (switch model)" command.

    • Google Gemini Models

      image

    • OpenAI-compatible (Groq, Ollama, etc.) (example: Groq)

      groq(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.

main-post

Custom Commands

  • 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.

Cody++

Extension Settings

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:

  1. Using the Settings UI:

    • Open the Command Palette (Ctrl+Shift+P or Cmd+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.
  2. 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"]

Development

Requirements

  • Node.js 20.x
  • pnpm 9.11.0 (specified as the package manager)

Testing

The extension comes with a comprehensive test suite. To run tests locally:

# Install dependencies
pnpm install

# Run tests
pnpm test

Telemetry

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:

  1. Open VS Code Settings
  2. Search for "Cody Plus Plus"
  3. Uncheck "Enable Telemetry"

For full details, see our TELEMETRY.md document.

Contributing

We welcome contributions! Please see our GitHub repository for guidelines.

About

Enhances Cody AI with additional files control and custom command features.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages