Cody for VS Code v0.12 release
Improved unit test generation, customizable chat pre-instructions, new custom command documentation, a new claude-instant-infill autocomplete model.

Improved unit test generation, customizable chat pre-instructions, new custom command documentation, a new claude-instant-infill autocomplete model.
Cody for VS Code v0.12 is now available and includes improved unit test generation, customizable chat pre-instructions, new custom command documentation, a new claude-instant-infill autocomplete model, and a new sign in experience.
Unit test generation now better detects your testing framework, adds any dependency imports as needed, and includes the necessary stubs and test setup code:

We've added a new cody.chat.preInstruction setting you can use instruct Cody at the beginning of every chat. For example, to have Cody output TypeScript you would set the pre-instruction to Prefer TypeScript over JavaScript:

To set a pre-instruction, in your VS Code user or workspace settings configure the cody.chat.preInstruction setting.
We added new documentation for the experimental custom commands feature:

The "New Custom Command…" menu has been updated and allows you to choose where to save your new command, and a button for showing the generated JSON.


When you use the "Insert at Cursor" button in Cody's chat view and have code selected in your editor, the code will be inserted before your selection instead of replacing the selected code.
We've migrated to an all-new claude-instant-infill autocomplete model that can produce higher quality autocompletions using the context of surrounding code. For example, it performs better at autocompleting function documentation, and suggesting variable names that are not already in use. This new model is enabled by default.
We've added experimental code graph context fetching support for autocomplete. This is a complete reimagining of context retrieval for autocomplete, and uses the underlying language server and temporal heuristics (recently viewed symbols) to populate the context for autocomplete suggestions. It's currently supports JavaScript, TypeScript, and Go, and we'll be testing how it performs against embeddings and local keyword context.
In cases where autocompletions don't automatically trigger, you can now request them manually using opt + \ on Mac, or alt + \ on Windows and Linux.
For new users, you can now sign in to Cody directly using a GitHub, GitLab or Google account:

See the changelog and GitHub releases for a complete list of changes.
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.

With Sourcegraph, the code understanding platform for enterprise.
Schedule a demo