You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
# Sourcegraph Docs
4
4
5
-
<!-- Working branch for Sourcegraph 6.4 Release -->
5
+
<!-- Working branch for Sourcegraph 6.5 Release -->
6
6
7
7
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.
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.
16
18
17
19
- Service accounts are automatically assigned the "Service Account" system role
18
20
- They appear in the user list with "Service account" type designation
19
21
- By default, service accounts can only access public and unrestricted repositories
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
44
48
-[Managing user roles](/admin/access_control#managing-user-roles)
Service accounts respect repository permissions and access controls. For comprehensive information about repository permissions, see the [Repository permissions](/admin/permissions) documentation.
50
56
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.
Copy file name to clipboardExpand all lines: docs/batch-changes/bulk-operations-on-changesets.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ Below is a list of supported bulk operations for changesets and the conditions w
36
36
|**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 |
37
37
|**Close**| Close the selected changesets on the code hosts |
38
38
|**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. |
39
40
|**Export**| Export selected changesets that you can use for later use |
40
41
|**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) |
41
42
|**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. |
<pclassName="subtitle">Learn how to push code changes to a code host without making a merge request.</p>
4
+
5
+
<Callouttype="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:
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
+
<Callouttype="note">For more information, see [Code host interactions in Batch Changes](/batch-changes/permissions-in-batch-changes#code-host-interactions-in-batch-changes).</Callout>
Copy file name to clipboardExpand all lines: docs/batch-changes/quickstart.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,9 +100,10 @@ The batch change's **changesets** still need to be published, which means they e
100
100
101
101
## Publish a changeset
102
102
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.
104
104
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.
Copy file name to clipboardExpand all lines: docs/code-search/types/deep-search.mdx
+48-14Lines changed: 48 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,44 +1,75 @@
1
1
# Deep Search
2
2
3
-
<pclassName="subtitle">Learn more about Sourcegraph's agentic Code Search tool Deep Search.</p>
3
+
<pclassName="subtitle">Learn more about Sourcegraph's agentic Code Search tool Deep Search.</p>
4
4
5
-
<Callouttype="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
+
<Callouttype="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>
6
6
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.
8
8
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.
10
10
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.
12
16
13
17
## Best practices
14
18
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.
16
20
- 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.
18
24
19
25
### Examples of prompts
20
26
21
27
- 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.
24
30
- Which tools do we use in our build processes defined in `BUILD.bazel` files?
25
31
- Generate a request flow diagram for `src/backend`. Mark the auth and rate limit points.
26
32
33
+
## Conversation sharing
34
+
35
+
<Callouttype="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
+
27
41
## Enabling Deep Search
28
42
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
30
55
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:
32
57
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
+
```
34
64
35
65
### Configuring Deep Search on Amazon Bedrock or GCP Vertex
36
66
37
-
Include configurationfor 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).
38
68
39
-
Examples for Sonnet 4 configuration inside `modelOverrides`:
69
+
Examples of Sonnet 4 configuration inside `modelOverrides`:
0 commit comments