CUE
$ cue Official Low RiskOfficial CLI for the CUE constraint-based configuration language, unifying schema validation, JSON/YAML/OpenAPI generation, and policy checking. Gives agents deterministic cue vet validation, cue export --out json compilation, and cue fmt --check verification.
brew install cue Evaluates and validates CUE schemas and JSON/YAML payloads locally in milliseconds.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --out json / jsonl / yaml, -e <expr> field extraction, cue fmt --check, and rich cue help subcommands.
cue export --out json -e <expr>supports native JSON output and expression filteringcue fmt --checksupports non-destructive verification
Hermetic evaluation without arbitrary code execution; vet, eval, and export are purely read-only unless --outfile is set.
- Purely declarative hermetic evaluation with zero side effects
Single static Go binary available via Homebrew, go install, Docker, and GitHub Releases.
- Cross-platform single Go executable
Unifies validation (vet), transformation (export), and schema generation (import OpenAPI/JSON Schema) in one tool.
- Replaces separate schema validator and templating tools
Official CUE project (cue-lang/cue) under Apache-2.0 with active upstream development.
- Official
cue-lang/cuerepository
Thorough command documentation at cuelang.org plus built-in cue help <topic> guides.
- Official CLI reference and embedded
cue helptopics
Security, Auth & Guardrails
No auth needed for local vet/eval/export; optional CUE Central Registry logins store tokens via cue login or CUE_TOKEN.
Apache-2.0 open-source Go binary; completely free.
# CUE (cue) Agent Rules - Always pass `-c` (concrete) to `cue vet` when validating production data so incomplete fields do not pass silently. - Use `cue export --out json -e <field>` to extract only the evaluated JSON subtree needed.
Agent-Ready Command Recipes
Safe Read-Only Queries
cue vet -c schema.cue data.yaml
Validates concrete values (-c) in data.yaml against CUE constraints without modifying files.
cue export --out json -e config app.cue
Evaluates and extracts the config field as validated JSON to stdout.
Controlled Writes & Previews
cue fmt --check . && cue fmt .
Verifies and formats .cue source files deterministically.
Strengths for Agents
- + Hermetic constraint evaluation prevents arbitrary script execution while validating complex configs.
- + Native
cue export --out json -e <expr>provides both JSON serialization and field projection.
Caveats & Pitfalls
- !
cue vetwithout-callows incomplete/abstract fields unless explicitly constrained. - ! Error messages from deep constraint unification failures can be verbose.