# OpenCode Validates the OpenCode project config — `opencode.json` or `opencode.jsonc`, at the repository root or under any `.opencode/` directory — where a misspelled key is read, ignored and never reported. OpenCode 2.0 renames much of the schema while still loading the 1.x spelling, so **both vocabularies are accepted**. OpenCode merges `agent`/`agents` and `command`/`commands` by entry name; only conflicting definitions of one name are reported. Comments and trailing commas are fine — OpenCode reads `.json` through a JSONC parser. OpenCode reads AGENTS.md for portable instructions, so no OpenCode-specific instruction format is validated. Its commands, agents, skills and repository-local files matched by `instructions` paths or globs get the shared content rules; remote URLs are not fetched. Enabled automatically wherever an `opencode.json` or `opencode.jsonc` exists, or a `.opencode/` directory holds OpenCode content. | Rule ID | Description | Default Severity | Autofix | |---------|-------------|------------------|---------| | [`opencode-config-valid`](opencode-config-valid.md) | opencode.json and opencode.jsonc must parse and use keys and MCP server shapes OpenCode reads | error (auto) | - |