Skip to content

Commit 050cf99

Browse files
MaedahBatoolaramarajujanhartmanmmanelamarcleblanc2
authored
Docs working branch for Sourcegraph 6.5 release (#1201)
Docs working branch for v6.5 release. --------- Co-authored-by: Aravind Ramaraju <[email protected]> Co-authored-by: Jan Hartman <[email protected]> Co-authored-by: Matthew Manela <[email protected]> Co-authored-by: Marc <[email protected]> Co-authored-by: Audrey Sage Lorberfeld <[email protected]> Co-authored-by: Michael Bahr <[email protected]>
1 parent f836e35 commit 050cf99

File tree

15 files changed

+178
-188
lines changed

15 files changed

+178
-188
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Sourcegraph Docs
44

5-
<!-- Working branch for Sourcegraph 6.4 Release -->
5+
<!-- Working branch for Sourcegraph 6.5 Release -->
66

77
Welcome to the Sourcegraph documentation! We're excited to have you contribute to our docs. We've recently rearchitectured our docs tech stack — powered by Next.js, TailwindCSS and deployed on Vercel. This guide will walk you through the process of contributing to our documentation using the new tech stack.
88

docs.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
DOCS_LATEST_VERSION: '6.4'
2+
DOCS_LATEST_VERSION: '6.5'
33
};
44

55
module.exports = config;

docs/admin/access_control/service_accounts.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ Service accounts are created like regular user accounts, but with a few key diff
1212
- Check the **Service account** checkbox
1313
- Click **Create service account**
1414

15+
![create-service-account](https://storage.googleapis.com/sourcegraph-assets/Docs/create-service-accounts-0625.png)
16+
1517
You'll be presented with some next steps you might want to take, like creating an access token, managing and assigning roles, and managing repository permissions.
1618

1719
- Service accounts are automatically assigned the "Service Account" system role
1820
- They appear in the user list with "Service account" type designation
1921
- By default, service accounts can only access public and unrestricted repositories
2022

23+
![next-steps-service-account](https://storage.googleapis.com/sourcegraph-assets/Docs/service-accounts-next-steps-0625.png)
24+
2125
## Managing Access Tokens
2226

2327
Service accounts authenticate using access tokens rather than passwords. For detailed information about creating, managing, and using access tokens, see:
@@ -44,8 +48,12 @@ Administrators can assign additional roles to service accounts through the user
4448
- [Managing user roles](/admin/access_control#managing-user-roles)
4549
- [Creating custom roles](/admin/access_control#creating-a-new-role-and-assigning-it-permissions)
4650

51+
![service-account-roles](https://storage.googleapis.com/sourcegraph-assets/Docs/service-accounts-manage-roles-0625.png)
52+
4753
## Repository Permissions
4854

4955
Service accounts respect repository permissions and access controls. For comprehensive information about repository permissions, see the [Repository permissions](/admin/permissions) documentation.
5056

51-
Service accounts by default can only access public and unrestricted repositories in Sourcegraph. You may explicitly grant fine-grained access to private repositories from the service account's user settings page, under the **Repo permissions** tab, or via [the GraphQL API](/admin/permissions/api#explicit-permissions-api). In the **Repo permissions** tab, you can also grant service accounts access to all current and future repositories on Sourcegraph, regardless of their visibility, which is useful for service accounts that need to do things like perform search jobs, but admins should take care to ensure that the access tokens for these accounts are not shared with unauthorized users.
57+
Service accounts by default can only access public and unrestricted repositories in Sourcegraph. You may explicitly grant fine-grained access to private repositories from the service account's user settings page, under the **Repo permissions** tab, or via [the GraphQL API](/admin/permissions/api#explicit-permissions-api). In the **Repo permissions** tab, you can also grant service accounts access to all current and future repositories on Sourcegraph, regardless of their visibility, which is useful for service accounts that need to do things like perform search jobs, but admins should take care to ensure that the access tokens for these accounts are not shared with unauthorized users.
58+
59+
![service-account-repo-permissions](https://storage.googleapis.com/sourcegraph-assets/Docs/service-accounts-repo-permissions-0625.png)

docs/batch-changes/bulk-operations-on-changesets.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Below is a list of supported bulk operations for changesets and the conditions w
3636
| **Merge** | Merge the selected changesets on code hosts. Some changesets may be unmergeable due to their states, which does not impact the overall bulk operation. Failed merges are listed under the bulk operations tab. In the confirmation modal, you can opt for a squash merge strategy, available on GitHub, GitLab, and Bitbucket Cloud. For Bitbucket Server/Data Center, only regular merges are performed |
3737
| **Close** | Close the selected changesets on the code hosts |
3838
| **Publish** | Publishes the selected changesets, provided they don't have a [`published` field](/batch-changes/batch-spec-yaml-reference#changesettemplatepublished) in the batch spec. You can choose between draft and normal changesets in the confirmation modal |
39+
| **Push-only** | Pushes code changes to a new branch on a code host without making a merge request. Available on GitHub and GitLab only. |
3940
| **Export** | Export selected changesets that you can use for later use |
4041
| **Re-execute** | Users can re-execute individual changeset creation logic for selected workspaces. This allows for creating new changesets for users who are using non-deterministic run steps (for example,LLMs) |
4142
| **Enable auto-merge for GitHub (experimental)** | Enable auto-merge on selected GitHub changesets. When enabled, changesets will be automatically merged once all required status checks pass and any blocking reviews are resolved. This feature is GitHub-specific and requires [appropriate setup](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository) on the target repositories. Failed actions are listed under the bulk operations tab. |
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Pushing code to a code host
2+
3+
<p className="subtitle">Learn how to push code changes to a code host without making a merge request.</p>
4+
5+
<Callout type="note">Pushed-only changesets work on GitHub and GitLab only. They do not yet work with forked repositories.</Callout>
6+
7+
After you've [created a batch change](/batch-changes/create-a-batch-change), you will be redirected to a page displaying a list of the changesets the Batch Change created. From this page, you can apply any bulk operation to more than one changesets.
8+
9+
To push code to a new branch on a code host without also creating a merge request, simply select **Push to code host only** from the dropdown menu:
10+
11+
![push-only-dropdown](https://storage.googleapis.com/sourcegraph-assets/Docs/push-only-dropdown-0625.png)
12+
13+
## Few important considerations
14+
15+
- With pushed-only changesets, you are still able see CI feedback, as long as it triggers on code pushes
16+
- The `review` status of a pushed-only changeset is always "N/A"
17+
- The `status` of a pushed-only changeset is always "Open"
18+
- To publish a pushed-only changeset, simply select the changeset in the Batch Changes UI and select **Publish**
19+
20+
![push-only-changesets-executed](https://storage.googleapis.com/sourcegraph-assets/Docs/push-only-executed-0625.png)
21+
22+
## Requirements
23+
24+
To push code to a new branch on a code host, you will need:
25+
26+
- [Admin permissions for the batch change](/batch-changes/permissions-in-batch-changes#permission-levels-for-batch-changes)
27+
- Write access to the changeset's repository on the code host
28+
- [Credentials](/batch-changes/configuring-credentials) configured for the code host
29+
30+
<Callout type="note">For more information, see [Code host interactions in Batch Changes](/batch-changes/permissions-in-batch-changes#code-host-interactions-in-batch-changes).</Callout>

docs/batch-changes/quickstart.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ The batch change's **changesets** still need to be published, which means they e
100100

101101
## Publish a changeset
102102

103-
So far, nothing has been created on your code hosts. To do so, you must tell Sourcegraph to **publish a changeset**.
103+
So far, nothing has been created on your code hosts. To do so, you can tell Sourcegraph to either **publish** or **push** a changeset.
104104

105-
Publishing causes commits, branches, and pull/merge requests to be written to your code host.
105+
- **[Publishing](/batch-changes/publishing-changesets)** a changeset results in the creation of a merge request on your code host (e.g. a Pull Request on GitHub).
106+
- **[Pushing](/batch-changes/push-only-changesets)** a changeset (available on GitHub and GitLab only) results in pushing your code changes to a new branch on your code host without also creating a merge request. You are able to see any CI feedback set to trigger upon code-pushes in the Batch Changs UI.
106107

107108
### Configure code host credentials
108109

docs/code-search/types/deep-search.mdx

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,75 @@
11
# Deep Search
22

3-
<p className="subtitle">Learn more about Sourcegraph's agentic Code Search tool Deep Search.</p>
3+
<p className= "subtitle">Learn more about Sourcegraph's agentic Code Search tool Deep Search.</p>
44

5-
<Callout type="note"> New in version 6.4. Deep Search is currently in research preview for Enterprise customers with access to Cody and Code Search. Because Deep Search is in research preview, it might change significantly in the future as we make improvements and adjust to user feedback. Please reach out to your Sourcegraph account team to request access. </Callout>
5+
<Callout type="note"> New in version 6.5. Deep Search is currently in research preview for Enterprise and Enterprise Starter customers. Because Deep Search is in research preview, it might change significantly as we improve and adjust to user feedback. Please reach out to your Sourcegraph account team to request access. </Callout>
66

7-
Deep Search is an agentic code search tool. It receives a natural language question about a codebase, performs an in-depth search, and returns a detailed answer. The user can also ask follow-up questions to improve the answer further.
7+
Deep Search is an agentic code search tool that understands natural language questions about your codebase. When a question is submitted, Deep Search performs an in-depth search and returns a detailed answer. The conversation can be continued with follow-up questions to dive deeper into relevant code.
88

9-
Under the hood, Deep Search is an AI agent that uses various tools to generate its answer. These tools include multiple modes of Sourcegraph's Code Search and Code Navigation tools. Using tools in an agentic loop enables Deep Search to iteratively refine its understanding of the question and codebase, searching until it is confident in its answer.
9+
Under the hood, Deep Search is an AI agent that uses various tools to generate its answer. The tools are functionalities available in Sourcegraph. They include multiple modes of Sourcegraph's Code Search and Code Navigation features. All processing happens within your Sourcegraph instance. Only external calls are made to the configured LLM.
1010

11-
Deep Search displays a list of sources used to generate the answer. The sources are the various types of searches it performs and the files it reads. The answer is formatted in markdown. If prompted to do so, Deep Search can also generate diagrams as part of its answer.
11+
The core of Deep Search is an agentic loop. The AI agent can intelligently use tools to explore the codebase. In each loop iteration, the agent gradually refines its understanding of the question and codebase, searching until it is confident in its answer.
12+
13+
Every Deep Search response includes a detailed list of sources contributing to the answer. These sources show exactly which searches were performed and which files were read. The list of sources is extremely useful for understanding where the answer came from and for further explorations of the codebase.
14+
15+
The answer is formatted in Markdown and can include links to relevant files, directories, or repositories. If prompted to do so, Deep Search can also generate diagrams as part of its answer.
1216

1317
## Best practices
1418

15-
- Give the agent a starting point for the search: Mention relevant repositories, files, directories, or symbol names. The more specific you are, the faster the search will be.
19+
- Give the agent a starting point for the search: use @-mentions to mention relevant repositories, files, directories, or symbol names. The more specific you are, the faster the search will be.
1620
- Provide reasonably scoped questions. The agent will perform much better if it does not have to read the entire codebase at once.
17-
- Check the list of sources. This is extremely useful for debugging and understanding where the answer came from. If something is missing, ask a follow-up question and mention the missing source.
21+
- Check the list of sources. This is extremely useful for debugging and understanding where the answer came from. Ask a follow-up question and mention the missing source if something is missing.
22+
23+
For use cases where you're looking for exhaustive answers (for example, "Find all files with the `.XYZ` file extension in `foo' repo that contain the word`bar`), Code Search still excels, while Deep Search will only utilize a sample of the results. Deep Search will perform a Code Search query as a source, which you can use to continue an exhaustive search within the Code Search product.
1824

1925
### Examples of prompts
2026

2127
- Find examples of logger usage and show examples of the different types of logging we use.
22-
- I want to know when the indexing queue functionality was last changed in `sourcegraph/zoekt`. Show me the last few commit diffs touching this code and explain the changes.
23-
- Look at the GraphQL APIs available in `sourcegraph/sourcegraph`. Are any of them unused? The client code is in `sourcegraph/cody`.
28+
- I want to know when the indexing queue functionality was last changed in `@zoekt`. Show me the last few commit diffs touching this code and explain the changes.
29+
- Look at the GraphQL APIs available in `@sourcegraph/sourcegraph`. Are any of them unused? The client code is in the `@cody` repository.
2430
- Which tools do we use in our build processes defined in `BUILD.bazel` files?
2531
- Generate a request flow diagram for `src/backend`. Mark the auth and rate limit points.
2632

33+
## Conversation sharing
34+
35+
<Callout type= "note">Conversation sharing is disabled by default - see below for instructions on enabling it. </Callout>
36+
37+
You can share Deep Search conversations with other users in your Sourcegraph instance. To share a conversation, click the "Share" button in the top left, then copy the link. Once you share a conversation, any user on your instance can view it with the link. You can also reset the share link and generate a new one, invalidating the previous link.
38+
39+
We do not enforce [repository permissions](/admin/permissions) for viewing shared Deep Search conversations. This means that a user can view a conversation shared with them, regardless of which repositories they can access. We plan to revisit this in the future.
40+
2741
## Enabling Deep Search
2842

29-
Deep Search can only be used on Sourcegraph instances with Code Search and Cody licenses.
43+
If Deep Search is disabled, ask your site administrator to enable the following setting in your site configuration:
44+
```json
45+
"experimentalFeatures": {
46+
"deepSearch.enabled": true,
47+
},
48+
```
49+
50+
For optimal performance, Deep Search is specialized only to use one model. Currently, Deep Search only supports Claude Sonnet 4.
51+
52+
If you are not using [Cody Gateway](/cody/core-concepts/cody-gateway), you must also configure the model through Amazon Bedrock or GCP Vertex.
53+
54+
### Enabling conversation sharing
3055

31-
Deep Search is disabled by default. To enable it, ask your site administrator to set `experimentalFeatures.deepSearch.enabled = "true"` in your site configuration.
56+
Conversation sharing is disabled by default. To enable conversation sharing, ask your site administrator to enable the following setting in your site configuration:
3257

33-
For optimal performance, Deep Search is specialized to only use one model. Currently, Deep Search only supports Claude Sonnet 4.
58+
```json
59+
"experimentalFeatures": {
60+
"deepSearch.enabled": true,
61+
"deepSearch.sharing.enabled ": true,
62+
},
63+
```
3464

3565
### Configuring Deep Search on Amazon Bedrock or GCP Vertex
3666

37-
Include configuration for Claude Sonnet 4 in [modelOverrides](/cody/enterprise/model-configuration#model-overrides) in your site configuration. For more information on configuring models, refer to [Model Configuration](/cody/enterprise/model-configuration).
67+
In your site configuration, include the configuration for Claude Sonnet 4 in [modelOverrides](/cody/enterprise/model-configuration#model-overrides). For more information on configuring models, refer to [Model Configuration](/cody/enterprise/model-configuration).
3868

39-
Examples for Sonnet 4 configuration inside `modelOverrides`:
69+
Examples of Sonnet 4 configuration inside `modelOverrides`:
4070

4171
Amazon Bedrock:
72+
4273
```json
4374
{
4475
"modelRef": "aws-bedrock::v1::claude-sonnet-4",
@@ -58,6 +89,7 @@ Amazon Bedrock:
5889
```
5990

6091
GCP Vertex:
92+
6193
```json
6294
{
6395
"modelRef": "google-anthropic::v2::claude-sonnet-4",
@@ -79,6 +111,7 @@ GCP Vertex:
79111
Then, configure Deep Search to use this model in `experimentalFeatures`:
80112

81113
Amazon Bedrock:
114+
82115
```json
83116
"experimentalFeatures": {
84117
"deepSearch.enabled": true,
@@ -87,6 +120,7 @@ Amazon Bedrock:
87120
```
88121

89122
GCP Vertex:
123+
90124
```json
91125
"experimentalFeatures": {
92126
"deepSearch.enabled": true,

0 commit comments

Comments
 (0)