This directory contains JSON Schema definitions for agnix configuration files.
agnix.json- JSON Schema for.agnix.tomlconfiguration files
The VS Code extension automatically uses this schema for validation and autocompletion in .agnix.toml files.
You can validate your configuration against the schema using any JSON Schema validator. For example, with ajv:
# Convert TOML to JSON first
cat .agnix.toml | yq -o json | ajv validate -s schemas/agnix.jsonThe schema is generated from the Rust types in agnix-core. To regenerate:
agnix schema --output schemas/agnix.jsonOr to output to stdout:
agnix schemaThe schema defines the structure for:
severity- Minimum severity level to report (Error, Warning, Info)rules- Enable/disable validation rule categoriesexclude- Glob patterns for paths to exclude from validationtools- Target tools to validate for (claude-code, cursor, codex, copilot)target- Single target tool (deprecated, usetoolsinstead)tool_versions- Pin specific tool versions for version-aware validationspec_revisions- Pin specific specification revisions
See the configuration documentation for detailed usage information.