frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Rune | A spec pattern for consistent AI code generation

https://github.com/vict00r99/Rune-stone
1•vict00r99•2h ago
AI coding tools generate different code every time for the same requirement. RUNE is a specification pattern that fixes this: define a function's signature, WHEN/THEN behavior rules, and test cases upfront. Give the same spec to any AI tool — the generated code has the same behavior.

It's a pattern, not a framework. Works as YAML files or Markdown sections. Any language, any AI tool, no installation.

Includes 7 skills (markdown files you load into your AI tool) for the lifecycle: create specs, validate, refine, generate tests, detect drift, reverse-engineer from code, multi-language generation.

This is the GitHub project: https://github.com/vict00r99/Rune-stone

Comments

vict00r99•1h ago
I’d really love your feedback. If you’re building with AI, try defining one real function using RUNE and compare the output across tools.
galsapir•1h ago
this seems interesting, do you have an example of a use case that you found it helped with? (Red green pattern where without RUNE, it failed)?
vict00r99•1h ago
Sure. I ran a direct comparison during development.

Without RUNE: I asked Claude to write a "validate_password" function twice in separate sessions. First time it required 1 special character and returned a bool. Second time it required 2 special characters and returned a tuple with the error message. Same prompt, same model, different behavior. I did the same with "validate_phone". In the first session it accepted dashes in the number, in the second session it rejected them. Completely different parsing logic. Now multiply that by a team where each developer uses a different AI tool.

With RUNE: I wrote specs for the same functions with explicit WHEN/THEN rules, edge cases, and expected error messages. I generated implementations in different sessions and compared them against reference implementations from weeks earlier. Same behavior every time. Not identical code, variable names and style vary, but the same contract. Same inputs produce the same outputs, same errors, same edge case handling.

What surprised me most was the spec validation step. It caught bugs before any code was written. In one case the BEHAVIOR section defined an error message with quotes around a parameter, but the TESTS section expected it without quotes. That kind of mismatch would normally show up as a flaky test in CI weeks later. The spec caught it at design time, before a single line of code existed.

That’s basically the value. Without RUNE the AI makes reasonable but inconsistent choices every time. With RUNE those choices are locked down in a spec, and the AI follows them. The spec becomes the source of truth instead of the model’s temperature.

AI Twitter's favourite lie: everyone wants to be a developer

https://www.joanwestenberg.com/ai-twitters-favourite-lie-everyone-wants-to-be-a-developer/
1•theowenyoung•23s ago•0 comments

Elvish as She Is Spoke [pdf]

https://www.elvish.org/articles/EASIS.pdf
1•BerislavLopac•36s ago•0 comments

Dutch House of Representatives advances controversial 36% tax law

https://www.tradingview.com/news/cointelegraph:e4ef95715094b:0-dutch-house-of-representatives-adv...
1•janandonly•1m ago•0 comments

Instruction decoding in the Intel 8087 floating-point chip

https://www.righto.com/2026/02/8087-instruction-decoding.html
1•pwg•4m ago•0 comments

Show HN: Describe your Discord server in one sentence – AI builds it in 60s

https://buildmydiscord.com/
1•RobTheFrog•5m ago•0 comments

Gamma Function: Visualization with complex arguments

https://vanilla-gamma-graph.netlify.app/
1•cpuXguy•6m ago•1 comments

Secure Port Forwarding Without Exposing Internal Services

2•brintha•7m ago•0 comments

World's Only Pencil Sharpener Museum

https://www.bostonglobe.com/2026/02/13/lifestyle/pencil-sharpener-museum-ohio/
3•bookofjoe•7m ago•1 comments

OpenAI sidesteps Nvidia with unusually fast coding model on plate-sized chips

https://arstechnica.com/ai/2026/02/openai-sidesteps-nvidia-with-unusually-fast-coding-model-on-pl...
2•sea-gold•7m ago•0 comments

I love validating E2E while vibing in my code editor, possible? Hell Yes

https://sebringj.github.io/autonomo/
2•sebringj•8m ago•0 comments

What Is OTLP and How It Works Behind the Scenes

https://signoz.io/blog/what-is-otlp/
2•dhruv_ahuja•9m ago•0 comments

GitGen: A static Git repository website generator

https://cybrkyd.com/post/gitgen-a-static-git-repository-website-generator/
2•londonanon•10m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
2•robotbot•10m ago•0 comments

Dinosaur National Monument Construction Work Turns Up New Fossils

https://www.smithsonianmag.com/smart-news/dinosaur-national-monument-construction-work-turns-up-n...
2•bryanrasmussen•11m ago•1 comments

First Proof

https://1stproof.org/
1•cod1r•12m ago•0 comments

Public Universal Friend

https://en.wikipedia.org/wiki/Public_Universal_Friend
2•helloplanets•12m ago•0 comments

It was 'Eisner's misadventure.' 25 years on, DCA is still evolving

https://www.sfgate.com/disneyland/article/disneyland-california-adventure-history-21330033.php
1•gmays•12m ago•0 comments

I built an AI that runs offline on Android (no cloud)

https://play.google.com/store/apps/details?id=io.cyberfly.edgedox&hl=en_US
1•cyberfly-io•13m ago•1 comments

Show HN: AV1 encoder in 66 KB of safe Rust WASM

https://rafaelcaricio.github.io/wav1c_demo/
1•rjcaricio•13m ago•0 comments

How to Make Living as an Artist

https://maxim.usindic.us/2026/02/12/how-to-make-a-living-as-an-artist/
1•blenderob•15m ago•0 comments

A header-only C vector database library

https://github.com/abdimoallim/vdb
2•abdimoalim•16m ago•0 comments

Implications to climate change and decline of Bronze Age Harappan civilization

https://www.nature.com/articles/srep26555
1•thunderbong•16m ago•0 comments

Base barrier cells provide compartmentalization of choroid plexus, brain and CSF

https://www.nature.com/articles/s41593-025-02188-7
2•bookofjoe•18m ago•0 comments

Show HN: OpenCode-finance – prompt a ticker, get a structured PDF analyst report

https://github.com/bilalbayram/opencode-finance
1•bilalbayram•18m ago•0 comments

Show HN: Wa Me It All – WhatsApp Chat Without Spamming Your Contacts

1•franze•20m ago•0 comments

Show HN: MirrAI – I built a Virtual Try-On app to fix online shopping(Open Beta)

https://play.google.com/store/apps/details?id=com.moraalink.mirrai&hl=en
1•MohammadRMZ•20m ago•0 comments

Why AI agents need a probation period

https://blog.geta.team/why-ai-agents-need-a-probation-period-just-like-human-employees/
1•js4ever•20m ago•1 comments

Strategic Home Upgrades to Slash Your Insurance Premiums in 2026

https://suretyinsights.com/blog/11-home-upgrades-that-will-actually-lower-your-insurance-premium-...
2•engelo_b•21m ago•0 comments

Three Inverse Laws of AI and Robotics

https://susam.net/inverse-laws-of-robotics.html
1•blenderob•23m ago•0 comments

uBlock filter list to hide all YouTube Shorts

https://github.com/i5heu/ublock-hide-yt-shorts/
3•i5heu•24m ago•0 comments