require-valid-agent-nickname-candidates
Require custom-agent nickname_candidates to be a non-empty array of unique supported names.
Rule catalog ID: R023
Targeted pattern scope
**/.codex/agents/*.toml
What this rule reports
- Codex custom-agent nickname candidates must be unique.
- nickname_candidates must be a non-empty string array using only ASCII letters, digits, spaces, hyphens, and underscores.
Why this rule exists
Require custom-agent nickname_candidates to be a non-empty array of unique supported names.
❌ Incorrect
A file in the targeted scope that produces any diagnostic listed above is incorrect for this rule.
✅ Correct
A file is correct when it uses the documented Codex structure and produces no diagnostic from this rule.
Behavior and migration notes
Included in:
codex.configs.recommendedcodex.configs.strictcodex.configs.all
ESLint flat config example
The preset layers supply the correct Markdown, TOML, or JSON language configuration. Override the rule only in a later matching flat-config entry:
import codex from "@typpi/eslint-plugin-codex";
export default [
...codex.configs.recommended,
{
rules: { "codex/require-valid-agent-nickname-candidates": "error" },
},
];