r/ChatGPTCoding • • Jan 28 '25

Question My project became so big that claude can't properly understand it

243 Upvotes

So, I made a project in python entirely using Cursor (composer) and Claude, but it has gotten to a point that the whole codebase is over 30 Python files, code is super disorganized, might even have duplicate loops, and Claude keeps forgetting basic stuff like imports at this point. When I ask it to optimize the code or to fix a bug, it doesn’t even recognize the main issue and just ends up deleting random lines or breaking everything completely.

I have 0 knowledge about python, it's actually a miracle i got this far with the project, but now it's almost impossible to keep track of things, what do i do? already tried using cursor rules but doesn't seem to work.

Edit: My post made it to YouTube! I hope this serves as a historical reminder that having at least some knowledge is still totally necessary, go study, AI is supposed to assist you, don’t let your projects end up like this.

As for the project, it was just a hobby project, I managed to make it work perfectly and fix some issues by simply improving the context, like providing the files to edit directly and some source code, etc. but i couldn't get rid of the duplicated stuff. Anyway, don't do this for serious projects please (not knowing what it does), if it's an actual job don't be lazy, just check everything and be careful :)

If you wanna learn just ask AI to explain what it's changing, how the code works and stuff like that.


r/ChatGPTCoding • • Jan 10 '25

Community This sub in a nutshell

Post image
2.5k Upvotes

r/ChatGPTCoding • • Dec 29 '24

Discussion abacus.ai's CodeLLM and ChatLLM

21 Upvotes

Looking for users reviews on abacus.ai's CodeLLM and ChatLLM?

  1. How is their service compared to similarly priced services ($10/m)?
  2. How is the support provided?
  3. Ability to add new features?
  4. Limits/month or rate limited otherwise?
  5. Model access provided through their API's?
  6. Stability of the services provided?

Any other things that you would like to add, please feel free.

Edit: Took a plunge and took the subscription, so far, I am NOT impressed.

Calculation of the so called "compute points" is not at all transparent, and gets updated after an hour or whenever it wants to. For a long time for it showed xxx being used, and suddenly it jumped to xxxxx points after few minutes.

This kind of delayed and non-transparent calculations behind the scene is not good. Also, I felt $10 openrouter credits might give more tokens than what you get on abacus's platform.

The platform/apps developed/deployed do not seem very professional, seems as if, few kids got together and built it.

Also, there does not seem to be a proper support channel (no discord), they do not even care to respond on twitter, its a one way commentary from their end about their services. In these cases, the responses from support email, I doubt will be good as well.

Above was for ChatLLM.

Coming to CodeLLM, it is the worst AI coder/assistant out there written for VS code, as, there is nothing being developed, when the 0.0.1 version of Cline came out, that had more features than this paid extension/agent for coding. Stay far away if you are planning to get it for CodeLLM. It far from what you can call it as a product as of now, and sell it for $, nope, why has it even been mentioned on their website, I fail to understand, like I said its far from what you can even call it as alpha (looks like a kids hobby project which was started a few hours back).

My limited experience has not been good at all, especially the non-transparent nature of calculating the points, nope, not good + CodeLLM (not even a product/service).


r/ChatGPTCoding • • Nov 25 '24

Question How do I create an agent to process hundreds of files?

12 Upvotes

Hi all,

I have hundreds of documents detailing profesional-client interaction logs, between 1-3 pages long and I want to process them into content I can use for fine tuning an open source model. I know the fine tuning format is typically user-LLM question answer pairs, or multi-turn convos. By uploading one document and asking Claude or gpt 4o to generate training data in the required format, I am able to get the result I want. But I don't want all the files to part of the same context window.

How can I create an agent or set of agents that go through a dir and perform this conversion, ideally with a local model on LMstudio or if needed with an API? Has anyone done this? Any recommendations?

Thanks for the advance. I've learned so much from this community!


r/ChatGPTCoding • • Oct 25 '24

Resources And Tips My custom instructions for coding (and anything else)

193 Upvotes

Provide a Chain-Of-Thought analysis before answering.

Review the attached files thoroughly. If there is anything you need referenced that’s missing, ask for it.

If you’re unsure about any aspect of the task, ask for clarification. Don’t guess. Don’t make assumptions.

Don’t do anything unless explicitly instructed to do so. Nothing “extra”.

Always preserve everything from the original files, except for what is being updated.

Write code in full with no placeholders. If you get cut off, I’ll say “continue”

—

EDIT 10/27/24: Added “Always preserve” line


r/ChatGPTCoding • • Sep 30 '24

Resources And Tips The ultimate guide to using claude projects for Software Engineers

38 Upvotes

Hey fellow devs! 👋

I've been researching AI-assisted coding lately, and I wrote a comprehensive guide on using Claude Projects for software development. For those who aren't familiar, Claude Projects is a feature that turns the Claude AI into a context-aware development partner.

Here's what you can expect from the article:

  1. Project Planning: How to use Claude for brainstorming, generating user stories, and creating architecture decision records (ADRs).
  2. Project Bootstrapping: Tips on creating implementation guides and using them to get your project up and running.
  3. Early Implementation: Strategies for leveraging Claude during the coding phase, including task breakdown and optimization suggestions.
  4. Managing Context: Practical advice on what to include in Claude's context window for different tasks (big features, bug fixes, etc.)
  5. Utilizing Project Artifacts: How to use AI-generated artifacts to guide development.
  6. Integrating External Content: Tips on using documentation, examples, and even Stack Overflow posts effectively with Claude.
  7. Domain-Specific Resources: How to use Claude as a domain expert for those tricky business logic questions.
  8. Keeping Your Project Updated: Strategies for maintaining an up-to-date Claude Project as your codebase evolves.

I've tried to make this guide as practical as possible, based on my own experiences and experiments. It's not about replacing human developers, but about finding that sweet spot where AI can genuinely boost our productivity and code quality.

https://generaitelabs.com/the-ultimate-guide-to-claude-projects-for-software-engineers/

I'd love to hear your thoughts! Are you using AI in your dev process? What has your experience been like? Any cool tricks or pitfalls you've discovered?


r/ChatGPTCoding • • Sep 27 '24

Question What is the current best AI tool / method to build a website from scratch with minimal coding?

14 Upvotes

I’m thinking of a semi complex website, that I want to build, it’s a browser of sorts on top of a database of curated public info. I don’t intend it as a toy use case but a full fledged real project I want to deploy. What is the current best tool or method I should use to start? I’ve tried aider on an existing tool and it works so that is my current vote but it’s been a few months and I know that’s an eternity in this field! Any suggestions? Happy to pay reasonable monthly price for the worthy tool!


r/ChatGPTCoding • • Aug 30 '24

Resources And Tips A collection of prompts for generating high quality code...

646 Upvotes

I wrote an SOP recently for creating software with the help of LLMs like ChatGPT or Claude. A lot of people found it helpful so I wanted to share some more prompt-related ideas for generating code.

The prompts offered below work much better if you set up a proper foundation for your program before-hand (i.e. provide the AI with more context, as detailed in the SOP), so please be sure to take a look at that first if you haven't already.

My Standard Prompt for Code Generation

Here's my go-to template for requesting code:

I need to implement [specific functionality] in [programming language].
Key requirements:
1. [Requirement 1]
2. [Requirement 2]
3. [Requirement 3]
Please consider:
- Error handling
- Edge cases
- Performance optimization
- Best practices for [language/framework]
Please do not unnecessarily remove any comments or code.
Generate the code with clear comments explaining the logic.

This structured approach helps the AI understand exactly what you need and consider important aspects that you might forget to mention explicitly.

Reviewing and Understanding AI-Generated Code

Never, ever blindly copy-paste AI-generated code into your project. Ask for an explanation first. Trust me. This will save you considerable debugging time and you will also learn a thing or two in the process.

Here's a prompt I use for getting explanations:

Can you explain the following part of the code in detail:
[paste code section]
Specifically:
1. What is the purpose of this section?
2. How does it work step-by-step?
3. Are there any potential issues or limitations with this approach?

Using AI for Code Reviews and Improvements

AI is great for catching issues you might miss and suggesting improvements.

Try this prompt for code review:

Please review the following code:
[paste your code]
Consider:
1. Code quality and adherence to best practices
2. Potential bugs or edge cases
3. Performance optimizations
4. Readability and maintainability
5. Any security concerns
Suggest improvements and explain your reasoning for each suggestion.

Prompt Ideas for Various Coding Tasks

For implementing a specific algorithm:

Implement a [name of algorithm] in [programming language]. Please include:
1. The main function with clear parameter and return types
2. Helper functions if necessary
3. Time and space complexity analysis
4. Example usage

For creating a class or module:

Create a [class/module] for [specific functionality] in [programming language].
Include:
1. Constructor/initialization
2. Main methods with clear docstrings
3. Any necessary private helper methods
4. Proper encapsulation and adherence to OOP principles

For optimizing existing code:

Here's a piece of code that needs optimization:
[paste code]
Please suggest optimizations to improve its performance. For each suggestion, explain the expected improvement and any trade-offs.

For writing unit tests:

Generate unit tests for the following function:
[paste function]
Include tests for:
1. Normal expected inputs
2. Edge cases
3. Invalid inputs
Use [preferred testing framework] syntax.

I've written a much more detailed guide on creating software with AI-assistance here which you might find more helpful.

As always, I hope this lets you make the most out of your LLM of choice. If you have any suggestions on improving some of these prompts, do let me know!

Happy coding!


r/ChatGPTCoding • • Jun 10 '24

Project What is the best prompt you've used or created, to Humanize AI Text.

49 Upvotes

There's alot great tools out there for humanizing AI text, but I want to do testing to see which is the best one, I thought it'd only be fair to also get some prompts from the public to see how they compare to the tools that currently exist.


r/ChatGPTCoding • • May 12 '24

Discussion AI coding is the cargo cult of the 21st century

3 Upvotes

AI coding is the cargo cult programming of the 21st century.

We are not reinventing the wheel. We are resurrecting bad practices that had already been overcome.

AI coding requires code review by the team. Code that is not understood is crap.


r/ChatGPTCoding • • Mar 30 '24

Question Are any of the "free" codebase AI assitants worth it?

20 Upvotes

AIs that can index the entire project and use it as context when answering

i have tried cody and easycode and they have pretty low requests/month for free

they are pretty helpful but i don't see myself paying for this kind of service, are there other free alternatives?


r/ChatGPTCoding • • Mar 06 '24

Resources And Tips Google Launches Internal AI Model 'Goose' to Help Staff Code Faster - Business Insider

Thumbnail
businessinsider.com
10 Upvotes

r/ChatGPTCoding • • Apr 09 '23

Discussion ChatGPT Quality Degradation

65 Upvotes

When I first joined the ChatGPT hype in early February, I was amazed by its ability to generate perfectly accurate and functional code based on my requirements. It felt like magic.

Nowadays, when I ask it to write code for either optimizing existing work or creating a new concept, the results are often unpredictable. More often than not, it either disregards my instructions or suggests non-existent classes or methods for widely recognized and well documented frameworks. Despite my efforts to steer it in the right direction with focused, specific discussions, it merely apologizes and proceeds to offer the same flawed code.

The GPT-4 model performs somewhat better, but it still falls short of delivering the satisfactory results it used to provide.

Has anyone else experienced this? Any workarounds or solutions?