[BUG] Codex cannot discover scripts in skill's scripts directory
Open 💬 9 comments Opened Jan 14, 2026 by PaulRBerg
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.80.0
What subscription do you have?
Pro
Which model were you using?
Codex 5.2 High/Medium
What platform is your computer?
Darwin 25.2.0 arm64 arm
What issue are you seeing?
<img width="745" height="200" alt="Image" src="https://github.com/user-attachments/assets/cd1809c0-081a-4acd-a55a-0e7a1aa91db4" />
When a skill includes a scripts directory with executable scripts (e.g., Python scripts), Codex fails to discover and use them. Instead, it:
- Lists the
scriptsdirectory but reports it as empty - Searches for scripts by name (e.g.,
rg --files -g 'scan-*.py') but doesn't find them - Falls back to using reference files for manual patterns, concluding "no scripts are available"
The scripts exist on disk and work correctly when invoked manually or through Claude Code.
What steps can reproduce the bug?
- Create a skill with a
scriptsdirectory containing executable scripts (e.g.,.claude/skills/codebase-audit/scripts/scan-react.py) - Reference these scripts in the skill's
SKILL.mdfile - Run Codex and invoke the skill
- Observe that Codex cannot find or use the scripts, despite them existing at the expected path
What is the expected behavior?
Codex should:
- Correctly discover scripts in the skill's
scriptsdirectory - Be able to execute these scripts when the skill instructions reference them
- Have the same file discovery capabilities as Claude Code for skill components
Additional information
Screenshot showing the issue:
- Codex "Explored" →
List scriptsbut found the folder empty - Codex searched with
rg --files -g 'scan-*.py'but found nothing - Codex concluded "since no scripts are available" and fell back to reference files
This suggests either:
- The working directory context is incorrect when listing the scripts folder
- The
scriptsdirectory path is not being resolved relative to the skill's location - There's a sandboxing or permission issue preventing file discovery in skill directories
9 Comments
Thanks for the bug report.
How are you referencing the script within your skill file? Does it use a relative path? I ask because we received a similar report about relative paths from an internal (OpenAI) user.
Like this:
````markdown
Workflow
Step 1: Run Checks
Use the domain-specific scanners in
scripts/to identify issues.Running Checks
````
And the
scriptsare defined in.claude/skills/codebase-audit, with.codexdirectory symlinked to.claude.I can reproduce this issue. Will work on a fix.
Possibly related
Personally I’d just edit the skill creator SKILLS.md to the full path or paths it needs to check but can’t say that’s the best way.
Any updates on this?
I noticed Codex Desktop Windows gave me this message today:
It's right there. I'm following the conventions established in Using scripts. _How is Codex unaware of a Skill's own Scripts?_ 🫤
Yeah this has continued to happen for me, too.
I noticed that this very rarely happens with xhigh. But with less intelligent models, it happens often.
Interesting because I tend to use Medium / 5.5 / Standard.