-
Notifications
You must be signed in to change notification settings - Fork 76
(Agentic Chat) Deep Cody docs #841
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
+79
−1
Merged
Changes from 26 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
b307a9a
Deep Cody docs
MaedahBatool 39b2d87
Merge branch 'main' into deep-cody-docs
MaedahBatool 3b9149e
Add new improvements
MaedahBatool 6ae75d7
improve headings
MaedahBatool 4570eb3
Correct supported versions
MaedahBatool 439d799
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 57a5d7f
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool e61d5f7
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 7600122
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 32c910c
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 0f2f897
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 5dc1f4a
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 2c98214
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 7f53eee
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 42a140b
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 60b0d1e
Callout wording
MaedahBatool 6b74452
Merge branch 'main' into deep-cody-docs
MaedahBatool 9dc8d7a
Add feedback
MaedahBatool 0135a5f
Merge branch 'main' into deep-cody-docs
MaedahBatool 62d00d8
minor edits
MaedahBatool fa44b4f
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 53837ef
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool be876a6
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool e5a97d5
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 17eac9a
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 26a7ba8
Update src/data/navigation.ts
MaedahBatool bd8e1c9
Minor fix
MaedahBatool 8f045ad
Remove border from the Tabs component (#926)
MaedahBatool f2a8164
chore(docs): Add AWS account IDs for AMI publishing (#927)
jdpleiness 7c63506
chore(docs): Note dynamic AWS sizing (#928)
jdpleiness b0ba550
Correcting webhook logging example (#929)
marcleblanc2 2156767
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 7a84cc9
Merge branch 'main' into deep-cody-docs
MaedahBatool 4c73c13
Add Grace review
MaedahBatool 1ef7761
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 4d2d8f3
Update docs/cody/capabilities/agentic-chat.mdx
MaedahBatool 7927cb3
Merge branch 'sg-next-jan1-2025' into deep-cody-docs
MaedahBatool File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | ||
|
|
||
|  | ||
|
|
||
| ### 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: | ||
MaedahBatool marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - `agentic-chat-experimental` to get access to the feature | ||
| - `agentic-chat-cli-tool-experimental` to allow [terminal access](#terminal-commands) | ||
MaedahBatool marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ## 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 | ||
MaedahBatool marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - **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. | ||
MaedahBatool marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| <Callout type="info">Terminal access is not supported on the Web. It currently only works with VS Code and JetBrains editor extensions.</Callout> | ||
MaedahBatool marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## 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: | ||
|
|
||
MaedahBatool marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - **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)). | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.