HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
tgalal
promptcmd
Rust2026–2026
tgalal / promptcmd

promptcmd

GenAI prompts as runnable programs

2Distinct people
14Mentions
0Explicit recommenders
48GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

GenAI prompts as runnable programs

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by week14 dated mentions

Observed mentions: 2026-01-21 13:46:46 UTC to 2026-03-19 14:41:30 UTC. Weeks start Monday, UTC.

02468102026-01-19 00:00:00 UTC to 2026-01-26 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 commentsJan 192026-01-26 00:00:00 UTC to 2026-02-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-02-02 00:00:00 UTC to 2026-02-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-02-09 00:00:00 UTC to 2026-02-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-02-16 00:00:00 UTC to 2026-02-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsFeb 162026-02-23 00:00:00 UTC to 2026-03-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-02 00:00:00 UTC to 2026-03-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-09 00:00:00 UTC to 2026-03-16 00:00:00 UTC (exclusive): 9 mentions; 8 submissions, 1 comments2026-03-16 00:00:00 UTC to 2026-03-23 00:00:00 UTC (exclusive): 3 mentions; 3 submissions, 0 commentsMar 16

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jan 192026-01-19 00:00:00 UTC2026-01-26 00:00:00 UTC220
Jan 262026-01-26 00:00:00 UTC2026-02-02 00:00:00 UTC000
Feb 22026-02-02 00:00:00 UTC2026-02-09 00:00:00 UTC000
Feb 92026-02-09 00:00:00 UTC2026-02-16 00:00:00 UTC000
Feb 162026-02-16 00:00:00 UTC2026-02-23 00:00:00 UTC000
Feb 232026-02-23 00:00:00 UTC2026-03-02 00:00:00 UTC000
Mar 22026-03-02 00:00:00 UTC2026-03-09 00:00:00 UTC000
Mar 92026-03-09 00:00:00 UTC2026-03-16 00:00:00 UTC981
Mar 162026-03-16 00:00:00 UTC2026-03-23 00:00:00 UTC330

What Hacker News says

14 sources

Show HN: LLM prompts as CLI progs with args, piping, and SSH forwarding

Hey HN! I am an avid terminal user who sees value in prompts executing like, and having the UX of native CLI programs, i.e., with --help, argument parsing, stdin/stdout, and composability via pipes. So I came up with a tool (not vibe-coded, built over 4+ months) where you write a .prompt file with a template (Handlebars-style), enable it with promptctl enable, and it becomes a command you can run in your terminal. For example: So I built a tool where you write a .prompt file with a template (Handlebars-style), enable it with `promptctl enable`, and it becomes a command you can run: cat compose.yml | askdocker "add a load balancer" ai-analyze-logs --container nginx It supports multiple providers (Anthropic, OpenAI, Ollama, OpenRouter, Google), load balancing across them, response caching, and custom model "variants" with different sys
Read the rest
tem prompts. The feature I am most excited about is: promptctl ssh user@host This makes all your local prompt commands available on the remote machine, but execution happens locally. The remote server never needs API keys, internet access, or any installation. It works by forwarding the prompts over the SSH connection. I wrote this in Rust with 300+ commits in already. Would love feedback, especially on the SSH workflow. GitHub: https://github.com/tgalal/promptcmd
2 points · Open discussion
tgalal·Mar 16, 2026Submission

Show HN: Templated prompts that travel with you over SSH

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 b
Read the rest
e enabled.
2 points · Open discussion

Show HN: Execute local LLM prompts in remote SSH shell sessions

Hi HN, This is a tool I've worked on the past few months (not vibe-coded). 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: $ 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
Read the rest
, the server does not even need outbound internet connections to be enabled. Eager to get feedback! Github: https://github.com/tgalal/promptcmd/
2 points · Open discussion

Show HN: Execute local LLM prompts in remote SSH shell sessions

Hi HN, This is a tool I've worked on the past few months. 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: $ 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
Read the rest
not even need outbound internet connections to be enabled. Eager to get feedback! Github: https://github.com/tgalal/promptcmd/
3 points · Open discussion
tgalal·Mar 12, 2026Submission

Show HN: Execute local LLM prompts in remote shells

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: $ 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
Read the rest
2 points · Open discussion
tgalal·Mar 11, 2026Submission

Show HN: Execute local prompts in SSH remote shells

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: $ 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
Read the rest
7 points · Open discussion
tgalal·Mar 10, 2026Submission

Show HN: Execute local prompts in SSH remote shells

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: $ 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
Read the rest
4 points · Open discussion
tgalal·Mar 10, 2026Submission

Show HN: Bring your own prompts in SSH remote shells

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/
1 points · Open discussion
tgalal·Mar 9, 2026Submission

Show HN: Execute local prompts in SSH remote shells

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/
2 points · Open discussion
tgalal·Mar 9, 2026Submission

Show HN: Bring your own prompts to remote shells

Instead of giving LLM tools SSH access or installing them on a server, the following: promptctl ssh user@server makes a set of locally defined prompts "appear" within the remote shell as executable command line programs. For example: # on remote host analyze-config --help Usage: analyze-config [OPTIONS] --path <path> Prompt inputs: --all --path <path> --opt --syntax --sec would render and execute the following prompt: You are an expert sysadmin and security auditor analyzing the configuration file {{path}}, with contents: {{cat path}} Identify: {{#if (or all syntax) }}- Syntax Problems{{/if}} {{#if (or all sec) }}- Misconfigurations and security risks{{/if}} {{#if (or all opt) }}- Optimizations{{/if}} For each finding,
Read the rest
state the setting, the impact, a fix, and a severity (Critical/Warning/Info). Nothing gets installed on the server, API keys never leave your computer, and you have full control over the context given to the LLM. Github: https://github.com/tgalal/promptcmd/ Documentation: https://docs.promptcmd.sh/
3 points · Open discussion
tgalal·Jan 22, 2026Submission

Show HN: Bashme_a_script_that", generate and cache bash scripts via promptcmd

This is an example tool I created using my tool (promptcmd) for turning prompts into "native-looking" executables: Usage: bashme_a_script_that [OPTIONS] <query>... Prompt inputs: --stdin accept stdin input <query>... positional query. Can be spaced and with/without quotes It makes use of caching responses: if I review the generated script and it looks good (or incomprehensible and I'm in YOLO mood), I run the command again and pipe directly into bash. It'll use the reviewed response instead of generating a new one. Would love to get feedback or ideas for promptcmd: Github: https://github.com/tgalal/promptcmd/ Documentation: https://docs.promptcmd.sh/ Examples: https://promptcmd.sh/lib/
1 points · Open discussion
tgalal·Jan 21, 2026Submission

Show HN: GenAI Prompts as "Native" Programs

Lately I've seen several projects for templating and executing prompts. However they all go along the lines of $ executor prompt_file_or_name which didn't exactly fit my "taste". I figured one could use the same trick like busybox, where you can detect if your binary is being executed via a different name (symlink). The symlink name is treated as the promptname, and arguments are generated from a schema defined in the prompt template. So now instead of: # Using https://github.com/chr15m/runprompt echo '{"words": 300, "text": "some long text"}' | ./runprompt summarize.prompt # Or using https://github.com/simonw/llm echo "some long text" | llm -t summarize -p words 300 You get: echo "some long text" | summarize --words 300 And of course with documented arguments and so on: summarize --help Usage: summarize [OPTIONS] --
Read the rest
words <words> --text <text> Prompt inputs: --words <words> Maximum number of words --text <text> The text to summarize, defaults to stdin That was the starting point, then things escalated and suddenly there is load balancing, caching, execution via shebang and other (IMO) neat features :). Happy to get feedback and ideas. Github: https://github.com/tgalal/promptcmd/ Documentation: https://docs.promptcmd.sh/ Examples: https://promptcmd.sh/lib/
1 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.