r/ChatGPTCoding • • Oct 24 '24

Discussion Cline + New Sonnet 3.5 + Openrouter = AMAZING

182 Upvotes

I have written an insane amount of code with Cline since yesterday. One of the most AMAZING THINGS is that I have not gotten a single "// Remaining methods remain the same" or similar comments for the last day and a half. After a full day of coding today, with 44.8 MILLION tokens sent ($28), I have only had to warn it 3-4 times that is might be overwriting important code and it fixed it on the next generation.

As far as OpenRouter, I use it because the only limit I ever hit is if I exceed 200k input tokens on a prompt.


r/ChatGPTCoding • • 12d ago

Resources And Tips PSA: If you’re on Claude Max ($100) or Ultra ($200), you have $100–$200/mo in API credits expiring every cycle — and neither Claude Code nor the new Linked Billing can spend them

181 Upvotes

Sharing this because I was surprised how buried it is, and almost everyone I asked on Max or Ultra hadn't claimed theirs yet.

Since Oct 7, Claude Max ($100/mo), Ultra ($200/mo, formerly Max 20x), and Team plans come with a recurring monthly grant of Claude Platform API credits ($100 on Max, $200 on Ultra, up to $500 pooled on Team). It refreshes every month, not a one-time promo.

The reason most people miss it (or think it's broken):

  1. **Nothing is deposited until you manually claim it.** Until you link a Console org once, Anthropic grants $0.

  2. **Hidden for your first 7 days.** On days 1–6 after subscribing or upgrading, `claude.ai/settings/billing` hides the API credits section completely (not even grayed out).

  3. **Not in Usage or mobile apps.** Even if you pay via iOS/Android, you have to open `claude.ai/settings/billing` in a desktop browser -> scroll to **API credits** -> **Link organization**. (Careful which `platform.claude.com` org you pick — you can only link one, and only Support can change it later.)

  4. **Zero rollover.** Whatever you don't use via an API key wipes back to $0 at the end of each billing cycle.

  5. **Claude Code blocks it.** Hitting your 5h/weekly cap never spills over into these credits. Even if you generate an API key from that linked Console org and pass it into Claude Code, it rejects it with `Credit balance too low · Add funds` unless you also buy cash credits.

  6. **Tuesday's new "Linked Billing" OAuth blocks it too.** Anthropic launched Linked Billing (`auth.claude.com`) on Nov 17 so 3rd-party tools can bill your Claude org via OAuth without an API key — except the fine print excludes Max, Ultra, Team, and startup promotional credits and returns `HTTP 402`.

**How to actually use it without adding a credit card:**

Once linked, the $100/$200 shows up on `platform.claude.com/settings/billing` under **Promotional credits** (separate from the main balance at the top). You do **not** need to add a payment card on Console — if you create a standard `sk-ant-api03-...` API key in that org and use it in any external tool/agent that calls `/v1/messages` directly, it draws down the promotional balance first and stops cleanly at `$0.00` with zero overage risk.


r/ChatGPTCoding • • Aug 08 '25

Discussion GPT-5 with thinking performs worse than Sonnet-4 with thinking

Thumbnail
gallery
181 Upvotes

GPT-5 gets 74.9% with thinking, Sonnet-4 gets 72.7% WITHOUT thinking and 80.2% with thinking.

This is an update on my previous post since I can't update that post


r/ChatGPTCoding • • Aug 01 '25

Discussion Horizon Alpha is already giving Sonnet a run for its money on OpenRouter

Post image
181 Upvotes

Sonnet 4 has been dominating at 50% of the usage pretty much since it was released. Even the recent open source release from Qwen or Kimi did not change that. Looks like Horizon Alpha is the first real challenger.


r/ChatGPTCoding • • Apr 06 '25

Resources And Tips I might have found a way to vibe "clean" code

181 Upvotes

First off, I’m not exactly a seasoned software engineer — or at least not a seasoned programmer. I studied computer science for five years, but my (first) job involves very little coding. So take my words with a grain of salt.

That said, I’m currently building an “offline” social network using Django and Python, and I believe my AI-assisted coding workflow could bring something to the table.

My goal with AI isn’t to let it code everything for me. I use it to improve code quality, learn faster, and stay motivated — all while keeping things fun.

My approach boils down to three letters: TDD (Test-Driven Development).

I follow the method of Michael Azerhad, an expert on the topic, but I’ve tweaked it to fit my style:

  • I never write a line of logic without a test first.

  • My tests focus on behaviors, not classes or methods, which are just implementation details.

  • I write a failing test first, then the minimal code needed to make it pass. Example: To test if a fighter is a heavyweight (>205lbs), I might return True no matter what. But when I test if he's a light heavyweight (185–205lbs), that logic breaks — so I update it just enough to pass both tests.

I've done TDD way before using AI, and it's never felt like wasted time. It keeps my code structured and makes debugging way easier — I always know what broke and why.

Now with AI, I use it in two ways:

  • AI as a teacher: I ask it high-level questions — “what’s the best way to structure X?”, “what’s the cleanest way to do Y?”, “can you explain this concept?” It’s a conversation, not code generation. I double-check its advice, and it often helps clarify my thinking.

  • AI as a trainee: When I know exactly what I want, I dictate. It writes code like I would — but faster, without typos or careless mistakes. Basically, it’s a smart assistant.

Here’s how my “clean code loop” goes:

  1. I ask AI to generate a test.

  2. I review it, ask questions, and adjust if needed.

  3. I write code that makes the test fail.

  4. AI writes just enough code to make it pass.

  5. I check, repeat, and tweak previous logic if needed.

At the end, I’ve got a green bullet list of tested behaviors — a solid foundation for my app. If something breaks, I instantly know what and where. Bugs still happen, but they’re usually my fault: a bad test or a lack of experience. Honestly, giving even more control to AI might improve my code, but I still want the process to feel meaningful — and fun.

EDIT: I tried to explain the concept with a short video https://youtu.be/sE3LtmQifl0?si=qpl90hJO5jOSuNQR

Basically, I am trying to check if an event is expired or not.

At first, the tests "not expired if happening during the current day" and "not expired if happening after the current date" pass with the code is_past: return True

It's only when I want to test "expired if happened in the past" that I was forced to edit my is_past code with actual test logic


r/ChatGPTCoding • • Mar 11 '25 Bravo

Project Hate paying API costs for claude code? Try codemcp

Thumbnail
github.com
180 Upvotes

r/ChatGPTCoding • • Jan 04 '25

Discussion Cursor vs. Windsurf: Real-World Experience with Large Codebases

178 Upvotes

This comparison has been made many times, but I'm more interested in hearing about your real-world experiences. I’m not talking about basic To-Do apps or simple CRUD operations—I want insights from those who have worked with large codebases, microservices, and complex networking. I'm not going to use this for a simple snake game; I’ll be tackling real problems, so I’d like to hear from real problem solvers.

My thoughts:

  • Cursor is genuinely performant. Its speed and the quality of its responses are satisfying. That said, even with well-crafted prompts, it sometimes hallucinates and generates nonsense. However, the rollback feature works well. Additionally, the Composer feature, which indexes code and works with agents, is quite impressive.

  • Windsurf has similar features, but I've found that it occasionally produces completely nonsensical responses. Overall, its answers tend to be simpler and contain more errors compared to Cursor. I tested both using the Claude Sonnet model. Their agent systems work differently, so that might explain the discrepancy.

  • Pricing: Cursor costs $20/month, while Windsurf is $15/month. If you pay annually, Cursor drops to $16/month...

Right now, I chosed Cursor, but that could change. What’s your experience with these tools in real-world, large-scale projects?


r/ChatGPTCoding • • Sep 25 '25

Community You're absolutely right

Post image
176 Upvotes

I am so tired. After spending half a day preparing a very detailed and specific plan and implementation task-list, this is what I get after pressing Claude to verify the implementation.

No: I did not try to one-go-implementation for a complex feature.
Yes: This was a simple test to connect to Perplexity API and retrieve search data.

Now I have on Codex fixing the entire thing.

I am just very tired of this. And being the optimistic one time too many.


r/ChatGPTCoding • • Apr 02 '25

Discussion Fiction or Reality?

Post image
175 Upvotes

r/ChatGPTCoding • • Jun 25 '24

Discussion Some thoughts after developing with ChatGPT for 15 months.

174 Upvotes

Revolutionizing Software Development: My Journey with Large Language Models

As a seasoned developer with over 25 years of coding experience and nearly 20 years in professional software development, I've witnessed numerous technological shifts. The advent of LLMs, however, like GPT-4, has genuinely transformed my workflow. Here's some information on my process for leveraging LLMs in my daily coding practices and my thoughts on the future of our field.

Integrating LLMs into My Workflow

Since the release of GPT-4, I've incorporated LLMs as a crucial component of my development process. They excel at:

  1. Language Translation: Swiftly converting code between programming languages.

  2. Code Documentation: Generating comprehensive comments and documentation.

  3. Refactoring: Restructuring existing code for improved readability and efficiency.

These capabilities have significantly boosted my productivity. For instance, translating a complex class from Java to Python used to take hours of manual effort, but with an LLM's assistance, it now takes minutes.

A Collaborative Approach

My current workflow involves a collaborative dance with various AI models, including ChatGPT, Mistral, and Claude. We engage in mutual code critique, fostering an environment of continuous improvement. This approach has led to some fascinating insights:

  • The AI often catches subtle inefficiencies and potential bugs I might overlook or provides a thoroughness I might be too lazy to implement.

  • Our "discussions" frequently lead to novel solutions I hadn't considered.

  • Explaining my code to the AI helps me clarify my thinking.

Challenges and Solutions

Context Limitations

While LLMs excel at refactoring, they must help maintain context across larger codebases. When refactoring a class, changes can ripple through the codebase in ways the LLM can't anticipate.

To address this, I'm developing a method to create concise summaries of classes, including procedures and terse documentation. This approach, reminiscent of C header files, allows me to feed more context into the prompt without overwhelming the model.

Iterative Improvement

I've found immense value in repeatedly asking the LLM, "What else would you improve?" This simple technique often uncovers layers of optimizations, continuing until the model can't suggest further improvements.

The Human Touch

Despite their capabilities, LLMs still benefit from human guidance. I often need to steer them towards specific design patterns or architectural decisions.

Looking to the Future

The Next Big Leap

I envision the next killer app that could revolutionize our debugging processes:

  1. Run code locally

  2. Pass error messages to LLMs

  3. Receive and implement suggested fixes

  4. Iterate until all unit tests pass

This would streamline the tedious copy-paste cycle many of us currently endure. This also presents an opportunity to revisit and adapt test-driven development practices for the LLM era.

Have you used langchain or any similar products? I would love to get up to speed.

Type Hinting and Language Preferences

While I'm not the biggest fan of TypeScript's complexities, type hinting (even in Python) helps ensure LLMs produce results in the intended format. The debate between static and dynamic typing takes on new dimensions in the context of AI-assisted coding.

The Changing Landscape

We may only have a few more years of "milking the software development gravy train" before AI significantly disrupts our field. While I'm hesitant to make firm predictions, developers must stay adaptable and continuously enhance their skills.

Conclusion

Working with LLMs has been the biggest game-changer for my development process that I can remember. I can't wait to hear your feedback about how I can transform my development workflow to the next level.


r/ChatGPTCoding • • Apr 14 '25

Discussion Vibe coders are replaceable and should be replaced by AI

172 Upvotes

There's this big discussion around AI replacing programmers, which of course I'm not really worried about because having spent a lot of time working with ChatGPT and CoPilot... I realize just how limited the capabilities are. They're useful as a tool, sure, but a tool that requires lots of expertise to be effective.

With Vibe Coding being the hot new trend... I think we can quickly move on and say that Vibe Coders are immediately obsolete and what they do can be replaced easily by an AI since all they are doing is chatting and vibing.

So yeah, get rid of all these vibe coders and give me a stable/roster of Vibe AI that can autonomously generate terrible applications that I can reject or accept at my fancy.


r/ChatGPTCoding • • Dec 04 '24

Discussion Why AI is making software dev skills more valuable, not less

Thumbnail
youtube.com
172 Upvotes

r/ChatGPTCoding • • May 19 '25

Discussion VS Code: Open Source AI Editor

Thumbnail
code.visualstudio.com
171 Upvotes

vscode pm here :)

If you have any questions about our open source AI editor announcement do let me know. Happy to answer any question about this.

We have updated our FAQ, so make sure to check that out as well https://code.visualstudio.com/docs/supporting/faq


r/ChatGPTCoding • • Apr 16 '25

Interaction Asked o4-mini-high to fix a bug. It decided it'll fix it tomorrow

Post image
171 Upvotes

r/ChatGPTCoding • • Apr 04 '25

Discussion Gemini 2.5 Pro is another game changing moment

171 Upvotes

Starting this off, I would advise STRONGLY EVERYONE who codes to try out Gemini 2.5 Pro RIGHT NOW if it's UI un-related tasks. I work specifically on ML and for the past few months, I have been trying to which model can do some proper ML tasks and trainig AI models (transformers and GANS) from scratch. Gemini 2.5 Pro has completely blew my mind, I tried it out by "vibe coding" out a GAN model and a transformer model and it just straight up gave me basically a full out multi-gpu implementation that works out of the box. This is the first time a model every not get stuck on the first error of a complicated ML model.

The CoT the model does is insane similarly, it literally does tree-search within it's thoughts (no other model does this). All the other reasoning model comes with an approach, just goes straight in, no matter how BS it looks later on. It just tries whatever it can to patch up an inherently broken approach. Gemini 2.5 Pro proses like 5 approaches, thinks it through, chooses one. If that one doesn't work, it thinks it through again and does another approach. It knows when to give up when it see's a dead end. Then to change approach

The best part of this model is it doesn't panic agree. It's also the first model I ever saw to do this. It often explains to me why my approach is wrong and why. I haven't even remembered once this model is actually wrong.

This model also just outperforms every other model in out-of-distribution tasks. Tasks without lots of data on the internet that requires these models to generalize (Minecraft Mods for me). This model builds very good Minecraft Mods compared to ANY other model out there.


r/ChatGPTCoding • • Apr 24 '24

Question Chat GPT 4.0 limit is pissing me off, which paid or not alternative is good also?

171 Upvotes

Sorry, this must be asked a lot here. But i keep using my limit of GPT 4.0 and I'm kinda tired of it, is there another AI that is also very good in coding? I don't mind paying.


r/ChatGPTCoding • • Sep 20 '26 Mindblown

Question How to download Astra on my Computer?

170 Upvotes

I want to download Astra on my personal Computer to stop expensing usage limit


r/ChatGPTCoding • • May 28 '25

Interaction Honesty is something I suppose

Post image
170 Upvotes

r/ChatGPTCoding • • Mar 16 '25

Resources And Tips How to use high quality vibe coding for free

170 Upvotes

I code as a hobby in a 3rd world country and I'm still in school, and I have little money. when I tried Cursor free trial with claude 3.5 it made my workflow much, much faster so I sought to discover a way to use it for free.

You have to use roo code/cline

Method 1: openrouter

Create an openrouter api key, then put it into roo code or cline. Search "free" in models. I recommend either gemini flash 2:free or deepseek chat:free. This is pretty bad, as openrouter is slower than method 2. Also, after you make 200 requests, your requests start getting rejected if the server has a lot of traffic. So, you either have to retry a lot or wait for a less busy time. If you let auto retry do it, keep the retry time at 5s

Method 2: Gemini api key

Create a Google Gemini api key, then put it into roo code or cline Set model to gemini 2 flash-001 or gemini 2 pro or gemini 1206 Done. Gemini has 15 requests per minute for free, which is amazing, and you almost never reach the rate limit. It's also super fast, you cant even read what its saying from how fast it is. If you somehow reach a rate limit, wait exactly 1 minute and it will return to nornal.

From my experience with cursor's free trial, these methods aren't as good as claude 3.5 sonnet. However, it is still very high quality and fast, so it could be worth it if you currently burn hundreds per month on claude or other llms.


r/ChatGPTCoding • • Mar 21 '25

Discussion Opinions

Post image
169 Upvotes

r/ChatGPTCoding • • Dec 27 '24

Project Instantly visualize any codebase as an interactive diagram - GitDiagram

169 Upvotes

r/ChatGPTCoding • • Apr 05 '24

Discussion Coding is 20% fun and 80% struggle. The real impact of advanced LLMs is that they take away all the struggle leaving you only with fun.

169 Upvotes

Another one of those "with zero prior experience I built a web-app in four months on Python, HTML, CSS and Javascript with Flask and Bootstrap frameworks" types of posts.

In the past, if you had an idea, you also had to have a team and/or funds and/or specific skills. Now, it's just idea and time.

Upd. Guys, it's just an MVP.


r/ChatGPTCoding • • Jan 29 '25

Question Best AI for coding?

168 Upvotes

Yes i know, this has been probably asked here plenty of times, but i wanna ask this anyway since AI seems to change almost every day and i wanna ask for my specific case here.

So, i am working on multiple(mostly hobby-related) projects and some of them are pretty large. Those are written in C++ and i'm working with Visual Studio.
I was using ChatGPT o1 most of the time(not the pro version) and it wasn't too bad. However the more complex and deeper the code/problems go, the harder it is for o1 to give proper answers or it just fcks up things.

My question is now: What would you recommend for large projects?
A dream would be something that is at least as "good" as o1(or better) and which can access my entire project files aka the WHOLE code and provides answer based on it.

Money is of course a thing here, but 20$ per month is not an issue. However i regret paying 200$ for o1 pro without a way to try it before.


r/ChatGPTCoding • • Aug 07 '25

Discussion GPT-5 in Cline is making me think Sonnet-4's personality was just a waste of tokens

166 Upvotes

Hey everyone,

Been testing GPT-5 in Cline for a few days (feels distinctly different from the Horizon stealth models), and it's really hit me that this is how a coding agent should feel -- not like Sonnet 4.

Don't get me wrong, Anthropic's models have gotten tons of love for their personality. They're great at coding, but they just run on and on. All that jovialness and verbosity might feel transparent and helpful, but it's actually kind of wasteful.

GPT-5 is the opposite. It's verbose and meticulous during planning -- asks all the right questions, maps everything out. But when it switches to execution? Dead silence. Just writes good code and keeps going. It's a psychological shift. Think about it: if someone's doing a job for you, who do you want? The person who narrates every move and constantly updates you? Or the professional who asks for context upfront, then quietly gets the job done?

That's exactly how GPT-5 feels compared to Sonnet 4. It's making me completely rethink the whole "talkative coding agent" paradigm we've gotten used to.

Really curious what you all think. Are we confusing chattiness with capability?

-Nick

---
also the video attached was one-shotted by GPT-5 with the prompt "build something impressive to show me what you're capable of" -- very interesting it chose DAW