A plugin for elelem that serves a session on a Unix socket, so you can leave it running and talk to it from another terminal, an editor or a script.
gem install elelem-socket
mkdir -p ~/.agents/plugins
echo 'require "elelem/socket"' > ~/.agents/plugins/socket.rbelelem --sock /tmp/elelem.sock
elelem --sock /tmp/elelem.sock "what changed?"With no prompt, --sock PATH serves the session there. With a prompt, it
asks the session there and prints the reply.
One client at a time talks to the session; another is told busy. The
conversation carries over between clients, and a client that hangs up
mid-turn can reconnect once the turn ends.
Connecting gives the powers of a shell, so the socket is open to its owner alone (mode 0600), and it is removed when the session ends.
bin/setup
bin/test
bin/lintMIT. See LICENSE.txt.