Workflow
Codex repository instructions, sandbox and session checks
Check AGENTS.md precedence, select an approval and sandbox configuration, and verify behavior after compaction or resume.
Sources checked:
What you can do
Give Codex stable repository rules and verify the session actually applies them.
Use a harmless task to check path, permissions and effective guidance before changes.
Build your execution checklist
Inputs are processed in this browser only and cleared when you close or refresh the page.
The agent is using an unexpected command or instruction in a subdirectory.
Read the full steps
Verify nested AGENTS.md precedence
The agent is using an unexpected command or instruction in a subdirectory.
- Identify CODEX_HOME, Git root and the working directory. List AGENTS.override.md, AGENTS.md and configured fallback filenames on that path.
- Open a fresh Codex CLI session in the actual subdirectory. Ask it to identify the instruction files and a harmless command they select.
- If guidance is missing, look for an earlier override or the configured document byte cap. Give each folder a narrow rule and repeat the check.
Diagnose a blocked Codex workspace write
A write fails or asks for permission even though the repository looks writable.
- Read the agent's active sandbox profile, approval policy and exact denied path. Check the resolved path and the active worktree.
- Use workspace-write for intended workspace edits and check whether the denied path is outside allowed roots. Use on-request only when the surrounding policy allows review for a specific action.
- Reproduce with a harmless test file in the intended root. Compare with one known out-of-scope path without modifying it.
Preserve and verify instructions across compact and resume
A resumed Codex session seems to have lost task details.
- Put durable repo constraints in AGENTS.md. Write down the exact remaining task, working directory, test state and session ID before compacting.
- Resume the intended chat by ID from the matching project. Ask it to restate the next command and active constraints before allowing edits.
- If behavior still diverges, reproduce with a benign task. Record Codex version, platform, exact commands and before/after output for an issue.
- Developer commands
- Command line options
- /compact silently drops trailing instructions intended for after compaction · Issue #48572 · openai/codex · GitHub
- Compaction state is not synchronized between Codex App and CLI, and /compact cannot recover a resumed long thread · Issue #29302 · openai/codex · GitHub
Put durable guidance and repeatable procedures in the right file
You are deciding between AGENTS.md and SKILL.md.
- Put setup, lint commands and repository rules in the appropriate AGENTS.md scope. Keep procedure-heavy work in a skill when it has a clear repeatable trigger.
- Give the skill a specific name, description, inputs and outputs, and include the required references or scripts.
- Run one matching task and one unrelated task to verify activation, then separately verify the repository rules are visible from the relevant working directory.
Scope & limits
- Actual configuration is constrained by company policy, runtime and installed version.
Verified sources
- Custom instructions with AGENTS.md
- Agent approvals & security
- Developer commands
- Command line options
- /compact silently drops trailing instructions intended for after compaction · Issue #48572 · openai/codex · GitHub
- Compaction state is not synchronized between Codex App and CLI, and /compact cannot recover a resumed long thread · Issue #29302 · openai/codex · GitHub
- Build skills
Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.