Skip to content
elelem-shPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

elelem-socket

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.

Install

gem install elelem-socket
mkdir -p ~/.agents/plugins
echo 'require "elelem/socket"' > ~/.agents/plugins/socket.rb

Use

elelem --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.

Development

bin/setup
bin/test
bin/lint

License

MIT. See LICENSE.txt.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages