v1.1
Open Standard · v1.1

OpenSpec

The open specification format for AI agent orchestration. A versioned, tool-agnostic format describing software projects as hierarchical specs that any compliant agent can execute.

Think OpenAPI, but for agent orchestration instead of REST APIs.

Quick Install
$ npm install -g @blacksmithers/openspec
Data Hierarchy
Specification→ the document root
├─Epic→ work group
└─Ticket→ atomic unit of work
The Core Insight

Traditional tickets say what. OpenSpec tickets say what, where, how, and how to verify. Every field exists because its absence caused a real failure in production AI agent orchestration.

Human Ticket vs. Agent Ticket
Traditional Ticket
Title Add user authentication
Desc Implement JWT-based auth with login/register endpoints
Points 5
OpenSpec Ticket
{
  "implementationSteps": [{ "text": "Add auth middleware", ... }],
  "filesToBeCreated": ["src/middleware/auth.ts"],
  "filesToBeModified": ["src/routes/index.ts"],
  "filesToBeDeleted": ["src/legacy/session.ts"],
  "filesToBeReferenced": ["src/config/jwt.config.ts"],
  "codeReferences": [{ "filePath": "src/auth/jwt.ts", "symbol": "JwtConfig" }],
  "typeReferences": [{ "filePath": "src/types.ts", "typeName": "User" }],
  "acceptanceCriteria": [{ "given": "no token", "when": "GET /me", "then": "401", ... }],
  "testSpecification": { "testTypes": ["integration"], "qualityGates": ["auth paths covered"] },
  "dependencies": [{ "ticketId": "tkt-1", "type": "requires" }]
}

Schema URL (permanent)

https://openspec.tech/schema/v1.1/openspec-schema.json

OpenSpec is an open specification. Any tool can generate, validate, and consume .oschema.json files. The format belongs to the ecosystem.