Configs
Configuration Examples & Templates
.codexrc — Standard Config
Standard Codex CLI configuration with GPT-4o and auto-commit.
{
"model": "gpt-4o",
"temperature": 0.3,
"auto_commit": true,
"commit_message_template": "{{action}}: {{summary}}",
"editor": "code",
"workspace": "./",
"ignore_patterns": [
"node_modules/",
".git/",
"dist/",
"build/"
],
"lint_before_commit": true,
"test_before_commit": false
} .codexrc — Advanced Config
Advanced Codex configuration with custom prompts and tool integration.
{
"model": "gpt-4o",
"temperature": 0.2,
"max_tokens": 8000,
"auto_commit": true,
"pre_commit_hooks": [
"npm run lint",
"npm run typecheck"
],
"custom_prompts": {
"refactor": "Refactor this code following SOLID principles",
"optimize": "Optimize for performance and readability",
"test": "Write comprehensive unit tests"
},
"tools": {
"search": true,
"shell": true,
"file_tree": true
},
"memory": {
"enabled": true,
"max_messages": 50
}
}