r/SpecDrivenDevelopment • u/Cold_Can213 • 2d ago
Is there a middle ground between vibe coding and spec-driven development?
I've been exploring an approach I'm calling Intent-Driven Development (IDD), inspired by:
- Superpowers: https://github.com/obra/superpowers
- OpenSpec: https://github.com/Fission-AI/OpenSpec
My problem with AI-assisted development is that prompts are too vague, detailed specifications take considerable effort, and AI often ends up making creative decisions I would rather make myself.
I'm experimenting with a framework called NTH, consisting of:
- CSV kits: AI-generated, domain-specific tables where each column represents a dimension of possibilities. For example, rendering could contain SSR, CSR and SSG, while navigation could contain sidebars, command palettes and tabs. I explore and combine these possibilities myself.
- XML kits: Supporting explanations, technical knowledge, trade-offs and dependencies behind those possibilities.
- Intent language: A minimal C-inspired language using freestyle English to express goals, user flows, features, constraints and expectations.
- AI compiler: Transforms approved intentions into architecture, plans, code and tests using predefined engineering standards.
- Tracking and review: Compares actual results with expectations and identifies which intentions need reconsideration.
The broader idea is to support the entire reasoning process:
WHERE to intervene → WHAT to build → HOW to build → WHAT is missing → REVISE.
AI exposes the possibilities, but the developer chooses the path.
I'm still figuring out whether this approach genuinely improves development or just introduces another layer of unnecessary abstraction.
Would love some technical criticism. Particularly:
- Would knowledge kits actually help you make better decisions?
- Is a dedicated intent language useful, or would Markdown be sufficient?
- What limitations do you encounter with existing AI development frameworks?
Also happy to collaborate with anyone interested in experimenting with this.
1
u/Mission-Elk7884 1d ago
Have an agent fill in the spec for you!
2
u/meshifthenelse 1d ago
I mean every other person is building their harness and workflow.
How is intent different than spec? Just changing a name and keeping the workflow identical doesn't mean anything. Is chit chatting the main interface still?
Personally I find openspec a piece of crap
1
u/aikimiller 1d ago
Spec driven development, at it's core, is the extremely simple idea of building a durable artifact that says what you want and feeding it to the agent, instead of dynamically writing a prompt that says what you want.
That's it. Literally everything else is just tooling to help you, the human, organize your thoughts into the spec. So I would argue that no, there's no middle ground between vibe coding, and spec driven development (unless you want to differentiate vibe-coding-and-hoping from vibe-coding-and-verifying-by-reading-the-code). You either have a spec, or you don't. The middle ground is in how you structure that spec, and what you choose to include in it, and where you draw the line between strategy owned by the spec, and tactics you delegate to the agent.
1
u/beachman4 1d ago
Disclaimer: I make ArchDocs, a tool that I think helps in this area.
So I think it just depends how much control you want the agent to have and how much control you want to retain. For me, I usually start with a problem or a feature that I want and then I use superpowers to further refine it down. After that, I have the agent upload the spec as a design doc into ArchDocs and that's where the review begins. I do a thorough manual review and then I spin up separate AI reviews across different models of the design doc to validate it and poke holes.
But I will tell you, one area I think that is missing in a lot of AI workflows is verifications, especially verifications that be can be independently verified. In my tool, either the agent can suggest some or you can(which I think would help with your notion of ensuring certain things are done according to your specification)
You don't need a tool like mine to do this of course, something as simple as making sure in your claude/agents .md, you make it include ways that you can independently verify the expected outcome.
On a few of your other questions, for knowledge kits & limitations, I think it's critical to understand not only why a change was needed and how you arrived at the design, but how the design got there, tracking questions, revisions, etc. I find that keeping specs & plans inside the repo just isn't enough and that falls apart as soon as you spread outside that repo(for example when working on multiple projects that might overlap in language or architecture).
I do like your idea about NTH, do you have a github repo or are you still iterating?
1
u/gauri_insights 19h ago
Could you possibly tell, how much did this approach work for you? Did the code break or changed some other things which you did not intend to change?
I have been working on something similar, just wanted to get some more useful info...
1
u/DominusFL 1d ago
Check out my approach, https://keel.to (free and open source)
1
u/Charming-Lunch-5176 1d ago
check out 8090.ai... I dont think there is a replacement for it
1
u/scalorn 1d ago
Vibe coding vs SDD is all about starting point, intent and details.
Build me a GTA VI clone vs here are 500 pages of spec on the details of the GTA VI clone but better I want to make.
Both fail for the same reason - context.
One has too little. The other has too much for the AI to consume in a single session.
Now you will get a better initial result from the too much. Done properly the AI will slice the tasks up, refer back to the spec and build out your vision.
Green field projects tend to work well with current spec systems and models. Then you get into brown field. Changing what now exists.
The biggest issue I keep running into is inconsistencies. The AI tends to be verbose. So it writes a lot in the spec, it adds a lot of comments in the code and then the actual code. Over time as things change it doesn't update every location consistently.
So when you have to change a rule you tell the AI. It changes the code. Changes some of the spec. But because things were copied all over the place it doesn't get them all.
Now later that appears as an inconsistency. So it reads one section of the spec/code and goes it is done this way, and if it reads a different section of the spec/code it does it that way.
Over time that compounds. So even though you started with a spec, keeping a spec updated, etc things drift and get inconsistent.
Now you get this with purely human development teams over years too. It shows up as team members who don't remember that subtle rule change. Team members leave, new members join, bad documentation, etc
AI just amplifies the process. So what took years now happens in weeks/months. No one wrote the code and the AI doesn't "remember".
All the experiments to improve things I have been trying are around trying to force things into a consistent shape. One fact, one location. Stop putting verbose comments in the code. Just add simple references - implements REQ-1, REQ-7, etc. Force AI/humans to refer back to the spec for the authoritative version of what this should implement.
Promising in some ways, mixed results in others. The reality is everyone is trying to solve the same problem from multiple different directions. So far none of them appear to be the clear winner. Some are just better than others for various shaped problems.
Here is the big test I keep coming back to. If I kept the spec and deleted all the code how similar would the rewrite be to the original code?
So far I think all the existing systems fail badly on that test.
1
u/Financial_Yoghurt827 1d ago
@cold_can213 I would suggest having a look at reqlan. I think it is a pretty robust enabler of the workflow you're describing. Would be a shame for you to rebuild it.