Earlier quoted context omitted.
Honestly, I didn't think very hard about how to make `ping` do something interesting here, and in serious code I'd give it all the `ping` options (and also run it in a Fly Machine or Sprite where I don't have to bother checking to make sure none of those options gives code exec). It's possible the post would have been better had I done that; it might have come up with an even better test. I was telling a friend onlin…
Or have the agent strace a process and describe what's going on as if you're a 5 year old (because I actually need that to understand strace output)
You should write an agent
351–360 of 409 posts
Re: You should write an agent
#352Two years ago I wrote an agent in 25 lines of PHP [0]. It was surprisingly effective, even back then before tool calling was a thing and you had to coax the LLM into returning structured output. I think it even worked with GPT-3.5 for trivial things. In my mind LLMs are just UNIX strong manipulation tools like `sed` or `awk`: you give them an input and command and they give you an output. This is especially true if y…
Re: You should write an agent
#353Earlier quoted context omitted.
what's the point of specialized agents when you just have one universal agent that can do anything e.g. Claude
LLMs are good at fuzzy pattern matching and data manipulation. The upstream comment comparing to awk is very apt. Instead of having to write a regex to match some condition you instruct an LLM and get more flexibility. This includes deciding what the next action to take is in the agent loop. But there is no reason (and lots of downside) to leave anything to the LLM that’s not “fuzzy” and you could just write determin…
Re: You should write an agent
#354Earlier quoted context omitted.
what's the point of specialized agents when you just have one universal agent that can do anything e.g. Claude
If you can get a specialized agent to work in its domain at 10% parameters of a foundation model, you can feasibly run locally, which opens up e.g. offline use cases. Personally I’d absolutely buy an LLM in a box which I could connect to my home assistant via usb.
In a box? I want one in a unit with arms and legs and cameras and microphones so I can have it do useful things for me around my home.
Re: You should write an agent
#355Earlier quoted context omitted.
> As long as every AI provider is operating at a loss None of them are doing that. They need funding because the next model has always been much more expensive to train than the profits of the previous model. And many do offer a lot of free usage which is of course operated at a loss. But I don't think any are operating inference at a loss, I think their margins are actually rather large.
So AI companies are profitable when you ignore some of the things they have to spend money on to operate? Snark aside, inference is still being done at a loss. Anthropic, the most profitable AI vendor, is operating at a roughly -140% margin. xAI is the worst at somewhere around -3,600% margin.
Re: You should write an agent
#356Earlier quoted context omitted.
Interesting to think that this question could have been asked of almost all software work up until this point, except the "us" was always "someone else "
It’s generally been true, but not close to the scale we’re looking at now. The implied/assumed hypocrisy also doesn’t stop it from it sucking, or make it immune to criticism.
Re: You should write an agent
#357Re: You should write an agent
#358Absolutely, especially the part about just rolling your own alternative to Claude Code - build your own lightsaber. Having your coding agent improve itself is a pretty magical experience. And then you can trivially swap in whatever model you want (Cerebras is crazy fast, for example, which makes a big difference for these many-turn tool call conversations with big lumps of context, though gpt-oss 120b is obviously no…
The reason a lot of people don’t do this is because Claude Code lets you use a Claude Max subscription to get virtually unlimited tokens. If you’re using this stuff for your job, Claude Max ends up being like 10x the value of paying by the token, it’s basically mandatory. And you can’t use your Claude Max subscription for tools other than Claude Code (for TOS reasons. And they’ll likely catch you eventually if you tr…
Re: You should write an agent
#359Earlier quoted context omitted.
If you can get a specialized agent to work in its domain at 10% parameters of a foundation model, you can feasibly run locally, which opens up e.g. offline use cases. Personally I’d absolutely buy an LLM in a box which I could connect to my home assistant via usb.
> Personally I’d absolutely buy an LLM in a box In a box? I want one in a unit with arms and legs and cameras and microphones so I can have it do useful things for me around my home.
Re: You should write an agent
#360Heh, the bit about context engineering is palpable. I'm writing a personal assistant which, imo, is distinct from an agent in that it has a lot of capabilities a regular agent wouldn't necessarily need such as memory, task tracking, broad solutioning capabilities, etc... I ended up writing agents that talk to other agents which have MCP prompts, resources, and tools to guide them as general problem solvers. The first…
https://github.com/mem0ai/mem0?tab=readme-ov-file Is this useful for you?