frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Runprompt – run .prompt files from the command line

https://github.com/chr15m/runprompt
12•chr15m•1h ago
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!

Apple iPhone shipments to beat Samsung in 14 years

https://www.cnbc.com/2025/11/26/apple-iphone-shipments-to-beat-samsung-for-the-first-time-in-14-y...
1•pseudolus•41s ago•0 comments

GitLab discovers widespread NPM supply chain attack

https://about.gitlab.com/blog/gitlab-discovers-widespread-npm-supply-chain-attack/
1•OuterVale•1m ago•0 comments

The Trouble with Checked Exceptions

https://www.artima.com/articles/the-trouble-with-checked-exceptions
2•whatever3•2m ago•0 comments

IETF Internet-Draft: Passive Hot Reload for zero-downtime server reconfiguration

https://datatracker.ietf.org/doc/draft-ahrweiler-hotreload/
2•docjojo•5m ago•1 comments

Protect Public School Students from Surveillance of Off-Campus Speech

https://www.eff.org/deeplinks/2025/11/eff-arizona-federal-court-protect-public-school-students-su...
2•hn_acker•6m ago•1 comments

Most OpenDoor investors recognize turnaround plan doesn't solve biggest problem

https://www.fool.com/investing/2025/11/27/why-opendoor-stock-could-be-going-to-0/
2•donsupreme•7m ago•0 comments

Franksgiving

https://en.wikipedia.org/wiki/Franksgiving
2•geox•8m ago•0 comments

Show HN: Z-Image.app – Free, no-login demo for Z-Image-Turbo

https://z-image.app/
2•yeekal•9m ago•0 comments

Show HN: I built a low-level crypto lib that adds passwords to wallet mnemonics

2•mscikdf•10m ago•0 comments

The writer who dared criticize Silicon Valley

https://www.nytimes.com/2025/11/27/technology/writer-silicon-valley-criticism.html
3•kenjackson•10m ago•0 comments

Show HN: PythonStark – Educational Python ZK-Stark Implementation

https://github.com/SherifSystems/Pythonstark
2•SherifSystems•12m ago•0 comments

Taiwan raids former TSMC exec's home and seizes his shares and real estate

https://www.reuters.com/legal/litigation/intel-denies-tsmc-allegations-that-executive-leaked-trad...
3•osnium123•13m ago•1 comments

Apple's Second Limited-Edition Accessory in a Month: Hikawa Phone Grip and Stand

https://www.macrumors.com/2025/11/21/apple-launches-hikawa-iphone-grip-stand/
3•workfromspace•14m ago•1 comments

Did the UK budget leak because of WordPress?

https://www.altis-dxp.com/did-the-uk-budget-leak-because-of-wordpress/
2•rmccue•16m ago•0 comments

Show HN: Video Frame Extractor – Extract Frames from Videos Oline

https://videoframeextractor.net
2•star98•16m ago•0 comments

Delete all contact images via AppleScript

https://tinyapps.org/blog/delete-all-contact-images.html
2•austinallegro•18m ago•0 comments

Agents need good developer experience too

https://modal.com/blog/agents-devex
2•birdculture•18m ago•0 comments

Ask HN: Extracting the same table from PDF layouts?

2•oliver236•19m ago•0 comments

A Highway Is Crumbling. New York Can't Agree on How to Fix It

https://www.nytimes.com/interactive/2025/11/26/special-series/brooklyn-queens-expressway-new-york...
3•shakes•19m ago•1 comments

Sprout: UEFI bootloader that can reduce bootloader times to milliseconds

https://github.com/edera-dev/sprout
2•sbt567•20m ago•0 comments

I asked a chatbot what it thought of HN (reader discretion strongly advised)

https://viewreplyy.com/share/galactico/7n5s9c0
2•galactic_atom•22m ago•0 comments

Self-hosted PM app: multi-view projections (boards, grids) + time tracking

https://eigenfocus.com/
2•vinioyama•24m ago•1 comments

SmartTube has been disabled by Google Play

https://old.reddit.com/r/ShieldAndroidTV/comments/1p6oxxe/smart_tube_has_been_disabled_by_google_...
4•eTomte•24m ago•0 comments

Ask HN: Codex vs. 5.1 for pdf table-to-JSON extraction?

2•oliver236•26m ago•0 comments

RIP David Lerner, a Mr. Fix-It of Apple Computers, Co-Founder of Tekserve

https://www.nytimes.com/2025/11/26/technology/personaltech/david-lerner-dead.html
4•johnshades•27m ago•0 comments

What Happens When You Train Pure Logic Without Knowledge: 15-Expert Moe

https://github.com/vac-architector/VAC-Memory-System/blob/main/LOGICA_MOE_STORY.md
7•ViktorKuz•30m ago•1 comments

Ancestry and the NRS: when the corporate genealogy world turns ugly

http://scottishgenes.blogspot.com/2025/09/ancestry-and-nrs-when-corporate.html
2•ilamont•31m ago•0 comments

Monorepo CI for GitHub Actions: Run the Tests You Need, Nothing More

https://mergify.com/blog/monorepo-ci-for-github-actions-run-exactly-the-tests-you-need-nothing-more
5•JulianMaurin1•32m ago•0 comments

Conformal Prediction for Compositional Data

https://www.arxiv.org/pdf/2511.18141
2•felineflock•34m ago•0 comments

The SIMD-CSV crate chose not to use simdjson tricks to parse CSV with SIMD

https://docs.rs/simd-csv/latest/simd_csv/#design-notes
9•Yomguithereal•35m ago•1 comments