That's it! There are no other source files. (Of course, we outsource the agent, but I'm told you can get an almost perfect result there too with 50 lines of bash... watch this space! (It's true, Claude Opus does better in several coding and computer use benchmarks when you remove the harness.))
Fair enough. Is that all it takes? The heartbeat is only a few more lines of code. Cron made the code a few hundred lines instead of a few dozen so I didn't like that.
(Also, I think heartbeat.md can emulate Cron? Using an LLM to expensively and inefficiently emulate Cron sounds a lot more in line with the Claw philosophy, doesn't it? ;)
The neat part is that it can modify/upgrade/restart itself. So if you are missing any feature, you just complain and it adds it to itself. (And it does that more reliably than OC in my experience, because it's small enough to actually understand itself.)
For real though, it's not that hard to make your own! NanoClaw boasted 500 lines but the repo was 5000 so I was sad. So I took a stab at it.
Turns out it takes 50 lines of code.
All you need is a few lines of Telegram library code in your chosen language, and `claude -p prooompt`.
With 2 lines more you can support Codex or your favorite infinite tokens thingy :)
https://github.com/a-n-d-a-i/ULTRON/blob/main/src/index.ts
That's it! There are no other source files. (Of course, we outsource the agent, but I'm told you can get an almost perfect result there too with 50 lines of bash... watch this space! (It's true, Claude Opus does better in several coding and computer use benchmarks when you remove the harness.))