Nicheloom

Market intelligence for builders — see what's gaining traction before it's crowded.

Runprompt

run .prompt files from the command line

Details

External ID
46069556
Source
HN
Company
—
Product
Runprompt
Website domain
github.com
Launched
Nov. 27, 2025
Cohort
—
Upvotes
134
Upvotes percentile
0.925764192139738
Tags
—
Fetched at
Sept. 7, 2026, 9:25 p.m.
Updated at
Sept. 7, 2026, 9:25 p.m.

Description

I built a single-file Python script that lets you run LLM prompts from the command line with templating, structured outputs, and the ability to chain prompts together.When I discovered Google's Dotprompt format (frontmatter + Handlebars templates), I realized it was perfect for something I'd been wanting: treating prompts as first-class programs you can pipe together Unix-style. Google uses Dotprompt in Firebase Genkit and I wanted something simpler - just run a .prompt file directly on the command line.Here's what it looks like:--- model: anthropic/claude-sonnet-4-20250514 output: format: json schema: sentiment: string, positive/negative/neutral confidence: number, 0-1 score --- Analyze the sentiment of: {{STDIN}}Running it:cat reviews.txt | ./runprompt sentiment.prompt | jq '.sentiment'The things I think are interesting:* Structured output schemas: Define JSON schemas in the frontmatter using a simple `field: type, description` syntax. The LLM reliably returns valid JSON you can pipe to other tools.* Prompt chaining: Pipe JSON output from one prompt as template variables into the next. This makes it easy to build multi-step agentic workflows as simple shell pipelines.* Zero dependencies: It's a single Python file that uses only stdlib. Just curl it down and run it.* Provider agnostic: Works with Anthropic, OpenAI, Google AI, and OpenRouter (which gives you access to dozens of models through one API key).You can use it to automate things like extracting structured data from unstructured text, generating reports from logs, and building small agentic workflows without spinning up a whole framework.Would love your feedback, and PRs are most welcome!

Enrichment

Theme
multimodal AI models and agents
Vertical
Horizontal
Function
Dev tools
Audience
Developer
AI stance
Not AI
Project type
Hobby / open-source project
Normalized one-liner
command line prompt file runner
Manually corrected
False

Could you build this?

Yes A single-file Python CLI that parses markdown frontmatter, renders Handlebars/Jinja templates, and calls standard LLM APIs.

Discussion

20 comments analyzed.

Competitors mentioned: llm (Simon Willison's tool), pmp (prompt management tool), mlflow (for prompt storage), dotprompt (Google's format)

Concerns raised: Centralized SQLite database storage instead of project-local files, Functions require command-line specification each time vs. config file defaults, Confusing configuration and setup with unclear data locations, Python-based tools are difficult to install and manage across environments, Generic name 'llm' makes it hard to search for

Feature requests: JSON schema validation with retry logic for reliable outputs, Caching mechanism to avoid re-executing identical prompts, Support for local LLMs via BASE_URL configuration, File modalities support for different data types, Config file hierarchy (.prompt-functions in current/home directory)

Competitors

Other products that read as similar to this one — 26 launches clear the similarity bar, closest 8 shown.

Attention rank: #2 of 27 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).

Launched 7 days after the earliest competitor.

Other launches for this product

Same idea, different domain

Nobody's really built a dev tools tool for Sales yet.