nowfound

AI · November 27, 2025

RR

Runprompt – run .prompt files from the command line

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:…

Visit github.comAlternativestop 9% of November 2025

In plain words

Runprompt is a Python command-line tool that lets users run LLM prompts stored as .prompt files, using Google's Dotprompt format with frontmatter configuration and Handlebars templating. It supports structured JSON outputs, prompt chaining, and Unix-style piping, allowing prompts to be treated as reusable programs. Designed for developers who want a lightweight alternative to Firebase Genkit, it enables straightforward integration of language model calls into shell workflows.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

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!

More ai this month

the category →
  • I trained a 125M-parameter transformer to autocomplete piano performances in real time (~108 notes/sec on an iPhone 15). The idea is basically GitHub Copilot or Tabnine, except instead of prompting it with code, you prompt it by playing a few notes on a MIDI piano. The model then continues what you played, entirely on-device. The app is free if anyone wants to try it. Happy to answer questions about the model, training, Core ML, or the many things that didn't work.

    AI · 17d ago · simedw.com

  • Astute585

    Automate your B2B brand going viral, with new media creators

    AI · 18d ago · company-app.joinastute.com

  • Grok Bot547

    AI teammates that you can give real work to

    AI · 25d ago · x.ai

  • Hey HN, Henry from Cactus here! We previously released Cactus Needle, a 14MB agentic LLM for tool call, device use, and structured extraction for phones, wearables, smart homes, small robots and microcontrollers. We got really great feedback here, and have now incorporated the suggestions to release Needle 2. The whole model is a single 14MB binary that runs a full session in 28MB of RAM; 45m parameters at 2bit compression. Needle hits 500 tokens/sec decode speed on a Raspberry Pi 5, sits between 400-1,500 tokens/sec on VR devices like Meta Quest 3S and Apple Vision Pro, and ranges…

    AI · 27d ago · cactuscompute.com

  • Make your software self-driving

    AI · 30d ago · coldtea.ai

  • Soloop472

    Approval-first Agent OS for solo founders

    AI · 30d ago · soloop.io

Launched alongside, November 2025

the whole month →
  • Guideflow1,341

    The AI demo automation platform for SaaS

    AI · Nov 2025 · guideflow.com

  • IB

    Life & fun · Nov 2025 · bitsnpieces.dev

  • Welltory1,030

    Stop energy drain

    Work · Nov 2025 · welltory.com

  • Gemini 31,007

    Bring any idea to life with multimodal capabilities

    AI · Nov 2025 · blog.google

  • TrustMRR836

    The database of verified startup revenues

    Growth · Nov 2025 · trustmrr.com

  • B
    Boing782

    Life & fun · Nov 2025 · boing.greg.technology