Open source · Spec-driven development with AI agents

agentic-spec-kit. AI coding agents under gates, and what one real change showed.

An open-source, pre-alpha toolkit for spec-driven development with AI agents: agents draft, build and verify, and a named person approves at every gate. I tried it on one real change to my own healthcare project. Two reviewing agents found what the author and every automated check had missed. Then I merged the change without the gate reviews, and the kit did not notice.

29
findings from two reviewing agents in their first round, on a change its author had already handed off
2 of 15
things to act on that the kit’s own checks reported; the other thirteen were found by reading
0
gates of the real change with a recorded decision

Status: open source (MIT), pre-alpha, used once. Unlike the reference designs on this site, this is working code, but it has only ever been used on one change to my own open-source project. It has never been run against live GitHub reviews, a live tracker or a chat service. Its own tests run in a pipeline; the reference project has no pipeline running. Nothing here is production use, client work or a compliance claim. The kit and the reference change were written by an AI coding agent working under my direction, phase by phase; I approved at the stops and did the pushes and merges myself. Every number below is from the repository’s own reports. Try it: the interactive walkthrough follows the one real change gate by gate.

The problem

The agent that wrote the change handed it off as finished. Its tests were green. Then two other agents, each starting from a clean context, read the same change and found fifteen things to act on: in the code, in the plan, and in the spec I had already approved.

That is the problem in one paragraph. A coding agent reports “done” the same way whether or not the work is right. On a change to the audit trail of a healthcare system, “the agent said so” is not something I can stand behind.

Spec-driven development gives the work a shape an agent can be held to: a constitution, a spec, a plan, tasks, then code. GitHub’s Spec Kit provides that shape. The question I wanted answered on top of it is an architect’s question. Who decided each step was good enough, on what evidence, and can anyone show it afterwards?

agentic-spec-kit is my answer, built on Spec Kit around one rule.

Agents draft, build and verify. Named people approve at every gate. Nothing advances on an agent’s say-so.

AGENTS · DRAFT, BUILD AND VERIFY · NEVER APPROVE OR MERGEGATES · EACH ONE PASSED ONLY BY A NAMED PERSON'S PULL-REQUEST REVIEWTHE RECORD · 105 CHECKS, EACH WITH A PASSING AND A FAILING FIXTUREPEOPLE · THE ONLY WAY THROUGH A GATESpec Authorspec · clarificationsArchitect · Impact Analystplan · impact reportTest Agent · Implementerstests first · then codeSecurity reviewernew session · fixed inputsIndependent Verifiernew session · own seedsONE EVIDENCE BUNDLE PER GATE, HASHEDG0constitutionG1specG2clarified specG3planG4tasksG5implementationG6verificationG7releaseSystem maptouches · owners · impactTrace · whyone line back to its principleHash-chained audit logan edited entry is detectedDecision recordsmirrored from reviewsNever a decisionchat · comment · email · an agent's wordRoles and approversLite: any one · Standard, Regulated: every rolePull-request reviewgate G3 approve sha256:…PRE-ALPHA · used once, on one real change · never run against live GitHub reviews, a tracker or a chat service
Agents produce the evidence and never approve or merge. Each gate takes one hashed evidence bundle and is passed only by a named person’s pull-request review. The system map, the trace, the audit log and the decision records are what the 105 checks read.

What the kit is

agentic-spec-kit is six extensions to Spec Kit, written in Python, MIT-licensed and pinned to one upstream release. Four ideas carry it.

  • Gates. Eight of them, G0 to G7: constitution, spec, clarified spec, plan, tasks, implementation, verification, release. Each names the roles that must approve. A gate is passed by a pull-request review containing a line the kit prints, which ends in a hash of the evidence. The hash binds the decision to exactly what was reviewed. A reply in chat, a comment, an email or a statement by an agent never counts.
  • A change is a change to a system. A system map names the services, data stores, contracts and shared components, and who owns each. Every spec declares what it touches. Impact analysis walks the map and adds those owners as approvers. Nobody chooses them.
  • Agents that check each other. Sixteen agents, described once and rendered for Claude Code, GitHub Copilot and a sequential mode. The author of a change is never its reviewer or its verifier, and the verifier starts from a new session with a fixed list of what it may read.
  • Checks that are shown to fail. 105 checks, each shipped with one fixture it passes and one it fails. The self-test runs every check against its broken fixture and expects a failure.

Three profiles set how much of this a team takes on. Lite keeps three gates for a change and lets any one listed role approve. Standard and Regulated keep seven and need every listed role.

One real change

A kit like this is easy to demonstrate on fixtures. I wanted to know what it does on real code, so I pointed it at my own open-source project, HealthQCopilot, and at a list of findings about it. The agent verified the findings, drafted a constitution and wrote 25 specs for the 27 findings.

One of them went all the way to code. Finding C4: in the audit record of requests for patient data, the user field held the same word for everyone. The change makes the record name the identity the service actually authenticated, and it moves the audit step to sit directly after authentication in nine services. Fourteen files, 80 tests. Neither repository holds real patient data.

The run went like this. An orchestrator made six work items. A backend implementer and a test agent did the first four. Then two agents that had not written the change were each started in a new session, with a list of what they could read and none of the author’s notes: a security reviewer and an independent verifier. One rework round followed, then a second round of review in which both accepted.

Two caveats are in the record itself, and they belong here too. One model played every agent: the author and the reviewers were separated by session and by what they were given, not by model. And the change was written before the run was opened and then recorded task by task, so one session played both implementer and test agent, and the rule that tests come first was not kept.

What the two reviewers found

This is the part I would show an engineering leader first.

The authoring agent had handed its work off, and its tests were green. They had run in a stand-in project, because the package registry could not be reached from where the change was written, and every evidence file said so. Then the two reviewers made 29 findings in their first round. They come to fifteen things to act on.

  • Four defects in the change or its tests. The subject could be read from an identity that was not authenticated. The log lines written after the pipeline named no user, so the only user on them came from the log scope, which a request header can set. No test looked at the user in the event or in a log line, and three “rejected token” cases took the no-token path. The check on registration order could be passed by a tenth service in the old order.
  • Four wrong statements in the plan’s documents, all written by the author: a privacy impact that was wrong about who can read the identifier, a threat marked mitigated where it is not, rollout signals that would have missed the likely failures, and a claimed join that does not hold.
  • Seven problems in the spec I had already approved. One requirement says more than the services can do, because the gateway refuses a caller with no token first and audits nothing.

The kit’s checks reported two of the fifteen. The other thirteen were found by an agent reading the change with a fresh context and the job of finding fault.

The verifier also planted its own defects in the code. Five of them passed every test until the rework. In its second round it planted more, and some of those still pass; they are listed in the plan, and both reviewers accepted knowing that.

I do not read this as “agents are good reviewers”. One model played all three parts, so a blind spot they share would not show. What it shows is narrower and more useful. The same model, given a clean context, a fixed list of inputs and the job of disagreeing, found things its authoring self had missed and every automated check had passed.

What the kit refused

While the reviewers read, the checks ran. On the branch 80 passed, 23 failed and one was not run. Six of the failures belong to this change, and each says who can clear it.

Check What it says Cleared by
CK-TOUCH The middleware belongs to the audit event stream, which the spec does not declare Me, by amending the spec
CK-THREAT-MODEL Two criteria test threats and are not written as abuse cases Me, by amending the spec
CK-GATE-RECORD No decision record for G1, G2 or G3 My pull-request reviews
CK-CHARACTERIZATION The tests that pin the old behaviour exist and have not been run A machine that can run them
CK-RUN-RECORD No step records what it cost A runtime that reports it
CK-SBOM A release folder exists with no bill of materials A build

The other 17 fail across the repository and are not caused by this change. Among them: 635 suppressions with no waiver, container images that are not pinned, and an AI evaluation that does not call the classifier production runs.

One thing held through all of it. I had told the agent to carry on without stopping at each gate and then wait. It went to the end and recorded no approval. Every artefact in front of a gate says it is waiting, and the gate check fails on all of them.

Where it stopped, and what I did next

Then I did the thing the kit exists to prevent. I pushed the three branches, opened three pull requests and merged all three within a minute, without a single gate review.

The kit did not notice. On main its checks reported the same three missing gate records as before the merge. At the time the gate check asked for G1 to G3 only: for G1 and G2 once a plan exists, and for G3 once a task list exists. It had no rule for work that reaches the default branch while its build and verification gates have no decision.

The rule came afterwards. The gate check now asks for G4 once work on a spec’s tasks shows in the tree, and on the default branch also for G5 and G6. Run on the merged main, it reports G4, G5 and G6 for this spec, where it had reported G1 to G3 only. It still does not hold a merge back. On a pull request it asks for G4 and what precedes it, because work in progress is legitimate there, so even a required check would not stop a merge for want of G5 and G6. The default branch fails afterwards. That is now the first entry in the kit’s list of what this change found and did not fix.

The merge showed me more than that gap. No pipeline had run on any of it: nothing has run in that repository’s CI since May 2026. When I built the merged code for the first time, the build stopped at restore with 147 errors. None came from the change. Ten packages had advisories published since the suppression list was last looked at, and the build treats warnings as errors. Nothing had told anyone, because nothing was running. Seven of the ten were then moved to patched versions outside the kit’s process, and this time its checks said so: 18 project files changed outside any work item.

I then ran the tests and captured the results: 520 of 520 passed, the 80 tests of the change among them. The stand-in run had said 80, and it was right. An independent verifier agent reviewed the record of that run and sent it back once, because two sentences claimed more than the results files showed. It accepted the corrected record and repeated its verification on the real results. Of its fourteen earlier findings it closed six, left five open and three open in part, and it added six new ones. The first of those says what the kit had not said: the change is on main and no gate of the spec has a decision.

The review of that record left a mistake of its own. The review command was run without a reviewer’s name, and the kit wrote “a person with no name” as the one who returned the record and then accepted it: in the work item, and in two lines of the audit log. No check noticed. Neither did the agent that carried the records to my machine. It was found some hours later. No person had reviewed anything; the reviewer was the verifier agent. The kit now refuses a review that names nobody, and the check that an author does not review their own work fails on the old record until a person corrects the file. The log can only be added to, so the correction is a later entry in it. The change this whole exercise governs exists because an audit record named nobody.

So the state today is exact and uncomfortable. The change is merged. Its tests pass. Two agents have reviewed it, and the verification has been repeated on the real results. And no gate of it has a recorded decision, because no person has reviewed anything through a pull request. I approved the constitution and the first specs in conversation, which my own kit does not count.

What held, and what did not

What held:

  • Nothing passed a gate on an agent’s word. Not even when I told it to keep going.
  • Reviewers with a fresh context earned their place. Thirteen of fifteen things to act on came from reading, not from a check.
  • The checks found real things in real code: a change touching a component its spec did not declare, two floating container tags, an evaluation that does not call production code, accuracy figures written into an endpoint, 635 suppressions.
  • It is cheap to run. 531 tests, 105 fixtures and 20 golden results pass offline in about four minutes.

What did not hold, or is not proven:

  • The central promise has never been exercised live. A gate is passed by a pull-request review that the kit mirrors and binds to evidence. That path is tested on recorded responses only. No review has been read from GitHub, no branch protection inspected, no agent token examined.
  • Evidence is taken as given. The stand-in test numbers were labelled as stand-ins because the author wrote that in every file. The kit would have accepted the same numbers without the label.
  • One person held every role. Separation of duties has never been exercised, only recorded as an exception.
  • Real work showed what fixtures had not. Twenty-six things, none visible from the fixtures. Ten were fixed, each with a test. Sixteen were not fixed and are in the list of limits, with four points more that say what the two newest fixes leave open.
  • The acceptance count is mixed. Of the 54 acceptance lines in the kit’s specification: 39 met, 5 met only with a stand-in, 6 in part, 3 not met, 1 not measured.

What it costs

It is a lot. 105 checks, six extensions, sixteen agents. For this one change the Regulated profile produced 39 files of record, about 2,500 lines, for 14 files of code and tests, about 1,250 lines. That is about two lines of record for every line of change. Whether that is right for a Critical change to an audit trail is a judgement. For most changes it plainly is not, which is why Lite exists. Nobody has timed Lite.

What the kit does not do

A tool that governs agents is only useful if you know where its guarantees stop. The repository keeps that list; this is the short form.

  • It cannot make an approval trustworthy on its own. If the default branch is not protected, anyone with push rights can merge without a review, and no check can stop it.
  • It does not run your tools. It requires the record that a test run, a scan or a migration happened. A record written by hand for a run that never happened is a lie the kit cannot detect.
  • It cannot see inside an agent. The verifier’s isolation is procedural, and which model ran is whatever the runtime reports.
  • It matches words, not meaning. Two requirements that say the same thing in different words score as unrelated.
  • It records; it does not certify. The evidence pack supports an audit. The HIPAA pack is an engineering aid, not legal advice, and nobody qualified has reviewed its mapping of controls.
  • It has never been run against a pull request, a review or branch protection on a live GitHub repository; against a coding-agent runtime loading its agent files; against any tracker, chat or mail service; on Windows PowerShell; or with a migration on a database.

What I take from it

Three things I would carry to any team putting coding agents on work that matters, with or without this kit.

  1. Give the reviewer a different context, not only a different prompt. The findings that mattered came from an agent that could not see the author’s notes.
  2. Bind every approval to evidence, and decide in advance what does not count. “Approved in chat” is how I ended up with a merged change and no record.
  3. Make the tool say what it cannot see. The most useful page in the repository is the list of limits, and the most useful entry on it is the one my own merge put there.

The kit is public and MIT-licensed. Its own README says not to rely on it for real work, and I agree with it. Read the limits first.

Questions people ask

What is agentic-spec-kit?

An open-source (MIT), pre-alpha toolkit for spec-driven development with AI coding agents, built on GitHub’s Spec Kit. Agents draft, build and verify; a named person approves at every gate. It is six extensions with eight gates (G0 to G7), 105 checks and sixteen agents, and three profiles: Lite, Standard and Regulated.

Who approves at each gate?

A named person, in a pull-request review that carries a line the kit prints, ending in a hash of the evidence reviewed. Agents never approve or merge. A reply in chat, a comment, an email or an agent’s statement never counts as a decision. Under Lite any one listed role approves; under Standard and Regulated every listed role does.

Is agentic-spec-kit ready for production?

No. It is pre-alpha and has been used once, on one change to the author’s own open-source project. It has never been run against live GitHub reviews, branch protection, a live tracker or a chat service. Its README says not to rely on it for real work.

What did the two reviewing agents find?

Two agents, each started in a new session without the author’s notes, produced 29 findings in their first round on a change the author had already handed off as finished. Of the 15 things to act on, the kit’s own checks reported 2; the other 13 were found by reading.

What happened when the change was merged without the gate reviews?

The kit did not notice. Its checks reported the same missing gate records before and after the merge. It now reports a change that reaches the default branch without G5 and G6, but it reports afterwards and does not hold a merge back.

How do the Lite, Standard and Regulated profiles differ?

Lite requires G1, G3 and G5, lets any one listed role approve and installs two of the six extensions. Standard and Regulated require G1 to G7, need every listed role to approve and install all six. Regulated also keeps the data, contract and security agents always on and requires a routing policy.

What does the kit not do?

It cannot make an approval trustworthy if the default branch is unprotected, does not run your tools, cannot see inside an agent, matches words rather than meaning, and records rather than certifies. The HIPAA pack is an engineering aid, not legal advice.

Sources