Project operations command
workspai agent context
Prepare one read-only, byte-bounded packet for a user task. Use --view route for scoped next actions derived from project binding, Graph, and lifecycle evidence.
- Category
- Project operations
- Workspace Intelligence
- No
- Produced artifacts
- 0
- Related contracts
- 2
- Registration
- commander
- Registered options
- 10
Operational role
This purpose is versioned in the CLI runtime command surface. It is not inferred from page copy or a generic command template.
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 agent context --task <request>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
No registered positional arguments.
Options
- --task <request>
- --project <path>
- --path <relative-path>
- --workspace <path>
- --workspace-default
- --for-agent <agent>
- --view <view>
- --limit <count>
- --max-bytes <bytes>
- --strict
Output modes
Output formats are contract-declared. Raw renderer text and structured JSON are separate integration boundaries.
| Selector | Format | Media type |
|---|---|---|
| --task <request> [--project <path>] [--path <relative-path>] [--workspace <path> | --workspace-default] [--view full|route] | json | application/json |
Exit semantics
Automation should use these process-level rules together with the structured report verdict.
Default
Ready, partial and actionable project-selection or budget refusals return 0.
Strict
Project-selection and budget refusals return 2.
Failure
Invalid task, path, bounds or contract input returns 2.
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.
No canonical artifact is registered for this command. Its effect may be interactive, delegated, lifecycle-oriented, or represented through workspace state rather than a standalone report.