Configuration and Skills
This exercise builds on the CSV task and its project instructions. In that scratch repository, add a project setting and a reusable score-reporting skill. You can check each change independently.
Set and inspect a project default
Section titled “Set and inspect a project default”Create .codex/config.toml at the scratch repository root.
model_reasoning_effort = "medium"Start Codex from the repository and mark the scratch project trusted if prompted. Run /debug-config to inspect the configuration layers. Check that the project file appears as an enabled layer. In /status, read the reasoning effort alongside the model name. For a model that supports it, this setting requests medium reasoning effort. Its effect depends on the selected model and the applicable managed requirements. Config basics · Inspect settings
Start a fresh session with an explicit override and compare the effort shown by /status with the first session, keeping the model fixed.
codex -c 'model_reasoning_effort="low"'| Situation | Value selected by the config loader |
|---|---|
User config says low, trusted project config says medium |
medium |
Same files with an explicit CLI override of low |
low |
User config says low, project is untrusted |
low |
A project layer supplies defaults. CLI overrides take precedence over it, and managed requirements can constrain the valid settings. Configuration precedence
Package the score report as a skill
Section titled “Package the score report as a skill”Create .agents/skills/score-report/SKILL.md in the same repository.
---name: score-reportdescription: Validate scores.csv and report invalid rows and the mean of valid scores.---
1. Read scores.csv and identify the id and score columns.2. Report the IDs with scores outside the inclusive range [0, 1].3. Report the mean of valid scores to two decimal places. If none qualify, state that the mean is undefined.4. Name the input file and keep it unchanged.In a fresh interactive session, enter $score-report Give me the score report for scores.csv. in the composer. For the scratch CSV, expect r2 and 0.60. The skill’s name and description support discovery. Its body describes the procedure Codex reads when it uses the skill. Build skills and local discovery
| Use | Put it in |
|---|---|
| A repo convention that applies across tasks | AGENTS.md |
| A client setting, such as the requested reasoning effort | .codex/config.toml |
| A repeatable procedure with a clear trigger and output | .agents/skills/<name>/SKILL.md |
Diagnose discovery and execution separately
Section titled “Diagnose discovery and execution separately”- If the setting looks wrong, check
/debug-configfor the file and override that supplied it. Verify the session started in the intended project. - If the skill is missing from
/skillsor the$picker, check its folder, filename, and YAML frontmatter, then start a fresh session. - If the skill runs and the report is wrong, independently calculate
r2and0.60from the scratch CSV. Discovery and correct execution are separate checks. Inspect settings · Skill invocation
Evidence. With Codex CLI 0.172.0, an isolated App Server config/read check returned medium for the trusted project, low with the CLI override, and low when the project was untrusted. The skills/list check found the skill at its repo path. The sample report is the expected calculation from the input data. Config read parameters · Skills list parameters
Continue with MCP Integration to connect an external tool, or read Prompt Construction and Tool Declarations to see how another part of the runtime shapes model input.