NodFirst: make your AI coding agent wait for your yes

2026-11-28来源 dev.toEnglish
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.

原文:https://www.a8q9.cn/en/article/nodfirst-make-your-ai-coding-agent-wait-for-your-yes-7fe496.html

相关文章