From 529492bf6f86f67ba8b6cc3c831c2f8c56813f9c Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Wed, 2 Jul 2025 10:47:28 -0700 Subject: [PATCH 1/7] GA for auto-edit --- docs/cody/capabilities/auto-edit.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/cody/capabilities/auto-edit.mdx b/docs/cody/capabilities/auto-edit.mdx index 5fa82bb3e..a56987bce 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -46,7 +46,7 @@ Auto-edit is supported by both Cody VS Code and JetBrains plugins. -Auto-edit for VS Code is currently in Beta. It's available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag. +Auto-edit is available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag. ## Enabling auto-edit in VS Code @@ -93,11 +93,13 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid -Auto-edit for JetBrains IDEs is Experimental and supports JetBrains versions 7.84.0+. It's available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag. +JetBrains IDEs support auto-edit for versions 7.84.0+. It's available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag. ## Enabling auto-edit in JetBrains -You can opt-in the auto-edit feature from the JetBrains Cody plugin settings. +Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise users. You can opt out and switch back to autocomplete by selecting it from the suggestion mode in the Cody JetBrains extension settings. + +Site admins can opt their organization out of the auto-edit feature by disabling it from their config settings. - Click the three-dot menu on the top right of the Cody plugin window and select **Open Cody Settings Editor** - This will open the `cody_settings.json` file in your editor From bfba3f364d2a3e38ffeb9115b9c0abbb0896a3d9 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Wed, 2 Jul 2025 14:30:11 -0700 Subject: [PATCH 2/7] Add visual studio section --- docs/cody/capabilities/auto-edit.mdx | 67 +++++++++++++++++++++------- 1 file changed, 51 insertions(+), 16 deletions(-) diff --git a/docs/cody/capabilities/auto-edit.mdx b/docs/cody/capabilities/auto-edit.mdx index a56987bce..7ae5107ad 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -54,16 +54,12 @@ Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise u Site admins can opt their organization out of the auto-edit feature by disabling it from their config settings. -### Auto-edit access for Enterprise customers +### Configure auto-edit access -Auto-edit is available for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. Enabling the feature requires two steps: +Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To **disable** or configure the auto-edit feature, site administrators must do the following steps: -1. Site administrators must: - - Ensure the feature flag `cody-autoedit-experiment-enabled-flag` is enabled (enabled by default) - - Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) (see below) -2. Once enabled, auto-edit will become the default suggestion mode for all users -3. Users can optionally switch back to autocomplete from the Cody extension settings -4. Site admins can opt out of auto-edits using the `cody-autoedit-experiment-enabled-flag` feature flag +- To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled +- Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) The following example demonstrates how to add Fireworks as an allowed LLM provider: @@ -107,16 +103,55 @@ Site admins can opt their organization out of the auto-edit feature by disabling ![JetBrains-Cody-Settings-Editor](https://storage.googleapis.com/sourcegraph-assets/Docs/jb-cody-settings.png) -### Auto-edit access for Enterprise customers +### Configure auto-edit access -Auto-edit is available for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. Enabling the feature requires two steps: +Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To **disable** or configure the auto-edit feature, site administrators must do the following steps: -1. Site administrators must: - - Ensure the feature flag `cody-autoedit-experiment-enabled-flag` is enabled from the settings editor - - Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) (see below) -2. Once enabled, auto-edit will become the default suggestion mode for all users -3. Users can optionally switch back to autocomplete from the Cody extension settings -4. Site admins can opt out of auto-edits using the `cody-autoedit-experiment-enabled-flag` feature flag +- To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled +- Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) + +The following example demonstrates how to add Fireworks as an allowed LLM provider: + +```json + +"cody.enabled": true, +"modelConfiguration": { + "sourcegraph": { + "modelFilters": { + // Only allow "beta" and "stable" models. + // Not "experimental" or "deprecated". + "statusFilter": ["beta", "stable"], + + // Allow any models provided by Anthropic, OpenAI, Google and Fireworks. + "allow": [ + "anthropic::*", // Anthropic models + "openai::*", // OpenAI models + "google::*", // Google Gemini models + "fireworks::*", // Open source models hosted by Sourcegraph + ], + } + } +} +``` + + + + + +Visual Studio support auto-edit for versions 17.6 and above. It's available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag. + +## Enabling auto-edit in Visual Studio + +Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise users. You can opt out and switch back to autocomplete by selecting it from the suggestion mode in the Cody Visual Studio extension settings. + +![Visual-Studio-Cody-Settings-Editor](https://storage.googleapis.com/sourcegraph-assets/Docs/visual-studio-auto-edit-settings.png) + +### Configure auto-edit access + +Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To **disable** or configure the auto-edit feature, site administrators must do the following steps: + +- To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled +- Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) The following example demonstrates how to add Fireworks as an allowed LLM provider: From ce4619974acb621462826ba7885f7e77c81e9a3a Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Wed, 2 Jul 2025 14:34:18 -0700 Subject: [PATCH 3/7] imp language --- docs/cody/capabilities/auto-edit.mdx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/cody/capabilities/auto-edit.mdx b/docs/cody/capabilities/auto-edit.mdx index 7ae5107ad..9f6646e12 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -138,11 +138,16 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid -Visual Studio support auto-edit for versions 17.6 and above. It's available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag. +Visual Studio supports auto-edit for versions 17.6 and above. It's available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag. ## Enabling auto-edit in Visual Studio -Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise users. You can opt out and switch back to autocomplete by selecting it from the suggestion mode in the Cody Visual Studio extension settings. +Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise users. Two settings must be enabled by default in the Visual Studio Cody extension settings to make the auto-edit feature work. + +1. Automatically trigger completions +2. Enable Cody Auto-edit + +You can opt out and switch back to autocomplete by deselecting it from the Cody Visual Studio extension settings. ![Visual-Studio-Cody-Settings-Editor](https://storage.googleapis.com/sourcegraph-assets/Docs/visual-studio-auto-edit-settings.png) From ed4a6d29f97c663474332bdc13aa99074664c681 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Wed, 2 Jul 2025 14:35:46 -0700 Subject: [PATCH 4/7] Add callouts --- docs/cody/capabilities/auto-edit.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/cody/capabilities/auto-edit.mdx b/docs/cody/capabilities/auto-edit.mdx index 9f6646e12..899e9822c 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -184,3 +184,5 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid + +Self-hosted customers get autocomplete as default. They cannot opt-in for auto-edit until they allow gateway access to Cody. From 4452286001ecfb9f51a838532aae265da295e0ca Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Thu, 3 Jul 2025 12:50:17 -0700 Subject: [PATCH 5/7] Add improvements --- docs/cody/capabilities/auto-edit.mdx | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/docs/cody/capabilities/auto-edit.mdx b/docs/cody/capabilities/auto-edit.mdx index 899e9822c..b5a7844ae 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -41,7 +41,7 @@ The auto-edit feature can help you with various repetitive tasks in your code: - **Parameter refactoring**: Assists in adding, removing, or reorganizing function parameters. When you unpack a function to handle more cases, auto-edit helps restructure the parameter list and suggests corresponding changes at call sites. - **Type system modifications**: Auto-edit identifies and suggests consistent changes across your codebase when updating type definitions or interfaces. This includes updating variable declarations, function parameters, and return types to maintain type consistency. -Auto-edit is supported by both Cody VS Code and JetBrains plugins. +Auto-edit is supported by both Cody VS Code, JetBrains, and Visual Studio plugins. @@ -56,9 +56,8 @@ Site admins can opt their organization out of the auto-edit feature by disabling ### Configure auto-edit access -Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To **disable** or configure the auto-edit feature, site administrators must do the following steps: +Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To configure auto-edit: -- To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled - Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) The following example demonstrates how to add Fireworks as an allowed LLM provider: @@ -85,6 +84,10 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid } ``` +#### Disable auto-edit + +To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled + @@ -105,9 +108,8 @@ Site admins can opt their organization out of the auto-edit feature by disabling ### Configure auto-edit access -Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To **disable** or configure the auto-edit feature, site administrators must do the following steps: +Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To configure auto-edit: -- To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled - Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) The following example demonstrates how to add Fireworks as an allowed LLM provider: @@ -134,6 +136,10 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid } ``` +#### Disable auto-edit + +To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled + @@ -153,9 +159,8 @@ You can opt out and switch back to autocomplete by deselecting it from the Cody ### Configure auto-edit access -Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To **disable** or configure the auto-edit feature, site administrators must do the following steps: +Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To configure auto-edit: -- To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled - Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) The following example demonstrates how to add Fireworks as an allowed LLM provider: @@ -182,6 +187,10 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid } ``` +#### Disable auto-edit + +To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled + From f1b41568272fd2105c78b98e1c8692ea07125efd Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Thu, 3 Jul 2025 13:18:07 -0700 Subject: [PATCH 6/7] Update docs/cody/capabilities/auto-edit.mdx Co-authored-by: graceshih-sg --- docs/cody/capabilities/auto-edit.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cody/capabilities/auto-edit.mdx b/docs/cody/capabilities/auto-edit.mdx index b5a7844ae..d82b9bd7b 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -41,7 +41,7 @@ The auto-edit feature can help you with various repetitive tasks in your code: - **Parameter refactoring**: Assists in adding, removing, or reorganizing function parameters. When you unpack a function to handle more cases, auto-edit helps restructure the parameter list and suggests corresponding changes at call sites. - **Type system modifications**: Auto-edit identifies and suggests consistent changes across your codebase when updating type definitions or interfaces. This includes updating variable declarations, function parameters, and return types to maintain type consistency. -Auto-edit is supported by both Cody VS Code, JetBrains, and Visual Studio plugins. +Auto-edit is supported by Cody VS Code, JetBrains, and Visual Studio plugins. From c3164c3792bbb66446deeaa868f137fda75bd2b4 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Thu, 3 Jul 2025 13:20:58 -0700 Subject: [PATCH 7/7] small tweaks --- docs/cody/capabilities/auto-edit.mdx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/docs/cody/capabilities/auto-edit.mdx b/docs/cody/capabilities/auto-edit.mdx index d82b9bd7b..0f58fba34 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -84,10 +84,6 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid } ``` -#### Disable auto-edit - -To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled - @@ -136,10 +132,6 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid } ``` -#### Disable auto-edit - -To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled - @@ -187,11 +179,11 @@ The following example demonstrates how to add Fireworks as an allowed LLM provid } ``` -#### Disable auto-edit - -To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled - Self-hosted customers get autocomplete as default. They cannot opt-in for auto-edit until they allow gateway access to Cody. + +## Disable auto-edit + +To turn-off the auto-edit feature, set the feature flag `cody-autoedit-experiment-enabled-flag` as `disabled` in your site configuration. Doing so will switch back to autocomplete as your default suggestion mode.