Runprompt: Run .prompt files from the command line
Published:Nov 27, 2025 14:26
•1 min read
•Hacker News
Analysis
Runprompt is a single-file Python script that allows users to execute LLM prompts from the command line. It supports templating, structured outputs (JSON schemas), and prompt chaining, enabling users to build complex workflows. The tool leverages Google's Dotprompt format and offers features like zero dependencies and provider agnosticism, supporting various LLM providers.
Key Takeaways
Reference
“The script uses Google's Dotprompt format (frontmatter + Handlebars templates) and allows for structured output schemas defined in the frontmatter using a simple `field: type, description` syntax. It supports prompt chaining by piping JSON output from one prompt as template variables into the next.”