Hacker News new | ask | show | jobs
by com2kid 26 days ago
Human in the loop is 1/5th the token usage vs fully autonomous agents.

Agents swarming will 5x your usage, or worse.

The communication overhead of summarizing and status reporting between workers will eat up tokens faster than doing the work will.

Large monolith code bases with multiple layers of abstraction (Typescript to JSON schema, prisma, etc) will eat up more context than the actual work, by far. IMHO this same rule applies for human engineers as well, one of the reasons why I generally oppose too many layers of abstractions/middleware.

On large complex highly abstracted code bases, up to 90% of token usage will be input tokens.

Generally cached, generally cheaper, but not free.

The more you can constrain a problem (talking to black boxes with well defined contracts) the less the agent has to work.

So, you know, good software engineering principles in general.

2 comments

Thanks! if you can think of any other large wins that you didn't mention, that'd be great; but those 5x numbers... that's brutal. I can understand the communications overhead of agent swarms; I'd love to know where the 5x is mostly going between human in the loop and not.
Without a human in the loop LLMs tend to brute force things they don't understand.
To be fair to them, if they have an expected output this can be exactly what you need.

They've been super useful to me when comparing datasets during a porting process.

But if they don't have that loop, then they make assumptions and build towers of madness on top of said assumptions.

Towers of madness... that's absolutely perfect. I'm stealing that. This has happened so many times that it lives as a concept in my head but it never got a label. Thank you.
This is most apparent when you can see the actual thinking tokens, not the sanitised versions that the US labs show.

Fundamentally if I am paying for these tokens, I should be able to see them but that's not where we are right now.

Interesting, no? You pay for something, but they won't let you audit what you are actually paying for.
Largely bad pathways that aren't being caught in time.

Inefficient commands, for example I launched a bunch of agents for a task and for every command they'd first try it inside a sandbox, wait for the command to fail (sometimes that meant a timeout!) then retry outside the sandbox.

Now do that hundreds of times.

Or just crap like type checking the entire repo again and again.

If you have really tight rein on your agents you can prevent these sorts of issues, but you won't see these issues unless you are carefully monitoring what they are doing to the level of watching cli output scroll by.

Of course at some point the agent.md file needed to keep the stupid away gets so long that adherence drops.

You also end up with just stupid shit. I gave Sol too much free reign and it decided to update my DB schema to save stack traces to a DB.

Code which it then wrote a bunch of tests for. And then used a browser use agent to manually test.

> this same rule applies for human engineers as well, one of the reasons why I generally oppose too many layers of abstractions/middleware.

You don't understand! It's job security and a money-printer for contractors.