← Back to archive

Repo of the Day

jejay/specspec

Published: Dec 2, 2026

Open repository ↗

Contribute to jejay/specspec development by creating an account on GitHub.

Summary

specspec is a Python command-line tool that stores a specification as a graph of Markdown files in .specspec/, connecting project intent to requirements and implementation artifacts. It helps engineers and coding agents distinguish intentions from the conclusions drawn from them, so a solution can be replaced without losing the reason it was chosen.

What it is useful for

specspec is useful when an agent’s implementation suggestions become mixed with your original requirements. Each node records its parents—the intentions it concludes from—while implementation nodes point to the files or line ranges that realize those conclusions.

This structure helps with several practical tasks:

  • Revise decisions without losing context. For example, “Show tasks on a weekday timeline” can be replaced with a milestone list while the higher-level intention, “Make timing easy to read,” remains intact.
  • Choose how much detail to delegate. Engineers can specify only a manifesto, pin down selected branches, or let the agent fill in lower-level conclusions.
  • Understand the impact of a change. Because the graph is directed and acyclic, it shows what hangs beneath a decision and allows one conclusion to serve multiple intentions.
  • Review specifications alongside implementation. specspec check validates the graph’s structure, while specspec check --sources identifies linked files that disappeared or linked line ranges that changed.
  • Compare revisions. specspec diff shows nodes that differ between commits, helping reviewers see how the plan evolved.

The graph is ordinary Markdown in the repository, so engineers remain responsible for staging and committing it. Although the examples concern a planning application, the README also describes graphs for books, reports, slide decks, and videos.

How engineers can use it

The documented prerequisites are Python 3.11+ and Git. Install the CLI with uv or pipx, then initialize it in a project:

uv tool install specspec    # or: pipx install specspec
cd your-project
specspec init -m "# Help a small team agree on a plan" -m "Everyone sees the same dates and why they moved."

Initialization creates .specspec/, adds an agent guide to AGENTS.md or CLAUDE.md, and sets up Git if necessary. Any coding agent that can run shell commands can then read and edit the graph through the specspec command.

Engineers can begin by inspecting the graph:

specspec query --max-distance 2
specspec diff
specspec check --sources

Optional VS Code and desktop graph editors provide zoomable views, node editing, change review, and spotlights for nodes discussed with an agent. The desktop app supports Windows and Linux; the README directs macOS users to VS Code.

specspec is still an early 0.1.2 release with expected rough edges and changing commands. Its validation checks graph structure, not whether the implemented product behaves as described; that remains for tests, the engineer, and the agent to judge.