Skip to content
/ cody Public
forked from sourcegraph/cody

AI that knows your entire codebase. Custom build edition

License

Notifications You must be signed in to change notification settings

PriNova/cody

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cody

⚠️ Important Notice

This is a custom build with extended capabilities. For support and issues related to the additional features, please use this repository's issue tracker. Sourcegraph's official support channels do not cover the custom features added in this build.

Extended Cody AI with Additional Features

This is a custom-enhanced fork of Cody with additional features. While built on Sourcegraph's Cody foundation, this version includes custom features and modifications not supported by Sourcegraph.

Code AI with codebase context

Cody is an AI coding assistant that uses the latest LLMs and codebase context to help you understand, write, and fix code faster.

Docscody.dev

vscode extension License Twitter Discord

Get started with the original Cody AI based on Sourcegraph

Install Cody from the VS Code Marketplace or the JetBrains Marketplace, then check out the demos to see what you can do. And don't forget to give us feedback!

Get started with the custom Cody AI build

Download the latest release and install it in VS Code in the extensions tab.

— or —

  • Build and run the VS Code extension locally: pnpm install && cd vscode && pnpm run dev
  • See all supported editors

What is Cody?

Cody is an open-source AI coding assistant that helps you understand, write, and fix code faster. It uses advanced search to pull context from both local and remote codebases so that you can use context about APIs, symbols, and usage patterns from across your codebase at any scale, all from within your IDE. Cody works with the newest and best large language models, including Claude 3.5 Sonnet and GPT-4o.

Cody is available for VS Code, JetBrains, and on the web.

See cody.dev for more info.

What can Cody do?

  • Chat: Ask Cody questions about your codebase. Cody will use semantic search to retrieve files from your codebase and use context from those files to answer your questions. You can @-mention files to target specific context, and you can also add remote repositories as context on Cody Enterprise.
  • Autocomplete: Cody makes single-line and multi-line suggestions as you type, speeding up your coding and shortcutting the need for you to hunt down function and variable names as you type.
  • Inline Edit: Ask Cody to fix or refactor code from anywhere in a file.
  • Prompts: Cody has quick, customizable prompts for common actions. Simply highlight a code snippet and run a prompt, like “Document code,” “Explain code,” or “Generate Unit Tests.”
  • Swappable LLMs: Support for Anthropic Claude 3.5 Sonnet, OpenAI GPT-4o, Mixtral, Gemini 1.5, and more.
    • Free LLM usage included Cody Free gives you access to Anthropic Claude 3.5 Sonnet and other models. It's available for individual devs on both personal and work code, subject to reasonable per-user rate limits (more info).

Demo

Cody comes with a variety of AI-for-coding features, such as autocomplete, chat, Smart Apply, generating unit tests, and more.

Here's an example of how you can combine some of these features to use Cody to work on a large codebase.

https://www.loom.com/share/ae710891c9044069a9017ee98ce657c5

Added Custom Features

Advanced Workflow System

  • Visual Workflow Editor for automation
  • Node-based processing pipeline
  • Multiple node types supported:
    • CLI execution nodes
    • LLM processing nodes
    • Preview nodes
    • Text formatting nodes
    • Context search nodes
    • more to come
  • Workflow save/load functionality
  • Real-time workflow execution tracking

Configurable Temperature setting

  • Temperature settings for the models used in Cody available in the settings

Copy Functionality of Assistant Messages

  • Copy the assistant message to the clipboard

Token Counting for Chat

  • Show the token count for the chat messages of the current chat session

Chat Title Management

  • Change the title of the chat history

Contributing

All code in this repository is open source (Apache 2).

Quickstart: pnpm install && pnpm build && cd vscode && pnpm run dev to run a local build of the Cody VS Code extension.

See development docs for more.

Feedback

Cody is often magical and sometimes frustratingly wrong. Cody's goal is to be powerful and accurate. You can help:

Usage

Individual usage

Individual usage of Cody currently requires a (free) Sourcegraph.com account because we need to prevent abuse of the free Anthropic/OpenAI LLM usage. We're working on supporting more swappable LLM options (including using your own Anthropic/OpenAI account or a self-hosted LLM) to make it possible to use Cody without any required third-party dependencies.

Codying at work

You can use Cody Free or Cody Pro when Codying on your work code. If that doesn't meet your needs (because you need a dedicated/single-tenant instance, audit logs, bring-your-own-model etc.), upgrade to Cody Enterprise.

Existing Sourcegraph customers

The Cody editor extensions work with:

  • Sourcegraph Cloud
  • Sourcegraph Enterprise Server (self-hosted) instances on version 5.1 or later

About

AI that knows your entire codebase. Custom build edition

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 83.3%
  • Kotlin 7.9%
  • CSS 5.1%
  • Java 1.9%
  • Go 0.6%
  • JavaScript 0.5%
  • Other 0.7%