logoalt Hacker News

pohltoday at 3:03 PM1 replyview on HN

You know how OpenCode can be prompted to modify itself when you want to improve it in some way? This just automates that kind of thing.


Replies

cyanydeeztoday at 3:20 PM

It can't actually; I had to create a systemd service that watched the config path and send a signal to reload the files. It roughly works, but it doesn't actually do the loop correctly.

However, the problem with self-modification is the tendency towards inoperable states. Does it automatically revert when a detrimental state is reached? How does it determine that a modification worked?

show 1 reply