From d4d24b5926d54823dbbf10380acf023dec605a0c Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Tue, 11 Mar 2025 12:49:36 -0700 Subject: [PATCH 1/7] Beta release docs for auto-edit --- docs/cody/capabilities/auto-edit.mdx | 48 +++------------------------- docs/pricing/plan-comparison.mdx | 2 +- 2 files changed, 5 insertions(+), 45 deletions(-) diff --git a/docs/cody/capabilities/auto-edit.mdx b/docs/cody/capabilities/auto-edit.mdx index a07391161..40edbb501 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -2,7 +2,7 @@

Auto-edit suggests code changes by analyzing cursor movements and typing. After you've made at least one character edit in your codebase, it begins proposing contextual modifications based on your cursor position and recent changes.

-Auto-edits is currently in experimental rollout within the VS Code extension. Access is limited to selected Enterprise Starter (Cody Pro) and Enterprise users on Cody Gateway. We will expand availability as we validate the feature's performance. +Auto-edit is currently supported in VS Code extension with Sourcegraph v6.0 and more.It's available as Beta for Enterprise Starter (Cody Pro) and Enterprise users on Cody Gateway. For Free users, auto-edit remains as Experimental. ## Capabilities of auto-edit @@ -14,49 +14,9 @@ ## Enabling auto-edit -Eligible Cody Pro users will gradually be given access to the auto-edit feature. Once you have it, you will receive an in-editor notification. +Auto-edit is enabled by default for Cody Pro and Enterprise users. You can opt out and switch back to **autocomplete** by selecting it from the suggestion mode in the Cody VS Code extension settings. - - -### Auto-edit access for Enterprise customers - -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: - -1. Site administrators must: - - Enable the feature flag `cody-autoedit-experiment-enabled-flag` - - Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) (see below) -2. Once enabled, developers will receive a notification in their editor to turn it on -3. If you skip the notification or don't see it, you can manually enable/disable it from the Cody extension settings. - -![enable-from-cody-settings](https://storage.googleapis.com/sourcegraph-assets/Docs/enable-auto-edit-from-settings.jpg) - -There is a drop-down menu for Cody's suggestions mode. You can choose between the default autocomplete and the auto-edit mode, or you can turn off the suggestions completely. - -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 - ], - } - } -} -``` +Site admins can opt their organization out of the auto-edit feature by disabling it from their config settings. ## How does auto-edit work? @@ -85,4 +45,4 @@ The auto-edit feature can help you with various repetitive tasks in your code: - **Call site updates**: When you change a function's signature, auto-edit detects all locations where the function is called and suggests necessary modifications to match the new signature. This includes updating parameter orders, adding error handling, and adjusting return value usage. - **Test file maintenance**: Helps with repetitive updates in test files, such as modifying test assertions, updating mock objects, or changing test data structures. Auto-edit recognizes patterns from your recent changes and suggests similar modifications across related tests. - **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**: When updating type definitions or interfaces, auto-edit identifies and suggests consistent changes across your codebase. This includes updating variable declarations, function parameters, and return types to maintain type consistency. +- **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. diff --git a/docs/pricing/plan-comparison.mdx b/docs/pricing/plan-comparison.mdx index 50f19ac8c..a074b65bc 100644 --- a/docs/pricing/plan-comparison.mdx +++ b/docs/pricing/plan-comparison.mdx @@ -11,7 +11,7 @@ | Integrated search results | - | ✓ | ✓ | | Prompt Library | ✓ | ✓ | ✓ | | Bring your own LLM Key | - | - | Self-Hosted only | -| Auto-edit | - | Experimental | Experimental | +| Auto-edit | - | Beta | Beta | | Aentic chat experience | - | Experimental | Experimental | | **Code Search** | | | | | Code Search | - | ✓ | ✓ | From 5cd9d4fbe4e50ebe49ccabdd928effc2f91eb7e0 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Mon, 24 Mar 2025 12:48:47 -0700 Subject: [PATCH 2/7] Add details for ent --- docs/cody/capabilities/auto-edit.mdx | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/docs/cody/capabilities/auto-edit.mdx b/docs/cody/capabilities/auto-edit.mdx index 40edbb501..1b03022d3 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -18,6 +18,42 @@ Auto-edit is enabled by default for Cody Pro and Enterprise users. You can opt o 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 + +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: + +1. Site administrators must: + - Enable the feature flag `cody-autoedit-experiment-enabled-flag` and can also opt-out via the same flag + - 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 + +![enable-from-cody-settings](https://storage.googleapis.com/sourcegraph-assets/Docs/enable-auto-edit-from-settings.jpg) + +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 + ], + } + } +} +``` + ## How does auto-edit work? The system detects potential changes based on the following: From 9fe4135816349a761c03de2d61b0064d55d56312 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Mon, 24 Mar 2025 13:22:44 -0700 Subject: [PATCH 3/7] Update docs/cody/capabilities/auto-edit.mdx Co-authored-by: Alex Romano --- 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 1b03022d3..ab80e9ace 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -2,7 +2,7 @@

Auto-edit suggests code changes by analyzing cursor movements and typing. After you've made at least one character edit in your codebase, it begins proposing contextual modifications based on your cursor position and recent changes.

-Auto-edit is currently supported in VS Code extension with Sourcegraph v6.0 and more.It's available as Beta for Enterprise Starter (Cody Pro) and Enterprise users on Cody Gateway. For Free users, auto-edit remains as Experimental. +Auto-edit is currently supported in the VS Code extension with Sourcegraph v6.0+. It's available in Beta for Pro, Enterprise Starter and Enterprise users on Cody Gateway. For Free users, auto-edit remains as Experimental. ## Capabilities of auto-edit From 42daa32ee183f787e15aadda816b82afe6ffba75 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Mon, 24 Mar 2025 13:23:00 -0700 Subject: [PATCH 4/7] Update docs/cody/capabilities/auto-edit.mdx Co-authored-by: Alex Romano --- 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 ab80e9ace..c52681e8d 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -14,7 +14,7 @@ ## Enabling auto-edit -Auto-edit is enabled by default for Cody Pro and Enterprise users. You can opt out and switch back to **autocomplete** by selecting it from the suggestion mode in the Cody VS Code extension 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 VS Code extension settings. Site admins can opt their organization out of the auto-edit feature by disabling it from their config settings. From f3ba81345c68b159a2666d9ef74249b953cc82c4 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Mon, 24 Mar 2025 13:23:12 -0700 Subject: [PATCH 5/7] Update docs/cody/capabilities/auto-edit.mdx Co-authored-by: Alex Romano --- 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 c52681e8d..281950bb5 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -23,7 +23,7 @@ Site admins can opt their organization out of the auto-edit feature by disabling 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: 1. Site administrators must: - - Enable the feature flag `cody-autoedit-experiment-enabled-flag` and can also opt-out via the same flag + - 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 From 4877ccaeb125b6886cff5fb1298a960a1a332fb5 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Mon, 24 Mar 2025 13:23:23 -0700 Subject: [PATCH 6/7] Update docs/cody/capabilities/auto-edit.mdx Co-authored-by: Alex Romano --- 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 281950bb5..c161f042a 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -27,7 +27,7 @@ Auto-edit is available for Enterprise customers with [Sourcegraph Cody Gateway]( - 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 ![enable-from-cody-settings](https://storage.googleapis.com/sourcegraph-assets/Docs/enable-auto-edit-from-settings.jpg) The following example demonstrates how to add Fireworks as an allowed LLM provider: From 925175689d28d2bbd500e826353d49d2e0b6f23a Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Tue, 25 Mar 2025 16:01:29 -0700 Subject: [PATCH 7/7] Remove image and improve callout --- docs/cody/capabilities/auto-edit.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/cody/capabilities/auto-edit.mdx b/docs/cody/capabilities/auto-edit.mdx index c161f042a..6e85a3d4f 100644 --- a/docs/cody/capabilities/auto-edit.mdx +++ b/docs/cody/capabilities/auto-edit.mdx @@ -2,7 +2,7 @@

Auto-edit suggests code changes by analyzing cursor movements and typing. After you've made at least one character edit in your codebase, it begins proposing contextual modifications based on your cursor position and recent changes.

-Auto-edit is currently supported in the VS Code extension with Sourcegraph v6.0+. It's available in Beta for Pro, Enterprise Starter and Enterprise users on Cody Gateway. For Free users, auto-edit remains as Experimental. +Auto-edit is currently supported in the VS Code extension with Sourcegraph v6.0+. It's available in Beta 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-access-for-enterprise-customers) ## Capabilities of auto-edit @@ -28,7 +28,6 @@ Auto-edit is available for Enterprise customers with [Sourcegraph Cody Gateway]( 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 -![enable-from-cody-settings](https://storage.googleapis.com/sourcegraph-assets/Docs/enable-auto-edit-from-settings.jpg) The following example demonstrates how to add Fireworks as an allowed LLM provider: