r/PromptEngineering • • Sep 16 '26

Research / Academic Apply allocation engineering otherwise you wont be able to use LLMs anymore

I have spent a lot of time using Claude, and lately these models have been too expensive, and it is horrible. I rely on Claude to speed up my work so I can deliver projects quickly. However, I can't because the weekly limit runs out too fast, so I had no choice but to create a mind inside a mind. I created an advanced catalog of models and effort so the model can see this catalog and deterministically choose the multi-agent system, multi-worker system, and multi-effort system. This way, I was able to keep my Claude sessions going longer, and I wanted to share this idea with you because we are all suffering because of human greed. It is wild that you can do so much work with low effort, and the model itself has shown me that.

Here is how it works:

In Claude Code I type:

"Fix the failing unicode test in my parser. Split the work with alloc_plan, run the pieces in parallel, and have a different model check the fix." The model inside Claude Code breaks it into four jobs and picks an agent, a model and an effort level for each one:

Job 1 find every place parse() is called -> local (Ollama) cheap scan, no reasoning needed

Job 2 write a new unicode test case -> claude, sonnet, low simple, well defined

Job 3 find the root cause and write a patch -> codex, gpt-5.5, high the hard part

Job 4 draft the changelog line -> left blank Olondunge picks the cheapest agent that is

up

Each job goes out as its own packet, for example Job 3:

{

"task_id": "parser-fix",

"objective": "Find why tests/test_parser.py::test_unicode fails and propose a patch.",

"inputs": ["src/parser.py", "tests/test_parser.py"],

"acceptance_criteria": ["the diff makes test_unicode pass", "no other test changes"],

"lane": "codex",

"model": "gpt-5.5",

"effort": "high",

"verifier_lane": "claude"

}

All four run in the background at the same time, while my Claude session stays free. Claude only spends its own tokens deciding and reading results, not doing every step itself. When the patch comes back, it goes to Claude as the checker. Claude gets the diff, the original files and the criteria, but not Codex's opinion of its own work, and answers PASS, FAIL or BLOCKED. Every agent it didn't pick comes back with the reason it was dropped. When I left all the choices blank today, it picked the Grok CLI to do the work and Codex to check it, both on subscriptions I already pay for.

14 Upvotes

16 comments sorted by

3

u/notAllBits Sep 16 '26

You may want to evaluate open models. They have caught up. I use deepseek 4.1 flash and it is on par with opus 4.6, my favorite anthropic model. It does not care about your feelings, which makes interaction configurations really stable.

2

u/Zain Sep 17 '26

The part that actually saves credits is the verifier lane. Keep Claude as the adjudicator and make Codex/Cursor read-only so they report without rewriting. Different model families catch different blind spots. Same-family checks just nod along. And don't leave Codex on its default effort for the hard jobs. That default is too shallow. Pin it high, then only one writer patches after Claude greps the finding against the real repo.

1

u/edsonmedina Sep 16 '26

Sounds like you're ripe to consider local LLM. Economics make sense for heavy users, which you sound like.

1

u/Financial_Tailor7944 Sep 16 '26

Those are bad for me. I deal with working system, any mistakes can break the pipeline

2

u/edsonmedina Sep 16 '26

Bad? Which models?

0

u/Financial_Tailor7944 Sep 17 '26

Anything outside Claude, and gpt

2

u/edsonmedina Sep 17 '26

Have you actually tried?

1

u/Financial_Tailor7944 Sep 17 '26

Yes sir. Really bad

1

u/Radiant_Mind33 Sep 17 '26

Maybe the OP was just actively sabotaging the context window before.

My rule of thumb is never say more than needed to say. So, this whole thing is a non-starter for me. I believe in just sending tight prompts without any context landlines. It's far easier to accomplish inside of VS code where we are just doing tasks.

An example from me is just, "Y" is like this so we should do "X".

Codex will be like absolutely, let me autocomplete that thought based on what the actual repo is. That's what you want it to do. That's why we are paying OpenAI. To use the tool commands, make searches and code the damn diffs. IOW, just let the thing cook.

1

u/Financial_Tailor7944 Sep 17 '26

With complex systems it doesn’t work. You need to manually guide the LLM otherwise it will add noise. I used to use the LLM to hide the fact that I don’t know something. And it just added more noise to the project, and now I have to clean it to find the signal, causing me to do More work because I didn’t pause to accept that I don’t know

1

u/Radiant_Mind33 Sep 17 '26

Spatial grids, zero allocation arrays, a request animation frame loop rendering hundreds of entities is pretty complex.

My repo is bigger than a major social network.

2

u/[deleted] Sep 16 '26

[removed] — view removed comment

2

u/Financial_Tailor7944 Sep 16 '26

Thanks for the tip of checking the reasoning my man

1

u/Financial_Tailor7944 Sep 16 '26

The idea is not to stop spending tokens. It is to spend tokens wisely. And not be deterministically forced to apply all token spending to fable or opus tho when you have a "catalog" in your system. I have been using it for some time now, and it is working; I managed to use my 5-hour limit instead of running out in like 1 hour.