All commands

NPM wrapper command

workspai goal

Compile a plain-language engineering intent into a scope-bound, evidence-pinned Goal Pack and portable agent handoff without mutating source.

Category
NPM wrapper
Workspace Intelligence
No
Produced artifacts
2
Related contracts
4
Registration
commander
Registered options
15

Operational role

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

Compile a plain-language engineering intent into a scope-bound, evidence-pinned Goal Pack and portable agent handoff without mutating source.
workspai goal 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 goal <intent> --json

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.

Arguments and aliases

Aliases: None

  • intent · optional

Options

  • --workspace <path>
  • --scope <scope>
  • --runtime <runtime>
  • --for-agent <consumer>
  • --max-attempts <count>
  • --refresh
  • --dry-run
  • --status [goal-id]
  • --list
  • --activate <goal-id>
  • --cancel <goal-id>
  • --prepare <goal-id>
  • --verify <goal-id>
  • --no-run
  • --json

Output modes

Output formats are contract-declared. Raw renderer text and structured JSON are separate integration boundaries.

SelectorFormatMedia type
--jsonjsonapplication/json

Exit semantics

Automation should use these process-level rules together with the structured report verdict.

Default

A contract-valid Goal Pack returns exit code 0, including explicit needs-confirmation, needs-evidence, or blocked planning states.

Strict

Not applicable; Goal planning does not execute or verify source changes.

Failure

Resolution, freshness, contract, integrity, or publication failure returns exit code 1.

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/goals/index.jsonworkspai.goal-index.v1contracts/workspace-intelligence/goal-index.v1.json
.workspai/reports/goal-pack-last-run.jsonworkspai.goal-pack.v1contracts/workspace-intelligence/goal-pack.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.