Back to browse
GitHub Repository

GenAI prompts as runnable programs

48 starsRust

Templated prompts that travel with you over SSH

by tgalal·Mar 16, 2026·2 points·0 comments

AI Analysis

●●●BangerWizardryBig BrainNiche Gem

SSH trick makes local prompts appear as remote commands without server installation.

Strengths
  • Prompts execute locally while invoked remotely—no LLM credentials on servers.
  • Supports provider load balancing, caching, and custom model variants like GLaDOS.
  • Zero server-side dependencies—works even without outbound internet on remote host.
Weaknesses
  • Niche audience—only matters if you regularly SSH into servers for LLM work.
  • No Windows support mentioned; SSH-only limits broader adoption.
Target Audience

Developers who SSH into remote servers and use LLMs for code work

Similar To

llm · sgpt · aider

Post Description

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 prompt templates "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:

$ promptctl ssh user@host # Now 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. In fact, the server does not even need outbound internet connections to be enabled.

Similar Projects