Make agent aware of dirs added with --add-dir
Resolved 💬 3 comments Opened Apr 2, 2026 by ClassicOldSong Closed May 10, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
0.118.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.4
What platform is your computer?
macOS
What terminal emulator and version are you using (if applicable)?
Ghostty
What issue are you seeing?
When I start a session with codex --add-dir /path/to/dir, I have to tell codex to check the directory manually each time, and the dir isn't auto-completable which makes the experience not great.
What steps can reproduce the bug?
- Start a session with
codex --add-dir /path/to/some/other/dir - Ask questions about things in that dir, try to use
@to mention files there
What is the expected behavior?
@ should be able to complete files in the added dir, and agent should try to look into the added dir automatically
Additional information
_No response_
3 Comments
This feature request hasn't received enough upvotes, so I'm going to close it.
is this reopenable?
@jjiangweilan, you're welcome to open a new feature request.