Skip to content

Remove mentions of Search Mode in Cody #1208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 0 additions & 70 deletions docs/cody/capabilities/chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<p className="subtitle">Chat with the AI assistant in your code editor or via the Sourcegraph web app to get intelligent suggestions, code autocompletions, and contextually aware answers.</p>

<Tabs>
<Tab title="Free/Pro">
You can **chat** with Cody to ask questions about your code, generate code, and edit code. By default, Cody has the context of your open file and entire repository, and you can use `@` to add context for specific files, symbols, remote repositories, or other non-code artifacts.

You can do it from the **chat** panel of the supported editor extensions ([VS Code](/cody/clients/install-vscode), [JetBrains](/cody/clients/install-jetbrains), [Visual Studio](/cody/clients/install-visual-studio)) or in the [web](/cody/clients/cody-with-sourcegraph) app.
Expand Down Expand Up @@ -103,71 +101,3 @@ If Cody's answer isn't helpful, you can try asking again with a different contex
- **Public knowledge only**: Cody will not use your own code files as context; it’ll only use knowledge trained into the base model.
- **Current file only**: Re-run the prompt again using the current file as context.
- **Add context**: Provides @-mention context options to improve the response by explicitly including files, symbols, remote repositories, or even web pages (by URL).
</Tab>
<Tab title="Enterprise Starter/Enterprise">

The enhanced chat experience input can be accessed from the chat panel of the supported editor extensions (VS Code and JetBrains) and the web app. It combines light code search, AI-powered chat, and agentic capabilities into a unified developer interface. It's designed to accelerate the entire developer workflow by providing a more intuitive and powerful way to interact with code.

## Prerequisites

To use Cody's chat, you'll need the following:

- [Sourcegraph Enterprise Starter](https://sourcegraph.com/pricing) or [Enterprise account](https://sourcegraph.com/pricing)
- A supported editor extension [VS Code](https://marketplace.visualstudio.com/items?itemName=sourcegraph.cody-ai), [JetBrains](https://plugins.jetbrains.com/plugin/9682-cody-ai-coding-assistant-with-autocomplete--chat) installed or use via Web app

## Key features

The enhanced chat experience includes everything in the Free plan, plus the following:

## Smart search integration

The smart search integration enhances Sourcegraph's chat experience by providing lightweight code search capabilities directly within the chat interface. This feature simplifies developer workflows by offering quick access to code search without leaving the chat environment.

The integration delivers personalized search results ranked by your contribution history, with frequently accessed repositories appearing higher in results. Users can view code snippets with relevant context and open files directly in their editor.

Search results automatically become available as context for follow-up queries, with flexible controls for selecting which results to include. While optimized for keyword-style queries and searching across a few repositories, this integration complements rather than replaces the full [Code Search](/code-search) product, which remains the recommended tool for comprehensive enterprise-wide code search.

## Context-aware responses

Search results generated through smart search integration can be automatically used as context for follow-up queries. Here's what happens with each scenario:

### Search responses

* Search results can be used directly as context for follow-up queries
* Users can select which search results to include as context using checkboxes
* By default, all search results are added as context
* A context chip shows the number of search results being used (e.g., "10 code search results")
* Users can remove the context chip if they don't want to use it for follow-ups

### Chat responses

<Callout type="info">Executing terminal commands for additional context is an experimental feature.</Callout>

* Performs background searches for context
* Retrieves full context from files, symbols, remote repos, and web pages
* Can execute terminal commands (with permission) for additional context
* Creates personal notes usable across chat sessions
* Pulls in [OpenCtx](/cody/capabilities/openctx) providers for additional context

## How does chat work?

The following is a general walkthrough of the chat experience:

1. The user enters a query in the chat interface
2. By default a user gets a chat response for the query
3. To get integrated search results, toggle to **Run as search** from the drop-down selector or alternatively use `Cmd+Opt+Enter` (macOS)
4. For search:
- Displays ranked results with code snippets
- Shows personalized repository ordering
- Provides checkboxes to select context for follow-ups
5. For chat:
- Delivers AI-powered responses
- Can incorporate previous search results as context
6. Users can:
- Switch between search and chat modes
- Click on results to open files in their editor
- Ask follow-up questions using selected context
- Use `@` to add context for specific files, symbols, remote repositories, or other non-code artifacts

</Tab>
</Tabs>
94 changes: 0 additions & 94 deletions docs/cody/capabilities/query-types.mdx

This file was deleted.

7 changes: 7 additions & 0 deletions src/data/redirects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6811,6 +6811,13 @@ const redirectsData = [
permanent: true
},

//Rmv Query types permanentaly:https://sourcegraph.com/docs/cody/capabilities/query-types
{
source: "/cody/capabilities/query-types",
destination: "/cody/capabilities/chat",
permanent: true
},


];

Expand Down