Historical: this page explains the move to 2.0.0 (and the execution changes in 2.4.0). For current usage, start at Getting started.
This guide covers releases 2.0.0 and later. It’s a partially breaking change, since the command surface changed even though config remains backward compatible; nothing needs to be backed up, because there is no destructive migration and old config keys are simply ignored.
This page compares day-to-day usage and functionality between pre-v2 SPECTRA (which ran its own embedded GitHub Copilot SDK session) and v2 (which runs entirely inside your interactive Claude Code session). For the cost/billing side specifically, see the AI models and cost.
The one-sentence version
v1 SPECTRA opened its own AI session and made model calls itself, in-process, from inside a long CLI command. v2 SPECTRA makes no model calls at all; instead it emits deterministic prompts, which you (or the skill on your behalf) answer as ordinary turns in your own Claude Code session, and SPECTRA then validates and persists whatever comes back.
Architecture: before / after
v1 (in-process SDK session, removed in v2.4.0):
spectra ai generate
One long-running CLI process, started from the terminal.
Sign in
It authenticated with spectra auth or gh auth login.
Copilot SDK session
It opened a session against ai.providers[0] and ran analysis, generation and an optional critic.
Write files
It wrote the test files and the index when the process ended.
v2 (compile → in-session turn → ingest seam): the spectra-generate skill orchestrates, calling SPECTRA CLI
commands that never talk to a model themselves.
You ask
“Generate 20 tests for checkout”, in a conversation with your agent.
Analysis
compile-analysis-prompt, a turn in your session, ingest-analysis.
Generation
compile-prompt, a turn in your session, ingest-tests.
Critic
compile-critic-prompt, the spectra-critic subagent, ingest-verdict.
Write-back
ingest-grounding --all writes the result into each test.
Every “AI-touching” flow in v2 (bulk generation, from-description generation, behavior analysis,
criteria extraction, and targeted updates) follows the same three-step shape: a compile-*
command emits a deterministic prompt to stdout, a model turn answers it, and an ingest-* command
validates and persists the answer (failing loud on malformed output rather than silently accepting
it).
What’s gone
Everything below was removed by v2.4.0, the release that completed the migration to Claude Code sessions.
| Removed | Notes |
|---|---|
GitHub Copilot SDK (CopilotService, Agent/Copilot/) |
No in-process model runtime remains anywhere in SPECTRA. |
ai.providers / ai.critic config blocks |
Old configs still parse; the keys are inert. |
spectra auth |
Nothing to authenticate separately, since you’re already signed in to Claude Code. |
spectra ai generate (the do-everything command) |
Replaced by the spectra-generate skill driving compile-prompt/ingest-tests turns. |
In-process critic (CopilotCritic), provider-keyed critic model switch |
Verification runs as the spectra-critic subagent instead. |
SPECTRA’s own MCP execution server (spectra-mcp, 25 tool schemas) |
spectra run is the sole execution surface; spectra init no longer writes .vscode/mcp.json for it. |
docs/requirements/_requirements.yaml, RequirementsExtractor |
spectra docs index is index-only now; criteria extraction is a separate seam (spectra docs changed → spectra-criteria skill). |
Import compound-splitting, --skip-splitting |
Import is a plain deterministic pass-through. |
What’s new
- The compile → in-session → ingest seam, applied uniformly to generation, from-description
generation, behavior analysis, criteria extraction (
spectra docs changeddiffs by SHA-256 so only changed docs get re-prompted), and targeted updates (compile-update-prompt/ingest-update, with a drift guard that fails loud on out-of-scope field changes). - The
spectra-criticsubagent is an isolated, per-test verification call (a fresh context each time) that sees only the test artifact and its source docs, never the generator’s reasoning. - Under the new verdict disposition policy, a
groundedverdict writes a durablegrounding:block into the test’s frontmatter plus a full verdict JSON under.spectra/verdicts/; apartialverdict gets one bounded repair attempt (compile-repair-prompt→ patch → re-critic) without blocking the rest of the batch; and ahallucinatedverdict is recorded to a.spectra/dropped-tests.jsontrail before the existing clean delete. - New batch ingest verbs, added in v2.4.0, replace per-test shell loops with a single call:
ingest-verdict --suite --allandingest-update --allclassify and ingest everything staged for a suite in one pass. spectra runis now a first-class CLI surface over.execution/spectra.db. Short-lived CLI processes reconstruct run state losslessly, and the store runs in WAL mode so concurrent invocations don’t hitSQLITE_BUSY.spectra run consoleis an optional local, detached web console (no MCP client needed) where a tester can drive PASS/FAIL/BLOCKED, notes, and screenshots from a browser, backed by the same SQLite store as the CLI.spectra ai audit-groundingandcompile-repair-batch, added in v2.2.0, provide a resume-safe oracle for “what still needs grounding” and a deterministic batch repair manifest, so an interrupted repair loop can resume without re-reading test files by hand.
Usage differences, day to day
Generating tests
In v1 you ran spectra ai generate checkout --count 20 once, authenticated up front via
spectra auth/gh auth login, and one long CLI process did everything and exited. In v2 you ask
Claude Code in conversation (“generate 20 tests for the checkout suite”), and the
spectra-generate skill drives you through analysis, then generation, then the mandatory critic
step, each as its own turn or subagent call, with a bounded fail-loud retry on malformed output.
There is no single long-running “generate” process, and nothing to separately authenticate,
because you’re already using the account that’s running your Claude Code session.
Executing tests
In v1 you could execute tests either with spectra run … directly, or through any MCP client
wired up to SPECTRA’s own execution server (25 tools) alongside the CLI. In v2, spectra run … is
the only path, plus the optional spectra run console browser UI for manual verdict recording.
There’s no MCP client configuration for execution to set up at all, since the execution
agent/skill orchestrate spectra run directly.
Repairing flagged (partial) tests
In v1, no repair loop existed at all, because a partial critic verdict had no defined
disposition. In v2, repair is either driven one test at a time by the skill, or batched:
compile-repair-batch emits a manifest, the agent reads it in-context (never piped through
python/jq), patches are written to .spectra/updates/{suite}/updated-{id}.json, and are then
ingested and re-verified in bulk.
Scripting / CI
In v1, spectra ai generate X --auto-complete --output-format json ran the whole pipeline
non-interactively in one process, which was a natural fit for a CI job. In v2, there is no single
command that “runs the whole pipeline, no prompts” anymore, because the model turn is not
something the CLI can invoke on its own; it’s an interactive (or headless-Claude-Code-driven)
session turn. A CI pipeline that scripted the old flow needs to move to a Claude
Code-orchestrated run (e.g. driving the skill headlessly) or call the compile-*/ingest-* seam
commands directly around whatever entry point the CI job uses to talk to Claude.
Cost model
The GitHub Copilot premium-request multiplier table from the v1 guide no longer applies to
anything, because there is no ai.providers left to route against. Cost is now exactly your normal
Claude Code usage (subscription plan limits, or API/Console token billing), because the model turns
that used to run inside SPECTRA’s own SDK session now run inside yours. Full detail in the
AI models and cost.
Do you need to change anything?
- Nothing is destructive. A pre-v2
spectra.config.jsonwithai.providers/ai.criticstill loads; the keys are simply ignored.spectra init/spectra validateno longer ask about or warn on AI providers. - Run
spectra update-skillsafter upgrading to pick up the new/changed bundled skills and agents (spectra-critic,spectra-review-flagged, the rewrittenspectra-generateandspectra-execute). Files you’ve customized are skipped with a warning rather than overwritten. - Nothing to clean up in
.vscode/mcp.json. SPECTRA no longer writes its own entry there; a peer tool’s entry (e.g. a BELLATRIX/Nova MCP server) is left untouched either way. - Retire any script that called
spectra ai generateorspectra authdirectly. See “Scripting / CI” above.
Execution: there is no MCP server anymore
Pre-v2 SPECTRA shipped a separate Spectra.MCP global tool that any MCP-compatible client
(Claude Desktop, GitHub Copilot CLI/Chat, or a generic MCP client) could connect to over stdio.
That server was removed entirely in v2.4.0. There is nothing to dotnet tool install,
nothing to add to a client’s MCP config, and no per-client setup page anymore. Execution is
CLI-only, and the agent that drives it is a native Claude Code skill
(.claude/skills/spectra-execute/), not something bolted on through MCP.
If you have an old .vscode/mcp.json entry or mcp__spectra__* permission from a pre-v2 install,
it’s dead weight and safe to remove. spectra init no longer writes either.
Today’s flow: Run tests with your agent.
The separate BELLATRIX/Nova MCP
None of the above is related to BELLATRIX/Nova, the MCP server that drives your system under
test during automation. That MCP is a peer tool, unaffected by anything in this page; spectra init
never writes or changes .vscode/mcp.json, so a BELLATRIX/Nova entry there is left untouched.