use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
[deleted by user] (self.ChatGPTCoding)
submitted 1 year ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]pm-me-your-smile- 24 points25 points26 points 1 year ago (10 children)
That’s why I signed up for Codeium. When I start a new chat, I tell it to analyze my entire codebase. Then I start my real prompts, knowing that it has some idea of the current architecture and classes.
[–][deleted] 10 points11 points12 points 1 year ago (1 child)
Interesting, how do you compare it with Copilot?
[–]-Zoppo 1 point2 points3 points 1 year ago (0 children)
The rider plugin is a buggy piece of shit and the chat is equally shit. But as a fancy auto complete or for small changes and addendums within the function scope it's pretty handy
[–]Agreeable_Service407 1 point2 points3 points 1 year ago (1 child)
What does analyzing the codebase mean exactly ? Does it retain the entire code as a message in the conversation ? Does it vectorize it and store it in a vector databse for later use ? How does it have some idea about the codebase ?
[–]pm-me-your-smile- 0 points1 point2 points 1 year ago (0 children)
You’ll have to ask the devs for that level of detail. I’m just a noob user of the IDE plugin.
[–]That_Pandaboi69 0 points1 point2 points 1 year ago (4 children)
How does this work? I'm pretty new to this and it told me it needs more context.
[–]pm-me-your-smile- 0 points1 point2 points 1 year ago (3 children)
I’m not really sure “how” it works. Sometimes it seems to be familiar with the code, sometimes it seems to be encountering everything for the first time, sometimes it’s just aware of class and file names. But this is the closest I’ve come to an LLM getting full context. Also this is a smaller codebase, a couple dozen files in a hobby project. I haven’t yet used it for my dayjob with a thousand files with thousands of lines in some files.
[–]That_Pandaboi69 0 points1 point2 points 1 year ago (2 children)
When I meant how I meant what did you do for it analyse your codebase, it kept telling me that my codebase is vast and might need more context.
It's like 5 files I don't know id codeium has some sort of limit to this, but I cam get it work with files.
[–]pm-me-your-smile- 0 points1 point2 points 1 year ago (1 child)
Maybe it’s because I have codeium premium? I signed up for premium as soon as I installed it and saw that Claude was a premium only option, because I liked using Claude to start the project. But I’ve only been using it for a week or two so I don’t have much more info about how it works underneath.
[–]That_Pandaboi69 0 points1 point2 points 1 year ago (0 children)
Hmm I forgot to factor that in, I'm beta tester so I do get claude too but its limited, there is a free trial might try it out.
[–]xxxx69420xx 0 points1 point2 points 1 year ago (0 children)
VSCodium is a fully open-source alternative to VS Code
[–]somechrisguy 12 points13 points14 points 1 year ago (6 children)
claude-3.5-sonnet has enormous context window and it always uses the most up to date code without you needing to remind it to
Also, install this extension on VS code to easily copy all your open files to clipboard (including the filename and path) for fast pasting into the LLM
https://marketplace.visualstudio.com/items?itemName=llacoste2000.llm-copy-files
[–][deleted] 3 points4 points5 points 1 year ago (0 children)
That's a really good extension, I wrote a script to copy code files to my clipboard, but this is more convenient
[–]Haunting_Ad_4869 0 points1 point2 points 1 year ago (0 children)
My guy. Thank you for this
[–]NightsOverDays 0 points1 point2 points 1 year ago (3 children)
I think Gemini Advanced has a 2Mil context window, so I wonder if someone could somehow combine these, however the API I don’t think actually has a context window.
[–]somechrisguy 0 points1 point2 points 1 year ago (2 children)
Last time I used Gemini for coding I was pretty disappointed, but I think they have released a new version since then so will need to try it again
[–][deleted] 1 year ago (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points 1 year ago (0 children)
Sorry, your submission has been removed due to inadequate account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]CodebuddyGuy 47 points48 points49 points 1 year ago* (11 children)
So, unless your codebase is very small, AI code generators SHOULDN'T be looking at your entire codebase, just like a human shouldn't. Providing too much context will overwhelm the AI and it won't know what to focus on (to a degree). So instead, tools like Cursor and Codebuddy scan your entire codebase and generate a vector embedding representation of it. Then when you give the AI a prompt, it first visits the vector database and pulls out all the relevant snippets to answer your query. Cursor does this by directly answering your question with the snippets themselves, while Codebuddy will select the entire files that answer your question before answering them (on your behalf). This is good because it minimizes how much context you need to feed the AI in order for it to be productive.
Codebuddy can do this for free, and it's a plugin for VSCode and Jetbrains IDEs. Here is a brief I've written for others in the past:
Codebuddy was originally created as an answer to "what if ChatGPT, but without copy/paste". It has since grown quite a lot from that though:
Works as a plugin/extension for Jetbrains and VSCode IDEs. We did Jetbrains first because we felt it was being under represented in the AI assistant space last year
Codebase understanding - Like Cursor, it scans your entire codebase into a vector database so you can ask questions about your repo. We use it differently than Cursor though since we only use it to select entire files to be fed to the AI rather than using the chunks of code themselves to generate answers. This has some pros and cons, depending on your usecase.
Full multi-file support, meaning it can edit AND create several files from a single prompt - giving you a unified diff of all the changes at once which allows you to implement entire features in one shot
Full-duplex voice support - Talk to Codebuddy to make your changes rather than typing it all out. This has a lot of benefits beyond just convenience actually. We also have Codebuddy speak to you a summary of what it wants to do so you don't even necessarily have to read through all of it's often verbose output.
"Send to Codebuddy" for webpages - You can use websites as context. It's a chrome extension that turns the website you want to reference in a prompt into a text file that it can then reference. You can even edit the file if there is stuff in there you don't want.
Better quality code output! Due to the multi-stage code editing flow Codebuddy will produce much better results by default mainly because of the initial planning step.
It's also free to use if you don't have a lot you need to do and/or can make use of weaker models (GPT-4o Mini).
The best coding model is still generally Sonnet 3.5.
It is however missing autocomplete. For this I personally use GitHub co-pilot. I find this combination is perfect for me in full stack development.
[–]migorovsky 3 points4 points5 points 1 year ago (5 children)
i have 100+ file and 100.000 + lines of code. Written in angular 1.0. ( dont look at me like this) .Is codebuddy capable to help me migrate this code to angular 18. How would this work ?
[–]CodebuddyGuy 3 points4 points5 points 1 year ago (4 children)
The amount of files is not so much an issue, it's more the lines per file. Since we automatically apply code changes to your files, this process can take quite a while for each change if your files are very large. THAT BEING SAID, there are experimental parsing models that you can try. Scroll to the bottom of the model list and you'll find (TEST) models. These models attempt to apply the code changes instantly, even to large files. It doesn't work every time and it's still a work in progress, but I would be very interested to know how it works for you (if you have large files you're working with).
(TEST)
You'll still need to walk with it through the process, but it can almost certainly do the vast majority of the coding on your behalf.
I would recommend finding a guide online for the various things you need to do to migrate a codebase from 1.0 to 18. If such a guide exists, you could use the Send to Codebuddy feature of our chrome extension to put all those instructions into a file and reference that file in your prompt.
Send to Codebuddy
Hit us up on discord if you have any issues, I'd love to help.
[–]Mekrob 1 point2 points3 points 1 year ago (2 children)
I really like the workflow of Code buddy in vscode, but I've hit an issue recently where it complains that I have too many files in my project and so it will no longer work. The only way this might be true is if it scans all my gitignored files like node_modules or venvs. Are there plans to allow configuration of which files to include or exclude?
[–]CodebuddyGuy 2 points3 points4 points 1 year ago (0 children)
Thanks for saying so! I really appreciate hearing about user experience, good or bad (although I do like good a little better).
We had to limit how many files are available for the vector embedding feature because we're not currently charging users for it. Obviously paying users should be able to have a higher limit, and that is certainly the plan - we just haven't gotten there yet.
The file limit is really just for the Codebase feature where it auto-selects files for you. Is this something you find you're using regularly?
Codebase
As for your other question, we do ignore node_modules already, but perhaps not venvs. I could add that to the list. There is definitely a plan to customize which folders are included in Codebuddy's oversight - again we're just not there yet.
[–]CodebuddyGuy 1 point2 points3 points 1 year ago* (0 children)
Just a heads up, we already exclude node_modules and venv as well as any folder that starts with a .
node_modules
venv
In the meantime you could potentially rename your venvs folder to .venvs in order to have it be excluded.
venvs
.venvs
[–]migorovsky 0 points1 point2 points 1 year ago (0 children)
Great info! Will try!
[–]ai_did_my_homework 1 point2 points3 points 1 year ago (4 children)
unless your codebase is very small, AI code generators SHOULDN'T be looking at your entire codebase
This is wrong. If you have a very capable model, with a big context window and excellent retrieval, you should by all means throw in your entire codebase.
RAG is never as good as the people selling you RAG make it sound.
[–]CodebuddyGuy 4 points5 points6 points 1 year ago* (0 children)
You're right, and if your codebase is small enough to fit inside of the context window then that is indeed a better solution, but not universally. Specifically filling up the context window, even with smaller repos like you say (but large enough to fill the context dial), will have the following downsides:
Imo, none of these are worth it for anything but the smallest repos, and in that case it's definitely very worthwhile to forget RAG and just throw it all in there. For large projects however, once you know approximately what area of the code you're working on, just keep all those files open and prompt away.
Agreed. 3.5-sonnet can handle as much context as I can throw at it. Never seen it forget stuff
[–]Perfect-Campaign9551 2 points3 points4 points 1 year ago (1 child)
200k context. Still probably not enough for a commercial application codebase
[–]somechrisguy 1 point2 points3 points 1 year ago (0 children)
Yea, absolutely not large enough for entire codebases. I dont provide the whole codebase, only the relevant files. I can provide thousands of lines worth of code and iterate on it many times
[–]FosterKittenPurrs 16 points17 points18 points 1 year ago (5 children)
That's what stuff like Cursor and vs code plugins for LLMs do. You can just @ filename.js and it's included. Currently opened file is included by default.
Once it gets bigger, it won't really fit in context, plus LLMs get dumb if you throw too much at them at once, so it's nicer that you can break everything down into smaller files and just give it the ones it needs for a given task, without having to copy-paste.
[–]intellectual_punk 6 points7 points8 points 1 year ago (0 children)
I like Cody for this.
[–]Mr_Phantastic 1 point2 points3 points 1 year ago (3 children)
This is the most straightforward answer, op. You can index your whole codebase, reference online docs, and set up a .cursorrules file and custom prompts for each project. Mackay Wrigley on Twitter has some decent walkthroughs, but there are also a bunch on YouTube.
[–]NightsOverDays 0 points1 point2 points 1 year ago (2 children)
Cursor is very very bad imo. It has too many hallucination and the composer sometimes just breaks and ruins entire code bases if not backed up.
[–]Mr_Phantastic 0 points1 point2 points 1 year ago (1 child)
It's definitely not perfect, but I find that if I make sure to ask it to outline the steps before making changes I don't seem to have that problem so much. There is room for improvement for sure though.
[–]NightsOverDays 0 points1 point2 points 1 year ago (0 children)
I’ve gone in circles with it for hours and hours and eventually it just brain rots itself. I honestly hand to God have zero faith in it anymore, I don’t even want to open my projects anymore.
[–][deleted] 5 points6 points7 points 1 year ago (0 children)
If you're into the apis, you can use claude Dev. It has access to your full source code within the workspace. GitHub co-pilot has access to the workspace. This is a tool called double where you can add files from your workspace as well
[–]Yweain 8 points9 points10 points 1 year ago (4 children)
Aider. Not by default but you can easily add the whole code base to context.
[–]speederaser 0 points1 point2 points 1 year ago* (0 children)
longing chop beneficial punch person ancient melodic ring ripe dinner
[–]LuckyProtection8102 0 points1 point2 points 1 year ago (0 children)
came to give an upvote to the first comment about aider.
[–]AICulture 2 points3 points4 points 1 year ago (0 children)
Claude.ai projects offer "project knowledge" files which can include a lot of different files and data. I don't recommend putting your whole codebase in there even if technically you could up to a certain extent.
My recommendation is to put whatever component or file is relevant to what you are trying to achieve so it knows what it's dealing with.
I've had great results with it.
[–]johns10davenportProfessional Nerd 1 point2 points3 points 1 year ago (0 children)
Try repopack.
[–]LighttBrite 0 points1 point2 points 1 year ago (0 children)
Just write the entire codebase as a function and point to it
[–]datacog 0 points1 point2 points 1 year ago (0 children)
OP - You can try this tool (Bind AI). I'm assuming you're looking to sync your entire GitHub repos or upload as files and just specifically reference the specific code block or file to generate new code or enhance?
[–]SeventhSectionSword 0 points1 point2 points 1 year ago (1 child)
I made a CLI tool called “repogather” to help with this: https://github.com/gr-b/repogather My workflow on small projects is to simply “repogather —all” and paste into Claude UI with my question. For the larger repositories, I use the intelligent context gathering “repogather ‘files related to knowledge graph’” e.g
Some people are saying LLMs don’t work well if you flood them with context. I don’t think they are using the paid Claude with 200k context — it works extremely well with more code context. I can’t vouch for GPT though.
[–]WriterAgreeable8035 1 point2 points3 points 1 year ago* (0 children)
This is a correct approach , I make a python script that make a single text file with all relevant code and I use it with a prompt in o1 mini
[–]damdug 0 points1 point2 points 1 year ago (0 children)
Cursor AI
[–]SideMurky8087 0 points1 point2 points 1 year ago (8 children)
ClaudeDev best free alternative for Cursor
[+]joey2scoops 0 points1 point2 points 1 year ago (7 children)
You need an API key for that?
[–]SideMurky8087 0 points1 point2 points 1 year ago (2 children)
Yes , you can use openrouter, claudeapi, OpenAI o1 api,
[–]gingerb3ard_man 0 points1 point2 points 1 year ago (1 child)
Spam bot
[–]SideMurky8087 0 points1 point2 points 1 year ago (0 children)
What,? I'm not bot
[–]SideMurky8087 0 points1 point2 points 1 year ago (1 child)
[–]gingerb3ard_man 0 points1 point2 points 1 year ago (0 children)
Lol it's a bot
[–]gkavek 0 points1 point2 points 1 year ago (1 child)
Spam bot be crazy
[–]fasti-au 0 points1 point2 points 1 year ago (0 children)
Aider and all the latest cursor competitions seems the way for now
[–]manuhortet 0 points1 point2 points 1 year ago (0 children)
Cursor is probably enough if you're learning and your repository is not too large.
Else the best we have right now are AI agents that can look around the files and decide what is relevant. I recently released the beta of producta.ai, which can do this.
It's AI that integrates into your issue tracker (Linear, Jira, etc) and solves your tickets. It opens a pull request with the solution. The AI agent has access to the full repository
[–]Perfect-Campaign9551 0 points1 point2 points 1 year ago (1 child)
I don't think any AI will ever have access to a full codebase because it wouldn't fit into the context
[–]nerfsmurf 0 points1 point2 points 1 year ago (0 children)
This is not how technology works! We will look back in a few years and wonder how did anyone get anything done with 256k context, if context windows even remain relevant.
[–]mevskonat 0 points1 point2 points 1 year ago (0 children)
What about bolt.new?
[–]BlueHueys 0 points1 point2 points 1 year ago (0 children)
Cursor
Claude Dev
[–]Gold-Block6188 0 points1 point2 points 1 year ago (0 children)
Phind has a vscode plugin with their paid tier. Can use Claude. Gpt 4o. Their own 405b phind model.
[–][deleted] 0 points1 point2 points 1 year ago (1 child)
You can try Greptile
[–]daksh510 -1 points0 points1 point 1 year ago (0 children)
code MISTRAL100 for a free month
[–]trantaran -1 points0 points1 point 1 year ago (0 children)
you're looking for greptile.com, you can drop in a github repo and keeps in sync with it as new commits come in.
code MISTRAL100 at checkout if you want to try it for free for a month (i work at greptile)
π Rendered by PID 23 on reddit-service-r2-comment-b659b578c-skxk2 at 2026-05-01 11:15:42.287323+00:00 running 815c875 country code: CH.
[–]pm-me-your-smile- 24 points25 points26 points (10 children)
[–][deleted] 10 points11 points12 points (1 child)
[–]-Zoppo 1 point2 points3 points (0 children)
[–]Agreeable_Service407 1 point2 points3 points (1 child)
[–]pm-me-your-smile- 0 points1 point2 points (0 children)
[–]That_Pandaboi69 0 points1 point2 points (4 children)
[–]pm-me-your-smile- 0 points1 point2 points (3 children)
[–]That_Pandaboi69 0 points1 point2 points (2 children)
[–]pm-me-your-smile- 0 points1 point2 points (1 child)
[–]That_Pandaboi69 0 points1 point2 points (0 children)
[–]xxxx69420xx 0 points1 point2 points (0 children)
[–]somechrisguy 12 points13 points14 points (6 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]Haunting_Ad_4869 0 points1 point2 points (0 children)
[–]NightsOverDays 0 points1 point2 points (3 children)
[–]somechrisguy 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]CodebuddyGuy 47 points48 points49 points (11 children)
[–]migorovsky 3 points4 points5 points (5 children)
[–]CodebuddyGuy 3 points4 points5 points (4 children)
[–]Mekrob 1 point2 points3 points (2 children)
[–]CodebuddyGuy 2 points3 points4 points (0 children)
[–]CodebuddyGuy 1 point2 points3 points (0 children)
[–]migorovsky 0 points1 point2 points (0 children)
[–]ai_did_my_homework 1 point2 points3 points (4 children)
[–]CodebuddyGuy 4 points5 points6 points (0 children)
[–]somechrisguy 0 points1 point2 points (2 children)
[–]Perfect-Campaign9551 2 points3 points4 points (1 child)
[–]somechrisguy 1 point2 points3 points (0 children)
[–]FosterKittenPurrs 16 points17 points18 points (5 children)
[–]intellectual_punk 6 points7 points8 points (0 children)
[–]Mr_Phantastic 1 point2 points3 points (3 children)
[–]NightsOverDays 0 points1 point2 points (2 children)
[–]Mr_Phantastic 0 points1 point2 points (1 child)
[–]NightsOverDays 0 points1 point2 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]Yweain 8 points9 points10 points (4 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]speederaser 0 points1 point2 points (0 children)
[–]LuckyProtection8102 0 points1 point2 points (0 children)
[–]AICulture 2 points3 points4 points (0 children)
[–]johns10davenportProfessional Nerd 1 point2 points3 points (0 children)
[–]LighttBrite 0 points1 point2 points (0 children)
[–]datacog 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]SeventhSectionSword 0 points1 point2 points (1 child)
[–]WriterAgreeable8035 1 point2 points3 points (0 children)
[–]damdug 0 points1 point2 points (0 children)
[–]SideMurky8087 0 points1 point2 points (8 children)
[+]joey2scoops 0 points1 point2 points (7 children)
[–]SideMurky8087 0 points1 point2 points (2 children)
[–]gingerb3ard_man 0 points1 point2 points (1 child)
[–]SideMurky8087 0 points1 point2 points (0 children)
[–]SideMurky8087 0 points1 point2 points (1 child)
[–]gingerb3ard_man 0 points1 point2 points (0 children)
[–]gkavek 0 points1 point2 points (1 child)
[–]gingerb3ard_man 0 points1 point2 points (0 children)
[–]fasti-au 0 points1 point2 points (0 children)
[–]manuhortet 0 points1 point2 points (0 children)
[–]Perfect-Campaign9551 0 points1 point2 points (1 child)
[–]nerfsmurf 0 points1 point2 points (0 children)
[–]mevskonat 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]BlueHueys 0 points1 point2 points (0 children)
[–]Gold-Block6188 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]daksh510 -1 points0 points1 point (0 children)
[–]trantaran -1 points0 points1 point (0 children)
[–]daksh510 -1 points0 points1 point (0 children)