News for hackers. Stuff that matters.

azimux

Re:You Should Write An Agent on Thursday November 06, 2025 @09:24PM (#45842943)
I wrote an agent from scratch in Ruby several months back. Was fun!

These 4 lines wound up being the heart of it, which is surprisingly simple, conceptually.

        until mission_accomplished? or given_up? or killed?
          determine_next_command_and_inputs
          run_next_command
        end