r/SpecDrivenDevelopment • • 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:

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.

19 Upvotes

20 comments sorted by

1

u/Mission-Elk7884 1d ago

Have an agent fill in the spec for you!

1

u/Cold_Can213 1d ago

But you wouldn't be able to implement every decision you want to make from your heart. It's just some slop. Verifying a big document also takes time. Control over minute details can be obtained with my method where I just define the compact code like instructions. That also gives you the feeling of coding.

1

u/JustAnotherDiamond 1d ago

"Verifying a big document also takes time". If you want to avoid slop, you have to put in the effort. AI takes over the coding, but it doesn't take over the thinking. Either you want to do it yourself and have total control, or let AI do it. In the later case, don't be surprised if it makes a couple of decisions that you don't agree with. On the other hand, if you plan properly, then the plan will list all decisions nicely that AI made or implied. Read those and change whatever you disagree with.

1

u/Fight_4ever 1d ago

Control over minute decisions comes in two ways in spec driven dev. 1. Iterations 2. grill-me skills

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/Cold_Can213 1d ago edited 13h ago

I actually made HIT a C-inspired language rather than keeping chat as the primary interface.

https://github.com/RajaShylesh112/hit-lang

The idea is that writing intentions like code encourages developers to think critically about each decision, rather than letting AI generate a spec from a conversation.

AI provides the knowledge and possibilities; the developer reasons, combines and decides.

I'm borrowing development infrastructure from OpenSpec, not its approach to forming decisions.

1

u/meshifthenelse 1d ago edited 1d ago

So you created a weaker Python? What's the point with that? Have you missed the fact that noone is going to sit and program nowadays?

Your language has obvious issues. E.g. calling a function as feature, and then using a verb. What does even Speed > Customisability even mean? If I can't understand it why would an LLM?

1

u/Cold_Can213 1d ago edited 1d ago

Noone's going to code nowadays, but what I formed was just a extention of natural language. I wanted to give a structure to prompts as a language instead of using templates. Just felt it would be more interesting to see prompts as a language. If its more readable than traditional prompts, It would mean more people would program their intent in this way.

Goals are the objectives, Flow are like modules, Features are implementation details

I added other syntax like speed > customisability to denote priority.

Shortcuts like this reduce writing time and finally a compiler, instructions file decodes the syntax. Does that make sense?

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/Cold_Can213 1d ago

I agree with your definition! I am in search of a proper way of spec-driven development that is not too detailed yet not too vague. My goal is to increase the creative effort of the developer that automatically means more accuracy wrt their goals. So, we can stop relying on AI too much, for specs too.

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/Cold_Can213 1d ago edited 13h ago

Appreciate the feedback! My focus is on retaining control from the beginning, letting human intention expand into the entire application rather than reviewing AI-led decisions afterwards.

I've implemented verification through the "expect" keyword, focusing more on alignment with human expectations since AI is already fairly reliable at low-level implementation.

Here's the repo: https://github.com/Rajashylesh112/hit-lang

Would love to know if you'd be interested in contributing!

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/Cold_Can213 19h ago

I haven't tried to build anything with it yet. I am learning the high level concepts behind my target project i am about to build with it, Since my approach needs proper knowledge of the goals. For now, I can say its time taking. Its quite effective for learning. I'll get back to you once I find issues.

1

u/DominusFL 1d ago

Check out my approach, https://keel.to (free and open source)

1

u/doubov 1d ago

Can you talk about what you've built with it and how well it works for larger/long term projects (if you have any)?

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.