Skip to content

Show HN: Bring your own prompts in SSH remote shells

github.com/tgalal
1 pointtgalaldiscuss
On HN

Instead of giving LLM tools SSH access or installing them on a server, the following command:

  $ promptctl ssh user@server
makes a set of locally defined prompts "magically" appear within the remote shell as executable command line programs.

For example, I have locally defined prompts for `llm-analyze-config` and `askai`. Then on (any) remote host I can:

  # on remote host
  $ llm-analyze-config /etc/nginx.conf
  $ cat docker-compose.yml | askai "add a load balancer"
the prompts behind `llm-analyze-config` and `askai` execute on my local computer (even though they're invoked remotely) via the llm of my choosing.

This way LLM tools are never granted SSH access to the server, and nothing needs to be installed to the server.

Github: https://github.com/tgalal/promptcmd/

Docs: https://docs.promptcmd.sh/

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.