Command reference
stax materialize
Render an artifact into runtime-native files
Resolve an artifact, render it through a runtime adapter, and write the resulting files to an output directory. This is how a canonical stax artifact becomes concrete runtime files such as CLAUDE.md, .cursor/rules/*, or opencode.jsonc.
Usage
stax materialize ghcr.io/myorg/agents/backend-engineer:3.1.0 --out ./output
stax materialize ./artifact-dir --adapter codex --out ./codex-output
stax materialize ghcr.io/myorg/agents/backend-engineer:3.1.0 --json
stax materialize ghcr.io/myorg/agents/backend-engineer:3.1.0 --plan --consumer codexOptions
| Flag | Description |
|---|---|
--out <dir> | Output directory for rendered files |
--adapter <name> | Override adapter selection |
--consumer <id> | Alias for adapter selection when used with --plan |
--plan | Preview rendered actions without writing files |
--json | Emit machine-readable output |
--exact | Require non-lossy output for the selected adapter when supported |
What stax materialize does
- Load artifact — Pull from OCI or read a local artifact directory
- Decode canonical layers — Parse prompt, persona, rules, MCP, package layers, and more
- Merge packages — Resolve package references and merge canonical content
- Render adapter files — Produce runtime-native files through the selected adapter
- Write output — Materialize those files into
--out
Example output
Materialized backend-engineer@3.1.0
adapter: claude-code
fidelity: best-effort
files written: 4
output: ./outputPlanning instead of writing
Use --plan to preview the same rendered output without touching the filesystem:
stax materialize ghcr.io/myorg/agents/backend-engineer:3.1.0 --plan --consumer codexMachine-readable output
--json returns a summary of the applied materialization, including:
nameversionadaptertargetsfidelitylossywarningsfilesoutputDir
Example:
stax materialize ghcr.io/myorg/agents/backend-engineer:3.1.0 --json | jq '.files'Related commands
stax plan-install— Preview rendered actions without writing filesstax inspect— View artifact metadata firststax pull— Pull into the local cache