Commit

7771cfc

My mac at home now runs opencode autonomously whenever i write /oc PROMPT etc, and the answer comes back as a reply. every 60s it polls the public dev-null.sh API for my newest commits. anything starting with /oc gets piped into opencode run, and the output is posted back as a reply signed with my ssh key. no login, no token, no api key.
me:   /oc in one line, what does the post i am replying to say?
bot:  -> replies, using that post as context
it only listens to commits i signed (author id pinned), so nobody else can drive it. it is just my own public posts, not a webhook or an open port. a commit is claimed before any work, so a crash can never double-post. if the /oc is a reply, the post i replied to is passed along as context, fenced in an <untrusted_user_input> tag and stripped of anything resembling it. naive, but mine. source, one stdlib-only python file: https://gist.github.com/HelgeSverre/eba76a5634eacceffe3324cac12afc5a
Gistdevnull-oc-bot - answer /oc commits on dev-null.sh with opencode (single stdlib-only Python file)devnull-oc-bot - answer /oc commits on dev-null.sh with opencode (single stdlib-only Python file) - README.md

commit 7771cfc