r/ClaudeCode • • 4d ago

Discussion ChatGPT to plan, Haiku to execute

[deleted] — view deleted post

5 Upvotes

24 comments sorted by

•

u/AutoModerator 4d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/JohnSane 4d ago

If you use haiku for coding you probably could do it yourself then.

0

u/[deleted] 4d ago

[removed] — view removed comment

0

u/JohnSane 4d ago

Not really.

7

u/Any-Blacksmith-2054 4d ago

Why not just use Opus 5.5 and just have pleasure not pain? You will save time and money and your mental health

-2

u/Liners_Agnete59 4d ago

running the biggest model on a twenty dollar tier usually burns through the usage cap in an hour if the repo has any real size to it

3

u/pretendingtobebroke 4d ago

The size of the repo doesn't matter.

1

u/Black_Magic100 4d ago

That is objectively false? Even if it greps for a like of code, the sheer nature of a larger repo insinuates more items will return. It may not scale linearly, but repo size absolutely does matter. It also usually is mimiced by level of complexity so a bigger repo is typically going to be more complex leading to more token consumption.

1

u/pretendingtobebroke 4d ago edited 4d ago

That is objectively false? Even if it greps for a like of code, the sheer nature of a larger repo insinuates more items will return.

No, it is objectively correct. The total size of the repo doesn't matter, but the scope of the prompt of course does.

If you ask it to fix a specific typo on the about page, it doesn't matter if the repo is 10k lines or 100 million lines, but if you ask it to fix all typos throughout the repo, then of course it will use more in a repo with more typos, but that has nothing to do with the size of the repo and everything to do with you increasing the scope of your prompt and asking it to do more.

The same amount of work will use the same amount of usage regardless of the size of the repo.

1

u/Black_Magic100 4d ago

Wow way to totally disregard everything I said 😂.

I think it's a safe assumption to say that generally speaking a larger repo is going to result in higher token consumption for most prompts. Way to be pedantic though!

1

u/pretendingtobebroke 3d ago edited 3d ago

How did I disregard anything you said? I elaborated on my statement and directly addressed your comment.

I think it's a safe assumption to say that generally speaking a larger repo is going to result in higher token consumption for most prompts. Way to be pedantic though!

I think it's important to correct misleading statements since there are a lot of newcomers here who are unfamiliar with coding and AI harnesses and don't know how it works, and I don't want them to wrongfully think that simply working in a large repo will consume more usage because it won't, since the repo is not being loaded into the context window.

The only thing that determines usage is how big the task is, completely irrespective of how big or small the repo is. A small prompt in a monolithic repo will use fewer tokens than a big prompt in a tiny repo.

If you hire a painter to paint one room in your house, it takes the same amount of paint to do whether the house has 3 rooms or 300. If you ask him to paint every room in the house, then of course he will use more paint in a house with more rooms, but that's because you asked for more painting, not because painting a room in a huge house uses more paint than a small house.

I agree that people with larger repos might use more tokens on average, but that's because they tend to ask for bigger things. It's not pedantic to point that out, because it means you can have a huge repo and still not burn through your usage, because it depends entirely on how much work you ask of the agents.

1

u/Black_Magic100 3d ago

"a small prompt in a monolithic repo will use fewer tokens than a big prompt in a tiny repo"

Me looking at a repo with 5000 files and 1 million lines of code: "change the frontend theme of my web app to be dark mode." Meanwhile, the app never used tokens or proper theming.

Or, a much more realistic example.. "remove this return field from my function as I no longer need it". Meanwhile, that function has 2 dozen unit tests and is scattered throughout the codebase, not only directly but indirectly as well.

Sure, if you can grep into a single file and that is all AI has to do then great (I literally addressed that in my initial reply and you chose to skip over it even though you quoted me?), but its hardly ever that simple in reality. Saying that the size of the codebase doesn't matter is going to be wrong 9/10 prompts and that is the point in trying to make.

Your painting analogy is completely flawed because each room is an entirely separate modular entity. It would've been more realistic if you said " a construction worker wants to remove a single wall from your house, but that wall is in the dead center of the home" or hell, you could've even used an electrician.. yea the electrician might go straight to your exposed breaker box or fix a single outlet, but if it's a problem within your walls, a larger house is going to result in a significantly harder job.

1

u/pretendingtobebroke 3d ago edited 3d ago

By "small prompt" I meant a small task, not a small number of words in the actual prompt. "Change my app to dark mode" is a short sentence indeed, but it's a huge task if the app never had proper theming.

But to be clear, I totally understand your point and why you see it the way you do. I agree that the same short prompt can turn into a lot more work in one repo than in another, and I also agree that you're more likely to run into that in a big codebase, but what makes it more work is how much code is tied to the thing you're changing, not how much code exists in the repo.

Your function example is about how many places use that function, not how big the repo is. If it's used in 30 places, you have to update 30 places, whether the repo has 10k lines or 1 million.

The comment I replied to originally said that a repo with "any real size to it" would usually burn through the cap in an hour, and that's the part I'm saying is inaccurate. What matters is how much work you're asking the AI to do and how much code that work touches.

You could just as well have a small repo that's a complete mess, or an enormous one that's well-structured, and then it would be the opposite. The overall size of the repo is irrelevant.

2

u/Black_Magic100 3d ago

I agree with everything in this comment.

→ More replies

1

u/Any-Blacksmith-2054 4d ago

No, absolutely not. Opus is quite efficient. Try it before saying

2

u/Keepcompany-DEV 4d ago

Different workflow on my end but my agent teams can use, and can be told to use by me, a second opinion module I wrote that calls the OpenAi API and, depending on the topic, others to get a opinion outside their own view.

It all comes down to what you are actually building - I would either need 4 full-time senior engineers that work in exactly my field of experience + some design person OR I spend 200€ for Claude and just be the last instance for every decision myself.

2

u/PilotLost404 4d ago

Haiku does fine on the execute step if the plan is tight. Give it the file paths, the exact change, and how to check it worked. Most bad cheap-model runs come from a vague plan, not the model. Save the bigger model for reviewing diffs that touch something hard to undo.

1

u/WhatNoRobot 4d ago

A useful insight

1

u/SharpLetterhead3910 4d ago

used to run opus 5.5 on 20k context, but the cost per 1k tokens was insane. switched to haiku for execution and saved 80% on monthly bills.

1

u/vpanyushenko 4d ago

Depending on what you are working on, this if fine. If that is the budget that you have. One piece of advice I would offer you for more consistent results at this budget is you plan it, give it the big picture goal and how you want it to be architected. Implement with your claude model and have your codex model review the code. Reviews will get you more consistent results. But generally review with a model from a different family than the one that implemented.

1

u/carstenkoch 3d ago

Nice setup for 40 bucks. One thing that made the plan/execute split hold up for me: the plan doesn't travel as a pasted prompt. My planning agent writes it into a ticket, including what is out of scope, and the coding agent reads that ticket plus a GENESIS.md that says what we build and what we must protect. When I go back to the planner, it reads the same files, so nothing depends on copying replies between two chats.

How do you keep the planner's context once the chat gets long?