OpenSpec workflow with OpenCode
Hello developer π In this post I explore Spec-Driven Development (SDD) with OpenSpec and OpenCode. It is a way of working designed to plan just enough before writing code, without creating a huge planning phase like in Waterfall.

What is OpenSpec
OpenSpec is a tool that brings structure to AI-assisted development. It works both for new projects and for existing systems where you already have code. The idea is simple: first explore, then propose, then apply, and finally archive the change.
You can find the source code on GitHub.
The workflow
The default path looks like this:
/opsx:explore β /opsx:propose β /opsx:apply β /opsx:sync β /opsx:archive
Each step has a clear purpose:
- explore - Understand what you want to build. You talk with the AI until you are clear on the goal.
- propose - Ask the AI to create the spec artifacts. Then review the generated markdown files carefully.
- apply - Ask the AI to implement the tasks from the spec.
- sync - Merge the delta specs into the main specs so the documentation stays up to date.
- archive - Record the completed change.
If you are not sure what to build, use explore before propose. If you already know, you can start directly with propose.
Directory structure
OpenSpec uses two main directories inside openspec/:
specs/- The source of truth. It describes how the system currently behaves.changes/- Proposed modifications. Each change has its own folder with related artifacts. When a change is completed, it merges into thespecs/directory.
The delta specs are a key concept. They let you see what has changed compared to the current specs.
Getting started
You need Node.js 20.19.0 or higher. Install OpenSpec globally:
Inside your project directory, run:
To set it up for OpenCode:
When to use sync
The sync step merges your change specs into the main project specs. It makes sense when:
- The change is long and you want other parallel tasks to see the updated spec.
- You finished the implementation and want to leave the project clean before archiving.
- For small changes,
/opsx:archiveusually handles it for you.
Conclusion
OpenSpec combined with OpenCode makes Spec-Driven Development practical. The workflow gives you a clear path from the initial idea to the final implementation, keeping documentation aligned with the code along the way.
You can see the complete process in the following video (Spanish audio).