All commands

Workspace Intelligence command

workspai workspace diff

Compare the current canonical workspace model with a snapshot or source-control baseline.

Category
Workspace Intelligence
Workspace Intelligence
Yes
Produced artifacts
1
Related contracts
3
Registration
contract-declared
Registered options
0

Operational role

This purpose is versioned in the CLI runtime command surface. It is not inferred from page copy or a generic command template.

Compare the current canonical workspace model with a snapshot or source-control baseline.
workspai workspace diff operational flowThe diagram is generated from this command's canonical invocation, declared input and output modes, artifact producers, contracts, and exit semantics.

Canonical invocation

This invocation is derived from the runtime command surface. Commands with a registered intelligence execution include their canonical evidence-producing flags.

npx workspai workspace diff

Operational variants

These flag or action variants are separately described by the runtime contract but remain part of this canonical command rather than separate command pages.

npx workspai workspace diff --from .workspai/reports/workspace-model-snapshot.json --json

Compute structured model changes from the canonical snapshot artifact for downstream impact analysis.

Runtime signature

Arguments, aliases, and options come from the versioned snapshot of the live Commander tree emitted by the CLI. Contract-declared delegated commands intentionally expose only their canonical invocation.

This command is declared by the cross-runtime capability contract and delegated outside the npm Commander tree. Its invocation remains canonical, but runtime-specific flags are documented by the selected project adapter.

Contract relationships

Capability contracts govern whether the command exists; artifact contracts govern the structured output it produces.

Produced artifacts

Artifacts are durable machine-readable outputs. Their schema, path, and producer relationship must remain stable across CLI, CI, IDE, MCP, and agent consumers.

ArtifactSchema versionContract
.workspai/reports/workspace-model-diff-last-run.jsonworkspace-model-diff.v1contracts/workspace-intelligence/workspace-model-diff.v1.json

Operational interpretation

Run this command inside the scope documented by its category. Treat declared structured output, raw renderer modes, and generated artifacts according to their published media type; human terminal prose must not be parsed as a stable contract. Consumers must preserve schema version, provenance, freshness, and verdict semantics when forwarding the result.