logoalt Hacker News

The Log Is the Agent

47 pointsby iacguytoday at 2:57 AM15 commentsview on HN

Comments

lukebuehlertoday at 8:26 AM

Very cool. I settled on the same/similar design in my agent harness.

All relevant events that affect the context window are stored in an event log. Forking agents and sessions is simply setting a pointer to the sequence number of another event log.

So if you want to check an implementation of this pattern see: https://github.com/smartcomputer-ai/lightspeed

show 1 reply
barrenkotoday at 10:59 AM

Didn't read the paper yet, but if you have a giant log, I'd guess that's RLMable?

carterschonwaldtoday at 10:44 AM

This paper points at an idea, but its really only legible if you have a more developed version of the idea already. I really should write more

bigcat12345678today at 7:45 AM

This is true after learning this framing.

It's more like the log is the only user/agent accepted consensus. It has to be the grounding base. Although extending it into an agentic system architecture becomes something not necessarily effective in practice.

show 1 reply
jamiegregztoday at 8:48 AM

> In this arrangement the log is a byproduct: an audit artifact written alongside the real computation, never the substrate of it.

I’ve come to the same conclusion building my own agents. It simply feels ‘wrong’ that most frameworks will happily mutate your context. You have to explicitly go out of your way to store the original events. I’ve now started storing an event log for my own agents, this is used as the source of truth for deriving all subsequent context.

The great thing about this is that I have finer control over drift in long runs, as I can look back through the conversation/tool history and build context suitable for the current state of the agent. It also allows me to run compactions across the entire event history instead of ‘compactions on top of compactions’ which happens on long runs with checkpoints.

It definitely feels like this will be a bigger issue going forward as we have agents running longer and more complex workflows, I’ve started building a product aimed at addressing this issue in a framework agnostic way. [0]

[0]: https://statefabric.dev

show 1 reply
klntskytoday at 9:20 AM

Can someone explain why such a trivial knowhow is paper-worthy? Event sourcing is well known

show 1 reply
rufasteriscotoday at 8:29 AM

https://activegraph.ai/

The paper’s pip library can be tried here

terntoday at 8:27 AM

Arrived at a version of this view as well and building one on Elixir/Ash.

try-workingtoday at 10:23 AM

This is one of the most interesting papers I've seen. Someone said it's AI slop, well I sent it to 5.5 Pro and it was a great read.

corgihamlettoday at 7:07 AM

My log has a message for you.

ares623today at 8:59 AM

if the folks at Anthropic/OpenAI can stop their loops for one second they would've figured this out too

but wouldn't feeding that log for each request/response iteration must get expensive really fast no?

also "We discuss--without claiming to demonstrate--" wtf? someone had a showerthought and slopped this out in 10mins to see what others thought?

jkwangtoday at 8:02 AM

[flagged]