Skip to content

Commit

Permalink
Copilot update (#7428)
Browse files Browse the repository at this point in the history
* update copilot intel
  • Loading branch information
iskyOS authored Nov 17, 2024
1 parent 60b405a commit 96eef1d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 49 deletions.
41 changes: 11 additions & 30 deletions src/components/Compare/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,8 @@ export const copilotVsCody: CompareDataType = {
competitor: true,
}),
createAttribute({
feature: 'Prompts',
competitor: true,
competitor_details: ['Commands'],
}),
createAttribute({
feature: 'Custom prompts',
}),
createAttribute({
feature: 'Prompt sharing for teams',
feature: 'Custom and shareable prompts',
competitor: false,
}),
createAttribute({
feature: 'Inline edits',
Expand All @@ -242,21 +235,17 @@ export const copilotVsCody: CompareDataType = {
}),
createAttribute({
feature: 'Eclipse',
cody: false,
cody_details: ['Coming soon'],
cody: true,
cody_details: ['Experimental'],
competitor: false,
}),
createAttribute({
feature: 'Web browser',
competitor: true,
}),
createAttribute({
feature: 'Mobile app',
cody: false,
competitor: true,
}),
createAttribute({
feature: 'CLI',
cody_details: ['Experimental'],
competitor: true,
}),
createAttribute({
Expand All @@ -265,11 +254,6 @@ export const copilotVsCody: CompareDataType = {
cody_details: ['Experimental'],
competitor: false,
}),
createAttribute({
feature: 'Other',
cody: false,
competitor: false,
}),
],
},
{
Expand Down Expand Up @@ -304,23 +288,20 @@ export const copilotVsCody: CompareDataType = {
competitor: true,
}),
createAttribute({
feature: 'Remote code context from your entire codebase',
cody_details: ['All code from any code host'],
feature: 'Multi-repository context',
competitor: false,
}),
createAttribute({
feature: 'Support for remote context from GitLab and Bitbucket repositories',
competitor: false,
competitor_details: ['Only GitHub code on Enterprise Cloud plans is supported'],
competitor_details: ['Remote context is limited to single repositories on GitHub Enterprise Cloud'],
}),
createAttribute({
feature: 'Non-code context',
cody_details: ['via OpenCtx'],
competitor: true,
competitor_details: ['Limited to supported Copilot extensions'],
}),
createAttribute({
feature: 'Fine-tuned LLM',
cody: false,
competitor: false,
competitor_details: 'Coming soon, autocomplete only',
}),
],
},
{
Expand Down
36 changes: 20 additions & 16 deletions src/pages/compare/copilot-vs-cody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,33 @@ const CompareCopilotPage: FunctionComponent = () => (
competitorIcon="/assets/compare/github-copilot.svg"
>
<p>
Copilot is an AI code assistant that offers autocomplete, chat, and commands. It has strong
autocomplete performance using the OpenAI Codex model and offers in-IDE and mobile chat with GPT-4o.
It also offers deep integration with the GitHub platform with Copilot Enterprise (for teams using
GitHub Enterprise Cloud).
Sourcegraph Cody and GitHub Copilot are AI code assistants optimized for different enterprise needs.
Cody excels in three key scenarios: (1) enterprises working with large, distributed codebases across
multiple code hosts, (2) organizations requiring precise, context-aware code generation and
responses, and (3) teams needing flexibility in their AI infrastructure.
</p>

<p>
Unfortunately, Copilot is limited in how it uses code context. Copilot Enterprise can use code
context from remote repositories, but it is limited to using code hosted in GitHub, specifically
GitHub Enterprise Cloud (as Copilot Enterprise is not available for self-hosted GitHub). While
Copilot offers the choice between multiple chat models, users are limited to a few models provided
by GitHub directly. Enterprises can't host their own models, bring their own model keys, or connect
to cloud providers like Amazon Bedrock and Azure OpenAI for a more private connection.
Cody's key advantage is its ability to understand and utilize context from complete codebases,
regardless of where code is hosted. This context enables Cody to generate higher-quality code and
provide more accurate responses via chat and the Prompt Library (which allows teams to create
customizable, shareable prompts to automate their work). Additionally, Cody offers unmatched
flexibility in AI infrastructure - organizations can self-host models, use their own model keys, or
establish secure connections to LLMs through cloud providers like Amazon Bedrock and Azure OpenAI.
</p>

<p>
GitHub Copilot is well-suited for organizations seeking basic autocomplete and chat functionality
for small codebases hosted exclusively on GitHub Enterprise Cloud. While it integrates well with
GitHub's ecosystem, its context is limited to single repositories and GitHub-hosted code, and
organizations cannot control their model infrastructure.
</p>

<p>
<strong className="inline-block rounded-sm bg-blue-100 px-2 py-1 text-blue-500">TL;DR:</strong>{' '}
Copilot is a good choice for enterprises already using GitHub Enterprise Cloud and looking for a
solution deeply embedded in the GitHub ecosystem. However, Cody is the better option for enterprises
that want their AI solution to utilize context from a complete codebase spanning multiple code hosts
or for enterprises that want to connect to self-hosted code hosts. Cody is also a better option for
model flexibility: it allows teams to self-host models, bring their own model keys, or securely
connect to LLMs via cloud provider services such as Amazon Bedrock.
Choose Cody for comprehensive codebase understanding across multiple hosts, higher-quality code
generation through better context, and flexible model hosting. Choose Copilot for basic code
autocomplete and chat for small codebases hosted in GitHub Enterprise Cloud.
</p>
</CompareHero>
}
Expand Down
7 changes: 4 additions & 3 deletions src/pages/compare/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ const ComparePage: FunctionComponent = () => (
<div className="col-span mr-10 pb-5 pt-10">
<h2 className="mb-3 text-3xl">Cody vs GitHub Copilot</h2>
<p className="mb-5 text-gray-500">
Copilot is an AI code assistant that offers autocomplete, chat, and commands, with strong
autocomplete performance using the OpenAI Codex model. However, codebase awareness for chat is
limited to code that lives in GitHub.
GitHub Copilot is an AI code assistant that provides basic code assistance (autocomplete and chat)
for small codebases. It is limited by single-repository context and can only access code hosted on
GitHub Enterprise Code, so it is best for small codebases where users don't require deep context and
understanding.
</p>
<Link className="btn btn-primary text-lg" href="/compare/copilot-vs-cody">
See full comparison
Expand Down

0 comments on commit 96eef1d

Please sign in to comment.