Oystro

Spec-Driven Development for AI Coding Agents

Agree on the plan before code is written, lock the tests before the agent builds, and ship on verified proof without reading every diff line by line.

Last reviewed: December 3, 2026 · Part of the Oystro Standard User Guide.

1. What spec-driven development is

Spec-driven development (SDD) means agreeing in writing on what a change must do, which files it covers, and how it will be tested before your AI coding agent edits source files.

Once a project spans more than one session, prompting in chat stops working. Requirements vanish up scrollback, every new session starts cold, and the agent can make a breaking change while declaring all tests green. Storing specs in the repository solves project memory; holding the build to those specs turns written plans into software you can trust.

2. Two halves: writing the plan vs. proving it shipped

Open-source planning kits such as GitHub Spec Kit, OpenSpec, and BMAD focus on the first half: helping agents turn rough ideas into structured specs, task lists, and markdown rituals with zero account setup.

Teams on production repositories also hit four failures after the spec exists. An unguarded agent can weaken a failing assertion to pass a build (how tests get weakened), edit files outside approved scope, cite a stale test run from earlier in chat (how to check test claims), or review its own code in the same session context.

The Oystro CLI enforces that second half mechanically as an outside notary between your plan and your release button.

3. How Oystro enforces the spec

With Oystro Standard, human review sits at two moments: Human Gate 1 (capture your real intent, lock owned files, and freeze tests before code) and Human Gate 2 (inspect real passing proof before release). That loop spans a 7-stage lifecycle:

  1. Init: Architecture & intent
  2. Define: spec.yaml & scenarios
  3. Gate 1: Sign plan & lock tests
  4. Build: Scoped commits & freeze
  5. Review: Clean-context audit (L)
  6. Verify: Fresh runs & bound proof
  7. Gate 2: Inspect proof & release

S, M, or L sets how much ceremony a change gets: small fixes move quickly, while core changes get the full verification pass.

Across those stages, the Oystro CLI enforces 10 automatic checks so AI drift cannot ship. Before Gate 1 reaches your screen, oystro check --spec rejects vague plans missing acceptance checks or runnable commands. Once you sign Gate 1 in oystro ui or the CLI, Oystro locks agreed test assertions against edits during build, blocks commits touching unapproved files, and uses a session lock so parallel agents cannot collide.

During testing, the Oystro CLI runs declared commands live without stale caches and binds each output digest to the exact code snapshot. An independent review then quotes the exact file, line, and passing assertion for every requirement, before Gate 2 verifies fingerprints, runs end-to-end smoke checks, and records signed Ed25519 receipts across Claude Code, Codex, Cursor, OpenCode, Gemini CLI, or Copilot (oystro mcp).

4. How different approaches fit together

Each layer covers a distinct part of working with coding agents. Prompting gives fast drafts, planning kits structure upfront markdown tasks, and Oystro adds runtime enforcement and signed proof.

Capability Prompting alone Planning kits (e.g. Spec Kit, OpenSpec, BMAD) Oystro CLI (Verification & Notary layer)
Primary strength Fast first drafts with zero setup Open-source starter templates, markdown workflows, and upfront checklists Gate-enforced builds, frozen tests, fresh runs, and signed proof before release
Account / setup None Usually none; lightweight open-source files 30-day free beta (up to 3 workstations; post-beta pricing coming soon)
Stops silent test edits No (advisory prompt only) No runtime lock after planning Yes: tests are frozen when Gate 1 is signed; edits require explicit --reapprove
Prevents out-of-scope edits No Checklist guidance only Yes: pre-commit file ownership guard blocks unapproved files
Proof of test execution Chat self-report Markdown checklist Yes: live un-cached run receipts tied to commit and snapshot hashes
Independent review Same session reviews itself Same or manual review Yes: clean-context audit maps every requirement to file:line assertions
Human sign-off Informal chat reply Markdown review Yes: cryptographic Ed25519 Gate 1 and Gate 2 receipts via oystro ui or CLI

5. Using planning kits alongside Oystro

You can keep upfront planning habits that already work for your team. Shape requirements and edge cases in plain language with your preferred agent, then capture the agreed files, acceptance checks, and runnable test commands in Oystro's spec.yaml and sign Human Gate 1.

Once Gate 1 is signed, the Oystro CLI polices scope, test locks, fresh runs, and clean-context audits while your agent builds task by task, leaving you a concise verification summary to inspect at Gate 2.

For a side-by-side Spec Kit alternative comparison, plus multi-agent workflows and prompt limits, see How to Run a Spec-Driven AI SDLC With Claude Code, Codex, or Cursor and Why you can't just prompt your agent to do this.

6. What One Verified Change Looks Like

  1. Connect your agent: install the Oystro CLI, authorize your machine with oystro auth login, and wire oystro mcp to your agent.
  2. Define & sign Gate 1: describe the feature or fix, review the spec and test commands in oystro ui, and sign Gate 1. Tests and owned files are now locked.
  3. Build & prove: your agent implements task by task while Oystro blocks out-of-scope commits, executes the declared test scenarios fresh, and runs a clean-context audit.
  4. Verify & sign Gate 2: confirm every requirement carries passing evidence tied to the exact snapshot, run any end-to-end smoke check, and approve release.

Ready for exact setup commands and S / M / L risk levels? Follow the Oystro Standard CLI User Guide.

7. Common Questions

What is spec-driven development for AI coding agents?

Spec-driven development means agreeing in writing on clear requirements, scope, and acceptance checks before your coding agent edits source files.

How do tools like Spec Kit, OpenSpec, or BMAD compare to Oystro?

GitHub Spec Kit, OpenSpec, and BMAD give teams open-source planning templates and markdown rituals to structure work upfront. Oystro builds on that idea with runtime enforcement and proof: Gate 1 locks your approved tests and owned files before coding begins, automated checks block silent test edits and stale runs, and Gate 2 presents snapshot-bound verification receipts before release.

Can I use planning templates alongside the Oystro CLI?

Yes. You can shape requirements using whatever planning ritual you prefer, then hand the contract to the Oystro CLI at Gate 1 so scope guards, test freezes, clean-context audits, and signed release receipts protect the build.

Why can't I just enforce spec-driven rules in CLAUDE.md or AGENTS.md?

Prompts steer an agent, but a prompt cannot sign a receipt, freeze a test file, run commands outside chat memory, or block a commit when an agent drifts out of scope. The Oystro CLI acts as the external notary so proof does not rely on the agent grading itself.

Which coding agents work with Oystro?

Oystro works with Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Copilot, and any agent that reads repository files or connects via MCP (oystro mcp). You can switch agents or models without changing your workflow.

Ship AI-Written Code Without Reading Every Line

You decide what gets built and approve what ships, while automatic checks keep your coding agent from skipping tests, weakening assertions, or claiming work that never ran. Install the Oystro CLI, connect your agent with oystro mcp, and open oystro ui to inspect a Gate 1 approval, a verification summary, and a signed release.

Read the Standard User Guide → · ← Back to home