Show HN: GenAI Prompts as "Native" Programs(promptcmd.sh) Lately I've seen several projects for templating and executing prompts. However
they all go along the lines of
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:
You get:
And of course with documented arguments and so on:
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/ |
No comments yet