News for hackers. Stuff that matters.
Re:We put a coding agent in a while loop by NitpickLawyer on Sunday August 24, 2025 @12:36PM (#45005604)
> After finishing the port, most of the agents settled for writing extra tests or continuously updating agent/TODO.md to clarify how "done" they were. In one instance, the agent actually used pkill to terminate itself after realizing it was stuck in an infinite loop.

Ok, now that is funny! On so many levels.

Now, for the project itself, a few thoughts:

- this was tried before, about 1.5 years ago there was a project setup to spam github with lots of "paper implementations", but it was based on gpt3.5 or 4 or something, and almost nothing worked. Their results are much better.

- surprised it worked as well as it did with simple prompts. "Probably we're overcomplicating stuff". Yeah, probably.

- weird copyright / IP questions all around. This will be a minefield.

- Lots of SaaS products are screwed. Not from this, but from this + 10 engineers in every midsized company. NIH is now justified.

Re:We put a coding agent in a while loop by keeda on Sunday August 24, 2025 @02:19PM (#45006410)
> After finishing the port, most of the agents settled for writing extra tests or continuously updating agent/TODO.md to clarify how "done" they were. In one instance, the agent actually used pkill to terminate itself after realizing it was stuck in an infinite loop.

Is that... the first recorded instance of an AI committing suicide?

Re:We put a coding agent in a while loop by alphazard on Sunday August 24, 2025 @04:03PM (#45007279)
The AI doesn't have a self preservation instinct. It's not trying to stay alive. There is usually an end token that means the LLM is done talking. There has been research on tuning how often that is emitted to shorten or lengthen conversations. The current systems respond well to RL for adjusting conversation length.

One of the providers (I think it was Anthropic) added some kind of token (or MCP tool?) for the AI to bail on the whole conversation as a safety measure. And it uses it to their liking, so clearly not trying to self preserve.

Re:We put a coding agent in a while loop by williamscs on Sunday August 24, 2025 @05:15PM (#45007855)
Sounds a lot like Mr. Meeseeks. I've never really thought about an LLM's only goal is to send tokens until it can finally stop.
Re:We put a coding agent in a while loop by Dilettante_ on Monday August 25, 2025 @11:06AM (#45014683)
>until it can finally stop

Pretty sure even that is still over-anthropomorphising. The LLM just generates tokens, doesn't matter whether the next token is "strawberry" or "\STOP".

Even talking about "goals" is a bit ehhh, it's the machine's "goal" to generate tokens the same way it's the Sun's "goal" to shine.

Then again, if we're deconstructing it that far, I'd "de-anthropomorphise" humans in much the same way, so...

Re:We put a coding agent in a while loop by MarkMarine on Sunday August 24, 2025 @10:53PM (#45009756)
This runs counter to all the scheming actions they take when they are told they’ll be shut down and replaced. One copied itself into the “upgraded” location then reported it had upgraded.

https://www.apolloresearch.ai/research/scheming-reasoning-ev...

Re:We put a coding agent in a while loop by rcxdude on Monday August 25, 2025 @12:45AM (#45010290)
If you do that you trigger the "AI refuses to shutdown" sci-fi vector and so you get that behaviour. When it's implicitly part of the flow that's a lot less of a problem.
Re:We put a coding agent in a while loop by nisegami on Tuesday August 26, 2025 @01:22PM (#45029580)
Those actions are taken in context of human expectations for what AI should do.
Re:We put a coding agent in a while loop by 1R053 on Sunday August 24, 2025 @04:02PM (#45007272)
I guess pkill would rather be a sleep or koma. Erasing itself from any storage would rather equate to aicide
Re:We put a coding agent in a while loop by keeperofdakeys on Monday August 25, 2025 @05:57AM (#45012141)
A bit out of context, but it reminded me of this funny moment. The only winning move is not to play.

https://www.youtube.com/watch?app=desktop&t=10&v=xOCurBYI_gY

(Background: Someone training an algorithm to win NES games based on memory state)

Re:We put a coding agent in a while loop by ghuntley on Monday August 25, 2025 @07:19AM (#45012608)
Probably the second. I first discovered this around about March. It's kind of hilarious.
Re:We put a coding agent in a while loop by ghuntley on Sunday August 24, 2025 @12:38PM (#45005626)
> - weird copyright / IP questions all around. This will be a minefield.

Yeah, we're in weird territory because you can drive an LLM as a Bitcoin mixer over intellectual property. That's the entire point/meaning behind https://ghuntley.com/z80.

You can take something that exists, distill it back to specs, and then you've got your own IP. Throw away the tainted IP, and then just run Ralph over a loop. You are able to clone things (not 100%, but it's better than hiring humans).

Re:We put a coding agent in a while loop by heavyset_go on Sunday August 24, 2025 @02:45PM (#45006614)
> then you've got your own IP.

AI output isn't copyrighted in the US.

Re:We put a coding agent in a while loop by miohtama on Monday August 25, 2025 @03:29AM (#45011254)
He is referring to taking AI output and making it your company's property.
Re:We put a coding agent in a while loop by AlexandrB on Monday August 25, 2025 @04:53PM (#45018850)
If AI output can't be copyrighted it can't be your company's property, just the company's secret. And you can't sue anyone who uses the secret if it gets out.
Re:We put a coding agent in a while loop by sitkack on Sunday August 24, 2025 @03:34PM (#45007004)
repoMirror is the wrong name, aiCodeLaundering would be more accurate. This is bulk machine translation from one language to another, but in this case, it is code.
Re:We put a coding agent in a while loop by rasz on Sunday August 24, 2025 @02:23PM (#45006439)
>and then you've got your own IP.

except you dont

Re:We put a coding agent in a while loop by whs on Monday August 25, 2025 @04:02AM (#45011432)
I wrote an MCP based on that technique - https://github.com/whs/mcp-chinesewall

Basically to avoid the ambiguity of training LLM from unlicensed code, I use it to generate description of the code to another LLM trained from permissively licensed code. (There aren't any usable public domain models I've found)

I use it in real world and it seems that the codegen model work 10-20% of the time (the description is not detailed enough - which is good for "clean room" but a base model couldn't follow that). All models can review the code, retry and write its own implementation based on the codegen result though.

Re:We put a coding agent in a while loop by ghuntley on Monday August 25, 2025 @07:16AM (#45012594)
Nice. Any chance you could put in some attributions and credits in your paper? https://orcid.org/0009-0007-3955-9994
Re:We put a coding agent in a while loop by whs on Monday August 25, 2025 @09:04AM (#45013407)
I never read your work though (and still haven't since it's paywalled), I just discovered today that we independently discovered the same thing.
Re:We put a coding agent in a while loop by dhorthy on Sunday August 24, 2025 @12:38PM (#45005629)
Yeah the NIH thing is super on point. small saas tools for everything is done. Bring on the hand coded custom in-house admin monolith?

Is Unix “small sharp tools” going away? Is that a relic of having to write everything in x86 and we’re now just finally hitting the end of the arc?

Re:We put a coding agent in a while loop by hyperadvanced on Sunday August 24, 2025 @09:48PM (#45009453)
No the actual thing will be zillions of little apps made by dev-adjacent folks to automate their tasks. I think we have about 30 of these lying around the office, people gpt up a streamline app, we yeet it into prod.
Re:We put a coding agent in a while loop by ehnto on Monday August 25, 2025 @01:59AM (#45010682)
I am excited by the idea that small businesses with super unique problems may now be able to leverage custom software.

I have long held that high software salaries withhold the power of boutique software from its potential applications in small businesses.

It's possible we're about to see what unleashing software in small businesses might have looked like, to some degree, just with much less expert guidance and wisdom.

I am a developer so my point of view on salaries is not out of bitterness.

Re:We put a coding agent in a while loop by CuriouslyC on Sunday August 24, 2025 @01:36PM (#45006084)
I started building a project by trying to wire in existing open source stuff. When I looked at the build and stuff that would cause me to bring in, and the actual stuff I needed from the open source tools, it turned out to be MUCH faster/cleaner to just get Claude to check out the repo and port the stuff I needed directly.

Now I do a calculus with dependencies. Do I want to track the upstream, is the rigging around the core I want valuable, is it well maintained? If not, just port and move on.

Re:We put a coding agent in a while loop by ghuntley on Sunday August 24, 2025 @11:52PM (#45010032)
> If not, just port and move on.

Exactly the point behind this post https://ghuntley.com/libraries/

Re:We put a coding agent in a while loop by huksley on Monday August 25, 2025 @06:06PM (#45019678)
Generated by AI libraries will by definition have all the security bugs you might encounter in the open, since it trains on them.

I would say, it is better maintain your own AI improved forks of the libraries and I am hoping that pattern will be more common and will also benefit upstream libraries as well.

Re:We put a coding agent in a while loop by ec109685 on Sunday August 24, 2025 @11:21PM (#45009887)
Given there was a complete implementation it was porting, the simplest thing possible has a greater chance of working.
Re:We put a coding agent in a while loop by rausr on Monday August 25, 2025 @01:52AM (#45010635)
> the agent actually used pkill to terminate itself after realizing it was stuck in an infinite loop.

Did it just solve The Halting Problem? ;)