Post

this is NOT an ai-hater post but i see a lot of folks that reach immediately for tool-using agents to drive the execution of repeatable steps when they could just... have their agent write a script. the latter is likely to be 100x more token-efficient

Arseny Khakhalin@khakhalin.bsky.social

It's fun how I can now achieve the same results by: - writing deterministic code that calls an LLM at some points - writing an LLM skill that calls deterministic code at some points - and everything in between as you develop, the two poles - a harness and a skill - keep expanding until they blend

9 reposts198 likes

This was one of my early "aha!" moments. Instead of having the LLM be the driver of a process/automation, have the LLM generate code that in turn runs the process, seems to work way better. Also yes on the token efficiency.

during my brief OpenClaw experimentation phase, I managed to burn through all my weekly Claude usage in like three days because I discovered OpenClaw was using the model to filter my to-do list repeatedly instead of having a script do it

I watched someone the other day consume a few thousand tokens rather than just cut and paste a command line the AI had already provided.

this is a process that’s slower to catch on than I’d like just the way you freeze essential tasks into dedicated silicon for better performance, like H264 decoding, a lot of agent stuff should be on the lookout for repetitive inference that can be reduced to cheap scripts

A big part of what I'm doing "at work" lately has been designing systems where the deterministic, non-deterministic, agent and human parts/interactions are mapped out. Oftentimes the non-deterministic (agent) portions get loops that gradually decreases their footprint as the architecture is tested.

i love reading this! in general, the ai community is SO wasteful with tokens. if we use less, we'll need less datacenters too, and that is better for society this is not an ai hater post either it's an appreciation for engineering efficiency AND not splitting society in half

IMO systemic moves toward efficiency are motivated by demand for financial thrift. Systems become as efficient as they need to be. Until then, if the system tolerates waste, people will be wasteful.

There are limits where this behavior flips (money is a good example, below a certain point recklessness/gambling suddenly becomes relatively optimal, "because fuck it.") But generally, yes.

Haha I think different folks mean very different things by tools ;) Think dedup when traveling on a graph. Do you give every agent a tool to update a singleton to coordinate within a swarm, or do you code a breadth first search calling agents on nodes? Same result, opposite architectures :)

Usually I'll blend in a comment that contains argument front matter so that I don't have to watch the agent try and fail to use jq 10x to figure out a commands args Mixing this in with this skill: x.com/steveruizok/... Has been noticeably better for my tool calls

just is so fucking good here. i want make to be as good, like, it feels like it should be, but it simply isn't, claudes in particular fucking love just

I think this is going to be a generational divide. If you didn't tmux into servers or run ci jobs or write operators/controllers to manage infrastructure before ai agents, it's not going to be obvious to do that if you're coming into the industry now. Servers yearn to be pets.

It's not about scripting. It's about either doing agent skill: here's a dumb_pickaxe_cli, mine until complete Or doing while not done: call_agent("swing once") You get the same results. The first approach is cheaper, but slower and harder to control, optimize