spec17 Requirements traceability for spec-driven development. spec17 connects Markdown requirements to tagged tests, source code, and Git changes. Review what changed in the intended behavior, follow the evidence, and find gaps before you merge. Quickstart · Review changes in your repo · Try a sample project What spec17 does Review requirement changes in Git. Compare your working tree, staged changes, or a commit…
Requirements traceability for coding agents and their teams. Review requirement changes in Git, trace them to code and tests, and find missing links. Runs locally with an MCP server, an agent skill, a web dashboard, and a CLI. Built in Rust.
Requirements traceability for spec-driven development. spec17 connects Markdown requirements to tagged tests, source code, and Git changes. Review what changed in the intended behavior, follow the evidence, and find gaps before you merge.
Review requirement changes in Git. Compare your working tree, staged changes, or a commit with its baseline. See added, edited, and removed requirements, compare wording and metadata, and find requirements affected by changed tests or code. Inspect file diffs and commit history, and mark requirements reviewed in your browser.
Trace requirements and tests. Follow a requirement ID from its Markdown definition to tagged test cases, source citations, and reference docs. Browse requirements, specs, tests, and modules even when you start with an existing repository.
Find gaps in traceability. Report requirements without tagged tests, unknown or retired IDs, dangling citations, and tags that need a closer look, such as those on disabled tests. Tags and citations record links. Test results come from your test runner.
Explore dependencies and code. Graph references between requirements and spot cycles. With an optional CodeGraph index, follow tests to the code they call, browse module dependencies, and find declarations shared by multiple requirements or with no detected requirement evidence.
Navigate the evidence. Search and filter requirements by state, level, priority, effort, change type, or review state. Save dashboard views, share links to requirements, and jump to the relevant line in the file preview or your editor.
Scan the repo you already have. Detect spec locations and language profiles automatically. Read supported Markdown formats, including GitHub Spec Kit and OpenSpec. Use spec17.json and ignore rules to customize where and how spec17 scans.
Use the same local scanner from the CLI, dashboard, or a coding agent. Get text or JSON from the CLI. Agents can search requirements, tests, and modules through MCP over HTTP or stdio, use the bundled spec-first skill, and open the dashboard in compatible MCP Apps clients. Run spec17 doctor to check setup. The scanner produces deterministic results and runs without an LLM.
Quickstart
Install a prebuilt release with Homebrew on an Apple Silicon Mac or on Linux (arm64 or x86_64). For other platforms, see Build from source.
brew tap kpavlov/spec17 https://github.com/kpavlov/spec17
brew install kpavlov/spec17/spec17
spec17 --version
From your project root, run spec17 and open Changes to review requirement changes. Use spec17 report for a terminal summary of your requirements and their references.
To build spec17, install stable Rust, Node.js, and the pnpm version pinned in web/package.json. The release binary embeds the dashboard and runs without these build tools. Development commands scan this repository by default.
make dev # Vite HMR + Rust server on :7411, opens the browser
make run # release binary with the UI embedded, serves on :7411
make build # target/release/spec17
make install # cargo install into ~/.cargo/bin (make uninstall to remove)
make report # text report
make test # cargo tests
make bench # compare scan times at main and HEAD
make docs # build the Hugo site in docs/ into docs/public (Hugo >= 0.146)
make site # preview the docs at localhost:1313
make dev ROOT=/path/to/repo PORT=7500 OPEN=0
Without make:
(cd web && pnpm install --frozen-lockfile && pnpm run build)
SKIP_WEB_BUILD=1 cargo install --path server --locked # or: cargo build --release, then target/release/spec17
SKIP_WEB_BUILD=1 reuses an existing build in web/dist. Debug builds serve the dashboard through Vite at localhost:5173.
core/ contains the scanner and reports.
server/ contains the CLI and MCP server.
web/ contains the Svelte dashboard.
skills/ contains the bundled agent skill.
docs/ contains the Hugo site for spec17.dev.
bench/ contains the benchmark script.
The Hugo site and dashboard share design tokens. Purple marks interactive accents and focus. Inline code inherits the surrounding text or link color, and syntax highlighting uses its own palette. When changing the palette, check text contrast and keyboard focus in both light and dark themes. The standalone overview SVG carries a copy of the tokens it uses so it also renders on GitHub.
Benchmark
make bench compares CLI wall time across Git revisions using the same generated repository. Each invocation includes a full scan.
make bench # main vs HEAD, scale 1, 10 runs
make bench REVS="main HEAD ." SCALE=4 RUNS=20 # `.` is the working tree, uncommitted changes included
make bench JSON=1 # one JSON document instead of a Markdown table (for scripts and agents)
python3 bench/bench.py --help
The first revision is the baseline. Compare the median times and check the output hashes to confirm that the results still match. The benchmark uses release builds, Python’s standard library, and bullet specs. It times each command without a CodeGraph index and, if codegraph is on your PATH, again on an indexed copy of the repository. Indexing time is not measured.
Example for spec17 0.10.0, from make bench REVS=HEAD SCALE=4 RUNS=10 on one M4 Mac. The project had 8,000 requirements, 1,600 source files, 400 test files, and 400 docs. Times are in milliseconds.
Without a CodeGraph index:
command
median
min
stdev
report
135.3
133.0
5.4
status --all
168.9
157.7
6.5
trace GEN-0001
137.2
134.5
5.0
With a CodeGraph index (CodeGraph 1.6.2; 38,000 nodes and 36,000 edges):
command
median
min
stdev
report
220.3
218.2
6.4
status --all
183.6
178.0
4.0
trace GEN-0001
154.9
152.8
2.6
The generated code has a simple call graph (only tests call functions, all the same one), so a real repository may behave differently.
On that machine, runs varied by a few percent between sessions. Treat differences under about 3% as noise for this workload.
评论