Skip to content
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b307a9a
Deep Cody docs
MaedahBatool Dec 10, 2024
39b2d87
Merge branch 'main' into deep-cody-docs
MaedahBatool Jan 14, 2025
3b9149e
Add new improvements
MaedahBatool Jan 14, 2025
6ae75d7
improve headings
MaedahBatool Jan 14, 2025
4570eb3
Correct supported versions
MaedahBatool Jan 14, 2025
439d799
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 15, 2025
57a5d7f
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 15, 2025
e61d5f7
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 15, 2025
7600122
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 15, 2025
32c910c
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 15, 2025
0f2f897
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 15, 2025
5dc1f4a
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 15, 2025
2c98214
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 15, 2025
7f53eee
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 15, 2025
42a140b
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 15, 2025
60b0d1e
Callout wording
MaedahBatool Jan 15, 2025
6b74452
Merge branch 'main' into deep-cody-docs
MaedahBatool Jan 23, 2025
9dc8d7a
Add feedback
MaedahBatool Jan 23, 2025
0135a5f
Merge branch 'main' into deep-cody-docs
MaedahBatool Jan 27, 2025
62d00d8
minor edits
MaedahBatool Jan 27, 2025
fa44b4f
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 27, 2025
53837ef
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 27, 2025
be876a6
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 27, 2025
e5a97d5
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 27, 2025
17eac9a
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 27, 2025
26a7ba8
Update src/data/navigation.ts
MaedahBatool Jan 27, 2025
bd8e1c9
Minor fix
MaedahBatool Jan 27, 2025
8f045ad
Remove border from the Tabs component (#926)
MaedahBatool Jan 27, 2025
f2a8164
chore(docs): Add AWS account IDs for AMI publishing (#927)
jdpleiness Jan 27, 2025
7c63506
chore(docs): Note dynamic AWS sizing (#928)
jdpleiness Jan 27, 2025
b0ba550
Correcting webhook logging example (#929)
marcleblanc2 Jan 28, 2025
2156767
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 28, 2025
7a84cc9
Merge branch 'main' into deep-cody-docs
MaedahBatool Jan 28, 2025
4c73c13
Add Grace review
MaedahBatool Jan 28, 2025
1ef7761
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 29, 2025
4d2d8f3
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool Jan 29, 2025
7927cb3
Merge branch 'sg-next-jan1-2025' into deep-cody-docs
MaedahBatool Jan 29, 2025
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
79 changes: 79 additions & 0 deletions docs/cody/capabilities/agentic-chat.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
Agentic chat

<p className="subtitle"> Learn about the agentic chat experience, an exclusive chat-based AI agent with enhanced capabilities.</p>

<Callout type="info">Agentic chat is currently in the Experimental stage for Cody Pro and Enterprise and is supported on VS Code, JetBrains, Visual Studio editor extensions, and Web. Usage may be limited at this stage.</Callout>

Cody's agentic chat experience is an AI agent that can evaluate context and fetch any additional context (OpenCtx, terminal, etc.) by providing enhanced, context-aware chat capabilities. It extends Cody's functionality by proactively understanding your coding environment and gathering relevant information based on your requests before responding. These features help you get noticeably higher-quality responses.

This agentic chat experience aims to reduce the learning curve associated with traditional coding assistants by minimizing users' need to provide context manually. It achieves this through agentic context retrieval, where the AI autonomously gathers and analyzes context before generating a response.

## Capabilities of agentic chat

The agentic chat experience leverages several key capabilities, including:

- **Proactive context gathering**: Automatically gathers relevant context from your codebase, project structure, and current task
- **Agentic context reflection**: Review the gathered context to ensure it is comprehensive and relevant to your query
- **Iterative context improvement**: Performs multiple review loops to refine the context and ensure a thorough understanding
- **Enhanced response accuracy**: Leverages comprehensive context to provide more accurate and relevant responses, reducing the risk of hallucinations

## Enable agentic chat

Pro users can find the agentic chat option in the LLM selector drop-down. Enterprise customers must opt-in to access this agentic chat feature.

![agentic chat interface](https://storage.googleapis.com/sourcegraph-assets/Docs/agenti%20-chat.jpg)

### Getting agentic chat access for Enterprise customers

Currently, agentic chat uses Claude 3.5 Haiku for the reflection steps and Claude 3.5 Sonnet for the final response to provide a good balance between quality and latency. Your enterprise instance must have access to both Claude 3.5 Sonnet and Claude 3.5 Haiku to use agentic chat.

Additionally, enterprise customers need to upgrade their supported client (VS Code, JetBrains, and Visual Studio) to the latest version of the plugin by enabling the following feature flags on their Sourcegraph Instance:

- `agentic-chat-experimental` to get access to the feature
- `agentic-chat-cli-tool-experimental` to allow [terminal access](#terminal-commands)

## What can agentic chat do?

Agentic chat can help you with the following:

### Tool Usage

It has access to a suite of tools for retrieving relevant context. These tools include:

- **Code Search**: Performs code searches
- **Codebase File**: Retrieves the full content from a file in your codebase
- **Terminal**: Executes shell commands in your terminal
- **Chat Memory**: Allows the agent to create personal notes that can be used across chat sessions
- **Web Browser*: Searches the web for live context
- **OpenCtx**: Any OpenCtx providers could be used by the agent

It integrates seamlessly with external services, such as web content retrieval and issue tracking systems, using OpenCtx providers. To learn more, [read the OpenCtx docs](/cody/capabilities/openctx).

Memory allows the agentic chat to learn and remember your preferences, enabling a more personalized experience. You can ask it to **remember** specific details for future interactions.

<Callout type="info">Terminal access is not supported on the Web. It currently only works with VS Code and JetBrains editor extensions.</Callout>

## Terminal access

Agentic chat can use the CLI Tool to request the execution of shell commands to gather context from your terminal. Its ability to execute terminal commands enhances its context-gathering capabilities. However, it’s essential to understand that any information accessible via your terminal could potentially be shared with the LLM. It's recommended not to request information that you don't want to share. Here's what you should consider:

- **Requires user consent**: Agentic chat will pause and ask for permission each time before executing any shell command.
- **Trusted workspaces only**: Commands can only be executed within trusted workspaces with a valid shell
- **Potential data sharing**: Any terminal-accessible information may be shared with the LLM

Commands are generated by the agent/LLM based on your request. Avoid asking it to execute destructive commands.

## Use cases

Agentic chat can be helpful to assist you with a wide range of tasks, including:

- **Improved response quality**: Helps you get better and more accurate responses than other LLMs, making up for the additional processing time for context gathering a non-issue
- **Error resolution**: It can automatically identify error sources and suggest fixes by analyzing error logs
- **Better unit tests**: Automatically includes imports and other missing contexts to generate better unit tests

## Known limitations

### Enterprise deployments

All customers are required to have Claude 3.5 Sonnet and Claude 3.5 Haiku enabled on their Sourcegraph instance (this requires Sourcegraph v5.9 and new [model configuration](/cody/enterprise/model-configuration)).

3 changes: 2 additions & 1 deletion src/data/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export const navigation: NavigationItem[] = [
subsections: [
{ title: "Chat", href: "/cody/capabilities/chat", },
{ title: "Autocomplete", href: "/cody/capabilities/autocomplete", },
{ title: "Prompts", href: "/cody/capabilities/prompts", },
{ title: "Prompts", href: "/cody/capabilities/prompts", },
{ title: "Agentic chat", href: "/cody/capabilities/agentic-chat", },
{ title: "OpenCtx", href: "/cody/capabilities/openctx", },
{ title: "Debug Code", href: "/cody/capabilities/debug-code", },
{ title: "Context Filters", href: "/cody/capabilities/ignore-context", },
Expand Down
Loading