Cody for VS Code v0.10 release

Tim Lucas

Cody for VS Code v0.10 is now available, and includes command menu UX improvements, JSON export, JSON format changes to custom commands, autocomplete rate limit visibility, and streamed autocomplete responses.

Command menu UX improvements

The Cody command menu (accessible with Opt-C or Alt-C) has been reorganized to show the slash name for each command, and which commands take arguments:

Screenshot of Cody v0.10 command menu

We've also improved being able to quickly ask a question or perform a code edit by typing directly into the Cody command menu input:

Screenshot of Cody v0.10 command fallbacks

The chat command menu was also updated to more clearly separate the built-in commands and custom commands:

Screenshot of Cody v0.10 chat view command popover

Chat history JSON export

You can now export and inspect your chat history as JSON using the new "Export" button in Chat History:

Screenshot of Cody v0.10 chat JSON export buttton

The export includes the full conversation between Cody and the LLM allowing you to see how Cody works, send your chat history to Sourcegraph support, or more easily develop custom commands.

{
    "Sun, 03 Sep 2023 14:00:44 GMT": {
        "id": "2023-09-03T14:00:44.696Z",
        "interactions": [
            {
                "humanMessage": { ... },
                "assistantMessage": { ... },
                "fullContext": [
                    { ... }
                ]
            }
        ]
        
    }
}

Updated custom command JSON format

Custom Cody Commands is an experimental feature for extending and customizing Cody. They can be configured locally, or shared with your team by checking them in to your repository.

We've updated the JSON configuration format so it now requires a slash command. Now the command is defined by the JSON object key rather than in a special field. We removed the old slashCommand field and added a new description field that describes how each command is used.

{
    "commands": {
-       "My Custom Command": {
+       "my-custom-command": {
-           "slashCommand": "/my-custom-command",
+           "description": "My custom command",
            "command": "node my-custom-context.js",
            "prompt": "My custom prompt"
        }
    }
}

Old configuration files will be automatically updated to the new format. It's recommended you also update your custom command descriptions to use sentence case, to match the built-in Cody commands.

Autocomplete rate limit visibility

We’ve improved the visibility of autocompletion rate limits. When a rate limit is being applied the Cody status bar icon now changes color. The settings menu also provides information about the rate limit, and links through to the documentation.

Screenshot of Cody v0.10 showing an autocomplete warning

Streamed autocomplete responses

Autocompletions now accept a streamed response from the server, and terminate the stream processing as soon as possible. These two changes have resulted in a 40% speed up of multi-line completions, and 10% speedup for single-line completions.

Changelog

See the changelog and GitHub releases for a complete list of changes.

Thank you

Cody is open source, and wouldn’t be what it is without our amazing contributors 💖 A big thank you to everyone who contributed, filed issues, and sent us feedback.


To get started with Cody, install it from the VS Code Marketplace.

Get Cody, the AI coding assistant

Cody makes it easy to write, fix, and maintain code.