suicide from the context of an LLM
Troed Sångberg @troed@swecyb.com
Content warning: suicide from the context of an LLM
Adding code to Opencode to expose exit() as an API for plugins. The intention is to be able to launch Opencode with an agent and a prompt, including the ability for the agent to then exit Opencode again when done.
From the LLM's point of view, executing this API is the same as commiting suicide.
I guess it would be a bit too on the nose to name it die(). Let's just go with exit() ...