OpenSpec

Category: Tools Last updated: April 29, 2026

Overview

OpenSpec is a Spec-Driven Development (SDD) tool that emphasizes maintaining a single, unified specification document as the authoritative reference for a system's design and capabilities. Unlike traditional approaches that distribute specifications across multiple files, OpenSpec consolidates the current state of a system into one "living" specification that continuously evolves with the codebase.

This source of truth approach addresses persistent challenges in fragmented specification systems, where the overall system intent becomes hard to grasp holistically, feature interactions go undetected until implementation, and validating the complete specification against the live system becomes nearly impossible.

How OpenSpec Works

The OpenSpec workflow revolves around three key artifact types:

Change Specifications (Delta Specs)

Delta specs represent proposed modifications. These interim documents mark sections as "ADDED," "MODIFIED," or "REMOVED," clearly communicating what has changed. This makes it easy for both humans and AI agents to understand exactly what's being proposed without needing to diff entire documents.

Source of Truth Specification

The primary specification represents the system's actual state. All delta changes eventually merge into this single document during the archive phase, creating a definitive reference that stakeholders can consult. This ensures everyone is working from the same understanding of what the system does.

Archived Specifications

Archived specs preserve the historical lineage of earlier delta specs once they've been incorporated into the source of truth, maintaining an audit trail of evolution. This creates accountability and allows teams to understand how and why decisions were made.

Parallel Development with Git WorkTrees

Git WorkTrees let you check out multiple branches simultaneously in separate directories. Combined with SubAgents in OpenCode, this enables genuine parallel feature development: propose on the main branch, apply each change in an isolated worktree via a SubAgent, then merge and archive in order. Each SubAgent runs Verify before merge, keeping the source of truth spec consistent across all parallel streams.

Architectural Decision Records

Custom OpenSpec schemas can extend the workflow with additional durable artifacts. The spec-driven-with-adr schema introduces Architectural Decision Records (ADRs) that live alongside the source of truth spec, outside of any single change. Specs capture the current state of the system's functionality; ADRs capture the current state of its architecture — the context, options, choices, and consequences behind every significant technical decision. Both artifacts persist after a change is archived, so future proposals can leverage prior reasoning during design instead of rediscovering it.

Video Tutorials

Learn OpenSpec workflows and best practices through our video tutorials. The playlist covers everything from getting started to advanced integration patterns.

Workflow Diagrams

Visual guides to understanding OpenSpec workflows and integration patterns.

Blog Posts

In-depth articles covering OpenSpec concepts, workflows, and integration patterns.

Key Benefits

When to Use OpenSpec

OpenSpec excels for teams practicing incremental, spec-driven development who need confidence that specifications remain synchronized with implementation. It works particularly well for:

The tool assumes comfort with AI-assisted development and maintaining disciplined change practices through small, focused modifications.

Resources