3 December 2026 · 7 min read · Download as PDF
OpenSpec vs Spec Kit: when spec-driven AI coding is worth it
OpenSpec and GitHub's Spec Kit both put the plan for an AI coding assistant in files instead of chat. What each one actually does, how they differ, what a spec is not, and when the extra step is worth it, from a repository that runs every change through OpenSpec.
An AI coding assistant is quick, but it forgets. Requirements agreed in chat can be lost or overlooked by the next session, and a change that touches five files drifts from what you meant by the third. Spec-driven development is the fix: before any code is written, you and the assistant agree on what to build in plain files that live in the repository, and the assistant works from those. Two free, open-source tools do this: OpenSpec, from Fission AI, and GitHub's Spec Kit. Here is what each one actually does, how they differ, and when either is worth the extra step, from a repository that has run every change through OpenSpec for weeks.
TL;DR
- Both put the plan in files, not in chat. You write what should change, the assistant builds from it, and the record stays in the repository.
- OpenSpec is light and change-by-change. Each change gets a folder with a proposal, a design, a task list and the requirements it adds or changes. When it's done, those requirements merge into the project's specs. It describes itself as "built for brownfield not just greenfield": made for code you already have.
- Spec Kit is fuller and phase-by-phase. A project constitution, then specify, plan, tasks and implement, with templates for each step and extensions for fixing bugs and assessing ideas.
- Neither is an API contract or a test. The specs are Markdown for people and assistants to read. You still need tests and review.
- Skip both for small things: a one-line fix, a throwaway script, an experiment. Use one when the change spans several files, will be built over more than one session, or is a decision you'll need to explain later.
What spec-driven development is
The idea is old (write down what you're building before you build it), but AI assistants make it pay in a new way. A file in the repository is a durable, shared record that any session, and any assistant, can load, where a conversation is easily lost. It doesn't make an assistant infallible, but everyone starts from the same page. OpenSpec's README puts it plainly: assistants are "powerful but unpredictable when requirements live only in chat history", so it "adds a lightweight spec layer so you agree on what to build before any code is written."
OpenSpec: one folder per change
OpenSpec is a command-line interface (CLI) plus a set of commands it adds to your assistant. By its own count it works with more than 30 assistants, Claude Code, Cursor and Codex among them. The everyday loop is three commands:
- Propose.
/openspec-propose add-dark-modecreatesopenspec/changes/add-dark-mode/with aproposal.md(why, and what changes), adesign.md(how), atasks.mdchecklist and aspecs/folder for the requirements this change adds or alters. - Apply.
/openspec-apply-changehas the assistant work through the tasks, ticking each one off. - Archive.
/openspec-archive-changemoves the finished change toopenspec/changes/archive/and merges its requirements into the main specs inopenspec/specs/.
The requirements are written as a "delta": only what this change adds, modifies, removes or renames. Here is one from a real change in our repository, adding a download button for vertical videos:
## ADDED Requirements### Requirement: The vertical downloadA lesson's studio page SHALL offer its vertical cut as "Download for TikTok / Reels (vertical)" beside the LinkedIn and YouTube cuts, with its vertical cover to download.#### Scenario: Not made yet- **WHEN** a recorded lesson has no vertical cut yet- **THEN** the panel says it is still to be made, and offers nothing brokenBecause a change only describes the difference, you don't have to write a spec for the whole system before you start, which is what makes OpenSpec practical on an existing codebase. openspec validate checks the files are well formed before you build.
Spec Kit: phases with templates
Spec Kit, from GitHub, calls itself "an open source toolkit that gives AI coding agents structured processes, reusable templates, and documented outcomes." You install its specify CLI (it needs Python 3.11 or later and the uv package manager), set up a project for your agent, then work through commands in the agent's chat:
/speckit-constitution, once per project: the principles every later step follows./speckit-specify: what to build and why./speckit-plan: the technical approach./speckit-tasks: the work, broken down./speckit-implementand/speckit-converge, repeated until the work matches the spec.
Extensions add other processes with the same discipline: one for bugs (assess, fix, test) and one for weighing up an idea before anyone builds it (ending in go, needs clarification or kill).
How they differ
Aspect | OpenSpec | Spec Kit |
|---|---|---|
Unit of work | One change at a time, in its own folder | A feature through fixed phases |
Setup | An npm package (Node.js 22.20 or later), Homebrew or an install script; then | Python 3.11+ and uv; |
Specs | Deltas that merge into living specs when archived | A spec, plan and tasks per feature, under a project constitution |
Best fit | Changing code you already have | Building a feature or an app with a full plan up front |
Weight | Few files, few steps | More templates, more checkpoints |
OpenSpec's own comparison calls Spec Kit "thorough but heavyweight", with "rigid phase gates, lots of Markdown, Python setup." That is OpenSpec's view, not a neutral one; the same thoroughness is what Spec Kit users choose it for.
What a spec is not
It's easy to read "spec" as a machine contract, like an OpenAPI file that tools validate requests against. These are not that. OpenSpec's requirements and scenarios are structured Markdown: they tell people and assistants what should be true, and openspec validate checks their format, not your code. Nothing runs them against your software. That's still the job of tests, type checks and review, and a good change's task list includes writing those tests.
When it's worth it, and when it isn't
Use spec-driven development when:
- the change spans several files or several sessions, so the plan has to outlive the chat;
- someone else (a colleague, a reviewer, another assistant) needs to see what was agreed before the code changes;
- it's a decision you'll want to explain in six months: the proposal and design are the record.
Skip it when:
- the fix is a line or two and obvious from the code;
- it's an experiment or a script you'll throw away;
- you can't yet say what "done" looks like: explore first (OpenSpec has an optional
/openspec-explorestep for this), then write the change.
Between the two tools: start a new product with Spec Kit if you want every phase gated and templated; reach for OpenSpec when most of your work is changing a codebase that already exists.
How we use OpenSpec
Gazeek runs on OpenSpec: every change anyone asks for becomes a proposal first. At the time of writing that's 138 changes, 59 of them finished and archived, and 96 capability specs. Three things we've learned:
- The proposal is where you say no early. Reading a one-page proposal takes a minute; unpicking a misunderstood feature takes an afternoon.
- Update the design when reality disagrees. Building the vertical video cut, our first layout put the captions over the presenter's face. The fix went into
design.mdas well as the code, so the next person (or assistant) doesn't repeat it. - Small tasks, ticked as you go. A task list the assistant updates is the simplest progress report there is, and it shows exactly where to pick up after a break.
Common questions
Is OpenSpec an API specification format, like OpenAPI?
No. OpenAPI describes an HTTP interface for tools to validate against. OpenSpec describes what a change to your software should do, in Markdown, for people and AI assistants to read and build from.
Does OpenSpec need an API key?
No. It's a command-line tool plus commands added to your AI assistant; your assistant does the writing with whatever model it already uses. OpenSpec sends anonymous usage data by default, which you can turn off with DO_NOT_TRACK=1.
Can I use OpenSpec on an existing project?
Yes, that's what it's designed for. Because each change only describes what it adds or alters, you can start on a mature codebase without writing a spec for everything first.
Which one should I start with?
Try OpenSpec on your next change that spans more than one file: one install and one openspec init, and the first proposal shows you whether the habit fits. Try Spec Kit when you're starting something new and want the whole plan in place first.
Keep going
If you build with AI agents, the Strands Harness series builds a Kubernetes troubleshooting agent step by step, and part 2 measures which model it needs.