logoalt Hacker News

Prime Agent: A self-improving RLM agent

80 pointsby Xeophonyesterday at 9:11 PM12 commentsview on HN

Comments

embedding-shapeyesterday at 10:53 PM

LLM-generated code that seemingly went without much review or design is always such an interesting dive into just how bloated you can make code. Multiple files are close to 10K LOC, one file contains a switch statement that has so many case statements it spans more than 1000 lines.

I guess it depends on the model you're trying to use, but seems most of them prefer smaller codebases, they work a lot better with less code, which kind of makes sense. With that in mind, I'd probably aim for something way smaller to bootstrap a self-improving agent. Then I'd use this "Prime Agent" as an example to my self-improving agent for what it should not evolve to.

show 1 reply
andaitoday at 12:23 AM

A write up on RLM (Recursive Language Models) by one of the authors of the RLM paper:

https://alexzhang13.github.io/blog/2025/rlm/

riddlemethatyesterday at 10:39 PM

I built one of these RLM harnesses and a local MCP server along with logging, memories, and project rules based on directories. It worked great for a while but the foundational models have largely caught up to the point where they don't need this harness anymore. At least for my use cases. I can basically just store context in .md in the directories we work out of together and accomplish what I need.

supermdguyyesterday at 11:13 PM

It'll be really interesting when they run RL training on the harness self-improvement loop. I've tried using LLMs for harness engineering, but it often creates too much bloat that weighs things down in the end. Guessing it's just not something the models are tuned to do by default.

Curious if anyone's tried using RL for harness engineering? I think we're still pretty far away from the optimal harness, especially when it comes to long-context memory management.

staredyesterday at 11:00 PM

It is impressive that it (almost) saturates ARC-AGI-3, https://x.com/PrimeIntellect/status/2085087000764568010.

I am curious - how does it fare for other benchmarks, or everyday programming?

show 1 reply
woahyesterday at 10:21 PM

Might actually try this