8 ms·
Cody – The AI that knows your entire codebase
- siva7 3y agoCan’t be worse than Github Copilot so i’m giving it a try.
- jdorfman 3y agoWe look forward to your feedback :)
- Aeolun 3y agoDo you honestly think copilot is bad? I have really great experience with it.
- isoprophlex 3y agoYeah I'm using gh copilot all the time, it's very effective for me. Saves me a ton of time.
- redhale 3y agoI'm just curious -- what specific issues have you had with Copilot? I use it constantly (probably accepting a suggestion for every few seconds of typing), to the point where I'm starting to just not think about it anymore like I previously didn't think about normal autocomplete. It has written hundreds of perfect unit tests for me (perfect as in I have read the code and it matches virtually exactly what I would have written down to comments and variable names). That's so much mundane low-value typing that I just didn't have to do. Write the name of the test, hit tab, review, and move to the next. It's certainly not perfect, and you must ALWAYS review what it suggests rather than blindly accepting, but it's incredibly valuable imo. For reference, I use Copilot in both Rider and VS Code.
- KomoD 3y ago> what specific issues have you had with Copilot? If I put a single swear word in my code it refuses to complete anymore
- ghiculescu 3y agoAs a Sublime Text user I really wish more of these tools worked outside of VS Code.
- teaearlgraycold 3y agoCould always switch!
- ghiculescu 3y agoNever.
- jdorfman 3y agoHi we are tracking Sublime requests here: https://github.com/sourcegraph/cody/discussions/10 https://github.com/sourcegraph/cody/discussions/10
- deleted 3y ago[deleted]
- Klaster_1 3y agoLast week, I forced myself to move from Sublime Text, which I used professionally for a decade, to VSCode. Underwhelming community output bogged down by fundamental limitations, such as very limited extension UI API, ultimately results in a second rate experience compared to VSCode, where all the new cool experimental extensions appear earlier, if at all. You lose productivity because the community size didn't reach critical mass necessary to produce as much good extensions as VSCode. And I can finally perform search and replace without manually saving edits in dozens of files.
- fatboy 3y agoMaybe you already know this, but when I used to use sublime I'd save those dozens of files with cmd/ctrl-alt-s (save all open files). I think this is a universal-ish command for well-behaved applications on both windows and mac. I miss sublime for how slick the ui feels, but I abandoned for the same reasons as you.
- scottapotamas 3y agoMy first impulse with this new wave of tooling is to poke at the privacy policy, especially given there's only the free trial version available... https://about.sourcegraph.com/terms/cody-notice https://about.sourcegraph.com/terms/cody-notice seems generally reasonable though, so that's appreciated. Wouldn't mind a more transparency/confirmation on who the partner LLM entities are (Anthropic?), and some verbiage on the downstream impacts of their terms. Should be interesting to give it a test-run with some embedded projects.
- Operyl 3y agoPresumably `Anthropic and OpenAI` according to various documentation.
- jdorfman 3y agoWe use OpenAI for their embeddings API. We should have this in our docs, but for now you can read this whitepaper if you are interested: https://about.sourcegraph.com/whitepaper/cody-context-architecture.pdf#page=10 https://about.sourcegraph.com/whitepaper/cody-context-archit...
- JieJie 3y agoAccording to the FAQ, "Cody has one third-party dependency, which is Anthropic's Claude API. In the config, this can be replaced with OpenAI API." https://docs.sourcegraph.com/cody/faq https://docs.sourcegraph.com/cody/faq
- cloudking 3y agoLooks like a nicely implemented product, unfortunately my experience with Claude is that it's no where near GPT-4 in terms of coding capabilities.
- ForHackernews 3y agoDoes "Open"AI really have a near-monopoly on powerful AI tools these days? It seems like all of these various AI projects are just a wrapper / frontend that calls OpenAI APIs.
- deleted 3y ago[deleted]
- caesil 3y agoIs this similar to cursor.sh, or does it have advantages over that product? It's hard to tell if "knows your entire codebase" refers to small-context-window retrieval-augmented generation or something like loading all your code into Claude 100k. Also, an ask: a voice-to-text input would be earthshatteringly cool. I am waiting with bated breath for the coming moment where it becomes possible to code for extended periods by rubberducking alone.
- deepak_2431 3y agoIt does have your entire codebase context using the Claude 100k context model. You can have a look at this white paper for more info about how Cody uses the right context: https://about.sourcegraph.com/whitepaper/cody-context-architecture.pdf https://about.sourcegraph.com/whitepaper/cody-context-archit...
- dewey-decibel 3y agoI use Talon with Cursorless for developing by voice. Obviously theres a learning curve but its actually fun and efficient.
- anotherpaulg 3y agoMy open source ai coding tool has voice-to-code support. https://aider.chat/docs/voice.html https://aider.chat/docs/voice.html Plus it also "knows your entire codebase" too: https://aider.chat/docs/ctags.html https://aider.chat/docs/ctags.html
- leke 3y agoFedora 38 Xfce. ./cody_2023.7.11+1384.7d20a90ce7_amd64.AppImage cody: error while loading shared libraries: libOpenGL.so.0: cannot open shared object file: No such file or directory Solution: sudo dnf install libglvnd-opengl
- simse 3y agoI would love to try this out, but I would like to see a headless version of the desktop app as I do all my programming over SSH.
- sqs 3y agoThere's an (experimental) Cody CLI: https://github.com/sourcegraph/cody/tree/main/cli https://github.com/sourcegraph/cody/tree/main/cli. If you try it and like it, let us know over on that repo! (Or if by headless you just mean "editor extension only", just install the Cody VS Code extension and sign into Sourcegraph.com, and it'll work without the desktop app. The response quality will be slightly lower than if you have the desktop app, but we're working on that and it should be at parity soon.)
- happytiger 3y agoThis is starting to become a competitive field and I have no idea how to compare these tools really. Seems like most of them are some kind of gpt variant in skins. I’m looking forward to being able to form opinions on AI models at some point, but I’m not there yet. I can only try them and see how well they work, but as yet have no objective basis of comparison. I’m sure folks more entrenched in the research are better equipped…
- ReDeiPirati 3y agoout of curiosity did they have the rights to use GOT characters on this demo commercial?
- oasisaimlessly 3y agoNo need.
- pindab0ter 3y agoCan you elaborate more than just those two words?
- nonima 3y agoTried using it yesterday. VIM mode stopped working in VS Code and then my cursor started moving around randomly and wouldn't stop. Uninstalled instantly.
- sqs 3y agoI’m sorry about that. Our code (https://github.com/sourcegraph/cody https://github.com/sourcegraph/cody), which is open source (Apache 2), doesn’t do anything to move the cursor, so I have no idea how that would have happened. Would you be willing to try to repro that in an issue or give us some more info so we can look into it?
- wolfeidau 3y agoI have been using Cody in VSCode for a couple of months, and I am getting a ton of value out of it. The key things I love are: 1. It really knows how to summarise a code blocks, this can be helpful to review code in other projects, or provide a refresher to your own, it misses very little! 2. It is very smart when it comes to filling in gaps in log statements, error messages or code comments. 3. Copy and paste is mostly dead, given a small hint it fills in the gaps for common patterns and is way less error-prone, and follows my prevailing style once the project is up and running. 4. Writing tests, this really surprised me but a lot of trivial, and some not so trivial ones are generated by Cody. Things which annoy me when using Cody: 1. Suggests when writing in markdown are not very helpful, most are wordy, and always positive, it is almost impossible to get a negative or even snarky sentence out of it... 2. Inline suggestions are a bit annoying at times, it really doesn't "know your code", or that of your libraries, for common std library calls it is great, but anything more complex or obscure it is mostly wrong. 3. It is somewhat bolted onto VSCode using some creative solutions, with VSCode only allowing more fit for purpose APIs to be used by GitHub Copilot, which is sad. Overall it is doing a lot of the heavy lifting turning my code into English, and either entirely building tests, or fleshing out enough for me to just tweak the code a little so big from me.
- sqs 3y agoGreat to hear you're getting a ton of value out of it! On the other parts you mentioned: Overly positive English prose in Markdown is probably a function of the underlying LLM in use (Claude/GPT-4, plus experimental support for others). I guess the risk is that we overcorrect too far and suddenly the Markdown suggestions are off-putting. If you have any specific examples you'd feel comfortable posting to https://github.com/sourcegraph/cody/discussions/358 https://github.com/sourcegraph/cody/discussions/358, that would be helpful. On inline suggestions (autocomplete), we are under much tighter latency constraints than for chat or commands, so the context used for autocomplete is lighter right now. This is a huge area of effort for us, and we're watching completion acceptance rate really closely. We are making autocomplete use embeddings for context in more cases, and @beyang is adding a fast local context search path as well. On the VS Code extension APIs used, yes, there are some new proposed APIs that are not yet freely available to extensions that will help. For now, the new `Cody: Fixup` command is much smoother UX than the inline comment `+` icon then typing `/fix whatever`—give that a try and let us know if that is better. Thanks!
- anon115 3y agoi dont have a work email and no support on your page --when i install it in vscode, i press the chat to ask it something but on the bottom right it says "sign in" i press it and it doesn't do anything
- tomduncalf 3y agoI tried out the chat interface of this briefly with a project I built with a rather (ahem) convoluted codebase and I was actually pretty impressed. It was able to answer questions about how the code works pretty well. Asking it how to make changes varied in quality of results, but yeah, pretty cool stuff!
- yosito 3y agoI've been trying to use Cody, but the user experience has been so bad that I've mostly given up. There is no clear instruction about how to add/remove repos, or how to get Cody to recognize the current repo you're in. And the UI seems poorly planned, with missing, hidden and inconsistent buttons. I spend more time figuring out how to get Cody to work than I save by using it. I think it has potential, but they seriously need to spend a sprint or two dogfooding and thinking about the UI/UX. An AI tool like this shouldn't be so damn hard to use.
- sqs 3y agoSorry for this bad experience. We are working on improving this (code/activity at https://github.com/sourcegraph/cody https://github.com/sourcegraph/cody). In particular, we’re making it so you can do this all from your editor more easily.
- thurn 3y agoI also went to try it out and gave up in frustration. Getting "embeddings" in particular seems critical to having it work well but also extraordinarily hard to try out, I'm not actually sure if you are required to pay sourcegraph money for that feature before you can use it or not.
- sqs 3y agoSorry. You don't need to pay for embeddings. What did not work for you? If the desktop app is where you ran into trouble, you can start with the editor extension (see https://github.com/sourcegraph/cody#readme https://github.com/sourcegraph/cody#readme) and just sign in via Sourcegraph.com instead of your local desktop app.
- marcopicentini 3y agoDoes Cody call GPT-4 API?
- deleted 3y ago[deleted]
- theusus 3y agoI used it for something and looks like without their desktop app it's meh.
- sqs 3y agoWe're working on rolling that all into the editor extension itself, so if you just have the Cody editor extension now, you'll see it getting better context. Can follow along at https://github.com/sourcegraph/cody https://github.com/sourcegraph/cody.
- theusus 3y agoWill that allow me to ask about certain files? and imports?
- sqs 3y agoYes, it will. And if you have specific things in mind you want to ask it (or kinds of code you want it to generate for you), we always love to hear that kind of stuff (in a discussion topic at https://github.com/sourcegraph/cody https://github.com/sourcegraph/cody or on our Discord).
- Spiwux 3y agoMarketing hint: Given that you'll be competing with Copilot I'd love to see examples where Copilot fails and Cody does better. Also there are several typos on the linked page, you might want to read it over a few more times
- deleted 3y ago[deleted]
- killingtime74 3y agoI don't work there but immediately a big difference is Sourcegraph can be self hosted, Copilot cannot.
- patrickhogan1 3y agoThe prominence of such information cannot be understated. While Copilot is arguably the most recognized AI Code Assistant, Cody may offer superior features, such as enhanced privacy. However, this advantage isn't evident due to the lack of direct comparisons on their website. Even a search for "copilot vs cody" yields no dedicated page from Cody addressing the differences.
- ilaksh 3y agohttps://github.com/sourcegraph/zoekt https://github.com/sourcegraph/zoekt seems to be doing a fair amount of heavy lifting for Cody.
- kruxigt 3y ago[dead]
- r_thambapillai 3y agoIs it possible to use our own LLM account if we have anthropic or open AI accounts?
- sqs 3y agoIt's something we'd like to add (and you can follow along at https://github.com/sourcegraph/cody https://github.com/sourcegraph/cody), but in beta we're still focused on making it really lovable on the most popular config path rather than exploding the number of possible ways people could configure Cody. We do support "bring your own LLM account" for customers using Cody for all their devs, but that hasn't yet made its way to client-side config in the editor extension.
- r_thambapillai 3y agoGot it, thanks! For context, Im at Credal.ai (an LLM governance platform), and we have a shared customer who I'm pretty sure does fall into that description with you (use Cody for all their devs), and keeps asking us about whether they can use Cody in conjunction with Credal.ai (bring your own LLM account is probably all that would be needed to support this). We'd also be open to contributing this for what its worth!
- sqs 3y agoAwesome. Check out the existing docs for "bring your own LLM account" on the server side at https://docs.sourcegraph.com/cody/overview/enable-cody-enterprise#using-a-third-party-llm-provider-directly https://docs.sourcegraph.com/cody/overview/enable-cody-enter..., and let us know if that suffices or if more is needed. You can also email me (email in profile) if it would help to mention customer names in private.
- breadwinner 3y agoSo it uploads my code to their server? That's a deal breaker for me.
- mdale 3y agoIf would be very helpful if we had articles comparing this and other code assist solutions (mainly copilot) When marketing Cody ideally it would have a comparison and statements per the ease of switching from copilot. Happy copilot customers are your most likely adopters.
- JZL003 3y agoI use more scientific computing and I've found it amazingly, surprisingly good. Academic programming has some quirks where they might use a single character variable name, passed along to multiple functions. So if I'm 3 functions deep, I have a hard time tracking it - it gets it very often. Even some versions of "I want to do this, how would I modify the code to make it happen" works pretty good
- adocomplete 3y agoThat is so awesome to hear!
- matteoraso 3y agoThis freaks me out. Even if it's not that good now, it looks like it's only going to get better and essentially either force programmers out of a job or force programmers to adopt non-free software to do their jobs. Grim.
- adocomplete 3y agoI personally don't see it that way. I see it as a tool to help us be more productive as programmers. So much of my day to day when writing code is getting context, looking up best practices, and then writing code. With Cody I can get up to speed much faster and be more productive as a developer, giving me more time to do the things I want to do.
- gloosx 3y agoThink about it this way – it will get better for turning natural language into code, but natural language will never get better than code for the job of theory-building behind a full-fledged application. Just because it's higher-level semantics are not as good for the business logic as code itself. Natural language is genetically bound with emotion and sentiment. It is inconsistent in the wildest ways and the words can have myriads of meanings. The best code craftsmen "think" code straight away, without the natural language shenanigans around it.
- thecleaner 3y agoHow does it compare to CoPilot and Code Whisperer ? Given that these two services are distributed by software giants that also sell infrastructure, why would someone pick Cody ?
- dgellow 3y agoHow outdated are the dataset used to train Cody? Something I find frustrating with ChatGPT4 is that it is still blocked in 2021, making it a pain to use with more recent libraries or frameworks. I’ve been doing some unreal engine development this year, and while ChatGPT knows UE4 really well it often provides me with outdated APIs or concepts when trying to learn UE5 C++. If Cody can directly learn from UE5 sources, that would be awesome.
- htrp 3y agoThe dataset used to "train" is from Antrhopic's Claude LLM (so vaguely up to date as of year-end 2022) The premise of cody is the ability to pass entire repos in via embeddings and only highlight the relevant functions in various code snippets to pass into the LLM prompt.
- JuanPosadas 3y agoI did 2 successful completions in VSCodium, then I checked and the Cody app said I used 17! I disabled autocompletions. Is there a way to manually trigger autocompletion when I'm ready instead of what I'm assuming is rapid-firing autocompletion requests while I'm typing?
- sqs 3y agoIf you're worried about hitting your rate limit right now, don't worry. We are lenient; you can join our Discord and ask for a higher one if needed. Right now, unfortunately, you can disable autocomplete entirely in the Cody menu in the status bar, but you can't make it manual-trigger-only. That's a great idea that we should implement.
- yewenjie 3y agoAny plans for an Emacs package?
- sqs 3y agoA couple WIP ones: https://github.com/keegancsmith/emacs-cody https://github.com/keegancsmith/emacs-cody and https://github.com/j-shilling/lsp-cody https://github.com/j-shilling/lsp-cody. Our head of eng (Steve Yegge) is going to start hacking on one this week, I hear. :)
- jounus 3y agoI would use it if the LLM they used were better. It keeps inventing files that don't exist. If I could just provide my GPT-4 API key so it can use GPT-4 I'd be happy.
- PriNova 3y agoThey use Claude 2 as AI backend with a 100K context window. In my experience Claude is better at programming than GPT-4 because it has a much younger cut-off date and because of the context window to process knowledge. Halluzination happens with all LLM's.
- phillipcarter 3y agoHighly recommending filing issues on their repo if you have anything reproducible. I've had several bugs I filed get fixed this way.
- sqs 3y agoAwesome. The repository is at https://github.com/sourcegraph/cody https://github.com/sourcegraph/cody for anyone who hasn't seen it yet.
- KomoD 3y ago> Free forever for individual devs on public and private code, with a generous rate limit. What's the catch?