frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Specsmaxxing – On overcoming AI psychosis, and why I write specs in YAML

https://acai.sh/blog/specsmaxxing
47•brendanmc6•1h ago

Comments

brendanmc6•1h ago
Author here, if you don't want to read all that, I'll post one excerpt that I think sums it up nicely:

> My point is, the spec must live somewhere, even if you don’t write it down. The spec is what you want the software to be. It often exists only in your head or in conversations. You and your team and your business will always care what the spec says, and that’s never going to change. So you’re better off writing it down now! And I think that a plain old list of acceptance criteria is a good place to start. (That’s really all that `feature.yaml` is.)

gnat•20m ago
Nice! Your spec-maxxing is very resonant. I've been doing working with explicit requirements: elicit them from conversation with me or introspecting another piece of software; one-shot from them; and keep them up-to-date as I do the "old man shouts at Claude" iterations after whatever one-shotting came up with.

Unlike you, I wish for the LLM to do as much of the work as possible -- but "as possible" is doing a lot of work in that sentence. I'm still trying to get clear on exactly where I am needed and where Opus and iterations will get there eventually.

It has really challenged me to get clearer on what a requirement is vs a constraint (e.g., "you don't get to reinvent the database schema, we're building part of a larger system"). And I still battle with when and how to specify UI behaviours: so much UI is implicit, and it seems quite daunting to have to specify so much to get it working. I have new respect for whoever wrote the undoubtedly bajillion tests for Flutter and other UI toolkits.

gnat•9m ago
Forgot to add: I get several benefits from doing this.

1. Specifications that live outside the code. We have a lot of code for which "what should this do?" is a subjective answer, because "what was this written to do?" is either oral legend or lost in time. As future Claude sessions add new features, this is how Claude can remember what was intentional in the existing code and what were accidents of implementation. And they're useful for documenters, support, etc.

2. Specifications that stay up to date as code is written. No spec survives first contact with the enemy (implementation in the real world). "Huh, there are TWO statuses for Missing orders, but we wrote this assuming just one. How do we display them? Which are we setting or is it configurable?" etc. Implementer finds things the specifier got wrong about reality, things the specifier missed that need to be specified/decided, and testing finds what they both missed.

I have a colleague working on saving architecture decisions, and his description of it feels like a higher-abstraction version of my saving and maintaining requirements.

slopinthebag•9m ago
I actually read it all since it did not contain any hints of being AI generated (although I wouldn't be surprised to learn you did use AI to write it), so thank you for that. It's kind of crazy how I now have the default expectation that posts posted here are AI slop with little thought or care put in.

I am also stealing the idea of talking to LLMs as if it's an email. So funny, we need to be joymaxxing a bit more I think :)

up-n-atom•1h ago
the token usage isn’t sustainable. formal english is a barrier but requirement for specification. brevity is the language of money and that’s the premise of management using ai.

fyi language alone can’t define/describe requirements which is why UML existed.

ako•46m ago
I think uml exists to help humans understand and communicate specifications, not because language alone is insufficient.
null_ptr1•9m ago
I mean, if you can't agree on what UML is, then what hope do you have to agree on what the spec says?
jstanley•35m ago
Natural language is a fully general system and can define and describe everything.

You could deterministically process any UML diagram into a prose equivalent.

And in fact you couldn't do the other way around (any prose -> UML) because UML is less powerful than natural language and actually can't express everything that natural language can.

wismwasm•35m ago
Try openspec: https://github.com/Fission-AI/OpenSpec/blob/main/docs/gettin...
arikrahman•13m ago
That was my initial thought when reading the headline but the author states they didn't know it existed before doing this project and critiques it.
wesselbindt•33m ago
I'm still confused as to why folks don't just write executable specs.
carlbarrdahl•21m ago
Could you expand on this?
booi•20m ago
code
arikrahman•14m ago
Literate programming would provide specs and code instead of working backwards from hard coded functions to figure out specs.
fudgeonastick•15m ago
If you're confused, and have tried Opus for coding, I'm keen to hear what problems or workflows it's not good at.

If you're genuinely confused, and haven't tried Opus for coding, then it's not surprising you're confused!

It is also okay for you to just not like the idea of LLMs for coding (but say that!).

oytis•2m ago
That's what the article is about - overcoming problems with AI cooding tools using specs in Yaml. If we've got that far, it might be better to write specs in a proper programming language instead and skip the AI layer altogether
cenamus•14m ago
So basically tests?
arikrahman•32m ago
I use OpenSpec for my spec management, and I scrolled down to the comparison. The gripe seems to be with a semantic difference. Specs describing a current system is the basis for AS/IS Gap Analysis.

Also, I mainly pursue these tools so that I can have AI accelerate this process and broker an agreement after negotiating specs with the agent.

energy123•29m ago
I can see one benefit to a structured yaml for specs like the OP is doing: it gives you more control over what you include in the context window. But coming up with a good schema that doesn't handicap you or add cognitive burden, compared to the freeform flexibility of md/txt, is a challenge.
arikrahman•17m ago
If the selling point is a new file format for spec management, it would be more interesting to provide an offering with org-mode. The author admits they were unaware of other pre-existing solutions before this project so I am providing context to their critique of OpenSpec.
colinmarc•22m ago
Wow - I love programming in YAML! You know what would make this really fun? Sprinkle in some Jinja. Then we'll be cooking with gas.
photios•16m ago
Dreaming about ` | nindent 12` in my specs! :D
augment_me•21m ago
Completely subjective take, but I feel like 95% of these "tools" that are prompt-engineering inventions created by the authors with their bias and to suit their needs don't have anything supporting them besides the authors' subjective experience.

I have seen the same idea with processes, pipelines, lists, bullet points, jsons, yamls, trees, prioritization queues all for LLM context and instruction alignment. It's like the authors take the structure they are familiar with, and go 100% in on it until it provides value for them and then they think it's the best thing since sliced bread.

I would like, for once, to see some kind of exploration/abalation against other methods. Or even better, a tool that uses your data to figure out your personal bias and structure preference for writing specs, so that you can have a way of providing yourself value.

photios•15m ago
Yesterday I heard about lat.md [1] which seems to have similar ideas about annotating code with spec refs. I now need to try them both.

[1] https://www.lat.md/

arikrahman•11m ago
Agents.md actually scales and outperforms alternatives so I would be skeptical about overcomplicating the proces https://vercel.com/blog/agents-md-outperforms-skills-in-our-...
jwpapi•7m ago
And once you’ve written all these specs you realize it became so slow that it’s faster to do it yourself in editor

Show HN: Editor, Browser, Terminal, Mail, Agents. AI Sharing Context

https://github.com/raiyanyahya/kit
1•RaiyanYahya•1m ago•0 comments

PocketOS AI Fiasco – Lesson in Automation Access

https://onlytech.boo/incident/pocketos-ai-fiasco-lesson-in-automation-access-mokdojol
1•vednig•3m ago•0 comments

How to Test AI Agents When They Never Give the Same Answer Twice

https://adlrocha.substack.com/p/adlrocha-the-eval-problem-how-to
1•adlrocha•10m ago•0 comments

Quickheap: The fastest comparison-based heap?

https://curiouscoding.nl/posts/quickheap/
1•Peter5•11m ago•0 comments

Claude Code and Obsidian – build a second brain <3

https://canatak.substack.com/p/i-dont-need-to-know-everything-i
1•cango35•11m ago•0 comments

What's New in Git 2.54.0?

https://about.gitlab.com/blog/whats-new-in-git-2-54-0/
1•chmaynard•18m ago•0 comments

The Last Principle We Learn to Use

https://gpt.gekko.de/the-last-principle-we-learn-to-use/
1•ekadagami•22m ago•0 comments

Show HN: Enoch – Control Plane for Autonomous AI Research

https://github.com/alias8818/enoch-agentic-research-system
2•aliasocracy•26m ago•0 comments

Grok 'drive an iron nail through the mirror while reciting Psalm 91 backwards'

https://www.theguardian.com/technology/2026/apr/24/musk-grok-x-ai-researchers-delusional-advice-i...
2•iamflimflam1•31m ago•1 comments

Revived Mozilla's BrowserQuest game on popular demand play online for free

https://threej.in/games/browserquest/index.html
1•cryptpal•32m ago•0 comments

Why Did Huawei Build Its Own Programming Language? [video]

https://www.youtube.com/watch?v=ujpl5_TmAaE
2•melchizedek6809•33m ago•0 comments

Why TUIs Are Back

https://wiki.alcidesfonseca.com/blog/why-tuis-are-back/
1•vinhnx•36m ago•0 comments

BTC Pulse – 4-factor composite model · Bitcoin Real-time macro signals

https://btcpulse.vercel.app/
1•tvvocold•37m ago•0 comments

Online Signature Generator

https://www.online-unterschriftgenerator.de/
1•Hamaq•37m ago•0 comments

Who Killed Spirit Airlines?

https://www.thebignewsletter.com/p/who-killed-spirit-airlines
1•chmaynard•38m ago•0 comments

Word Clouds Considered Harmful (2011)

https://jacobharr.is/published/word-clouds
1•Tomte•39m ago•0 comments

Show HN: A modern Git based age-encrypted secrets manager for teams

https://github.com/sayanarijit/cottage
1•sayanarijit•39m ago•0 comments

Local-first Kubernetes UI in a single Go binary

https://github.com/skyhook-io/radar
5•nadaverell•40m ago•2 comments

Executable installer will stop being released with Python 3.16

https://www.python.org/downloads/release/pymanager-261/
2•ankitg12•46m ago•0 comments

Learning Pseudorandom Numbers with Transformers

https://arxiv.org/abs/2510.26792
1•pizza•50m ago•0 comments

Cajal – Local AI that writes peer-reviewed papers with simulated peer review

https://huggingface.co/Agnuxo/CAJAL-4B-P2PCLAW
1•Frank1976•55m ago•0 comments

Quantum computers will break RSA-2048 by February 2032

https://gagliardoni.net/#20260503_rsa_broken_2032
1•tomgag•56m ago•0 comments

Has anyone tried using Hyperframes?

https://github.com/heygen-com/hyperframes
1•nastrofa•57m ago•0 comments

I Don't Vibe Code

https://jacobharr.is/personal/i-dont-vibe-code
1•birdculture•57m ago•0 comments

A Wandering Mind Is an Unhappy One (2010)

https://www.scientificamerican.com/article/a-wandering-mind-is-an-un/
1•the-mitr•1h ago•0 comments

The Human Line Project: Documenting AI Chatbot Harm

https://www.thehumanlineproject.org/
2•thinkingemote•1h ago•0 comments

Show HN: I made a website for couples in a long distance relationship

https://www.couples-questions.com
2•mahfouz22•1h ago•0 comments

AMD Readies Full Open-Source HDMI 2.1 Support for Linux

https://www.techpowerup.com/348723/amd-readies-full-open-source-hdmi-2-1-support-for-linux
3•SockThief•1h ago•0 comments

Context Mode v1.0.0

https://context-mode.mksg.lu/
2•ankitg12•1h ago•1 comments

Musk vs. Altman week 1: Elon Musk says he was duped, warns AI could kill us all

https://www.technologyreview.com/2026/05/01/1136800/musk-v-altman-week-1-musk-says-he-was-duped-w...
2•joozio•1h ago•0 comments