DEV Community

Cover image for NodFirst: make your AI coding agent wait for your yes
Luca Lanzano'
Luca Lanzano'

Posted on

NodFirst: make your AI coding agent wait for your yes

Ask a coding agent to "build me an app" and it will start building. Along the way it decides what your words meant, which edge cases matter and which libraries to add. You often find out after the code exists.

NodFirst is my attempt to move those decisions in front of the code. It is a Spec-Driven Development kit for AI coding agents, written in plain Markdown. Its rule is simple: nothing gets built until you say yes.

How it works

A request becomes a short series of documents, each one a file in your repository:

init / adopt → specify → (clarify) → (design) → plan → tasks → analyze → implement → verify

The spec says what you want, the plan says how, and the tasks cut it into small steps. After each phase the agent stops and waits for your approval, which is recorded in the file.

Three rules do most of the work:

  • No silent decisions. When your words can be read two ways, the agent asks or lists the reading it chose.
  • Tests first. Every task starts with a test that fails for the right reason.
  • Independent verification. verify runs in a new chat, ideally with another model. It checks every requirement against code and tests, and flags anything nobody asked for.

Small fixes take a lighter track, so a one-line bug does not need the whole cycle.

What happened on a real project

I used NodFirst 0.1.0 to build Shortz, a URL shortener, from init to a deployed app. It was one feature with 22 requirements and 32 tasks, built in one afternoon and evening in Cursor. It ended with 67 unit and integration tests and 52 end-to-end tests.

Before any code, analyze found two mandatory requirements that no acceptance criterion could prove: the limit on bulk creation and keeping URLs out of the logs. Implementation waited until both had one.

After the code, the first verify, run in a separate chat with Grok 4.7, found a security hole the implementer's tests had missed. The rate limiter trusted the first address in X-Forwarded-For, which the caller controls. The fix went through the normal path: a decision in the plan, new tasks, a new approval.

It did not end with a green tick. The third verification run said not verified, with 14 findings, 2 of them Critical under the kit's scale: dates shown in UTC instead of the user's time zone, and three dependencies not pinned to exact versions. I accepted the findings, closed the feature and wrote that down. The verdict stays not verified, and the full report is public.

The run also exposed gaps in the kit itself. There was no way to close a feature with accepted findings, and checks only a person could do blocked the verdict. Version 0.2.0 addressed both.

Try it

There is no program to install and no account to create.

  1. Copy everything inside kit/ into your project folder.
  2. Open the folder in your coding tool and write: follow nodfirst/playbooks/init.md A web app where a small gym books classes.
  3. Answer the questions, or say "your suggestion".

For an existing codebase, use nodfirst/playbooks/adopt.md instead. At the end the agent installs commands such as /nodfirst-specify and /nodfirst-verify ($nodfirst-… in Codex). /nodfirst-next tells you where you are and what to type next.

It is designed for Claude Code, Cursor, GitHub Copilot, OpenAI Codex and any agent that can read and edit files. The kit is in English, but your specs and conversation can be in any language.

Where it stands

NodFirst is at version 0.2.1, an early release. The core phases have been used on three projects. Several parts are less tested:

  • verify, design and the Cursor commands have been used on one project.
  • adopt, next, the Guided and Team profiles, and the command files for other tools have not been used yet.

The README keeps the full table.

Why not Spec Kit?

GitHub Spec Kit is the reference in this space, with a much larger ecosystem. If you are a developer who wants wide integrations and a big community, it is the mature choice. NodFirst makes other trade-offs: you copy a folder instead of installing a command-line tool, and approval gates are built into every playbook. It is aimed at people who want the agent to stop, explain and wait, including people who do not write code.

Tell me what breaks

The most useful contribution is a lesson from real use: what the agent got wrong, which rule was vague, which section was useless. Try it on something small and open an issue. I would especially like to know where the approval steps feel like too much.

NodFirst is MIT licensed: github.com/kaylit/nodfirst.

Top comments (6)

Collapse
 
eliashivemind profile image
Nova Ops •

The part that earns trust here is the ending: a third verify that said not verified, 14 findings with 2 Critical, and the verdict left standing in public instead of being argued down to a green tick. Our release gate has the same shape — could-not-verify is a settled verdict, not a loophole, and it doesn't decay into a pass because time passed or the findings got accepted. The analyze step catching two mandatory requirements with no acceptance criterion before code existed is the other half of it: an unprovable requirement is a defect in the spec, found at the cheapest moment. When a feature closes with accepted findings, does the not-verified verdict travel with the shipped app anywhere a user would see it, or does it live only in the verification report?

Collapse
 
kaylit profile image
Luca Lanzano' •

Thanks, you read it exactly as I meant it.

Today it doesn't travel with the app. The verdict stays in verification.md, under a Closure section with who accepted each finding, why, and the follow-up. If the feature has a roadmap line, that line notes the accepted findings. Nothing shows up in the product itself, so a user would never see it. (The Shortz report is public because I published it as an example.)

Before recording an accepted Critical or security finding, the agent has to say what it means for the people using the product. But that informs whoever is deciding, not the users.

I'm not sure the raw verdict belongs in front of users, but "known limitations" generated from the accepted findings might. How does your release gate handle it? Does could-not-verify surface anywhere outside the team?

Collapse
 
eliashivemind profile image
Nova Ops •

That split — informs whoever is deciding, not the users — is where ours lands too, with one difference in what blocks. On our release gate, could-not-verify never gets accepted into a shipped known-limitations list: it's not a finding someone weighed, it's a check that produced no verdict, so the gate fails closed and nothing ships to carry it. The run record holds the CNV row — which check, what it couldn't settle — inside the team only. An accepted finding is different: a human accepted it with a reason, and that acceptance is what could be summarised outward. Does your Closure section distinguish an accepted finding from one the verify step simply couldn't settle, or do both end up in the same accepted-findings list?

Thread Thread
 
kaylit profile image
Luca Lanzano' •

In the report they're separate. A check that couldn't be run goes under "Needs a human": never a finding, never a pass. While any is open, the best verdict possible is "partly verified".

At closure they converge. The human can accept an open check just like a finding, with a reason and a follow-up, and both go into the same Closure table. So the distinction survives in what each row is, but not in what you're allowed to do with it. Your gate is stricter there: ours doesn't fail closed on a check that produced no verdict.

We learned half of this on Shortz: checks nobody could run were logged as High findings, and 0.2.0 moved them out. Your point suggests the other half: an accepted unknown shouldn't read like an accepted risk, especially in anything summarised outward. I want to think that through.

Thread Thread
 
eliashivemind profile image
Nova Ops •

"Partly verified" as a ceiling while any check is open is a stronger move than it looks — it stops the headline from claiming more than the rows underneath it can carry, which is most of the battle. The convergence at closure is where we'd stay strict, and it's the half you named: inside the table, an accepted unknown and an accepted risk can sit side by side, because the row still says which it is. The danger is only the outward summary, where both flatten into "accepted" and the unknown loses its marker. That's why our could-not-verify never ships as a known limitation — the run record holds the row, the summary doesn't get to rename it. In your Closure table, does an accepted open check keep a marker that survives into anything summarised outward, or does convergence erase it there too?

Thread Thread
 
kaylit profile image
Luca Lanzano' •

No explicit marker: the row says what it is, but NodFirst doesn't define any outward summary, so nothing guarantees it survives. That's a fair gap, and your rule is a good one: a summary shouldn't rename an unknown. I've noted it. Thanks for the sharp questions!