Add support for `/add-dir` (let Codex see multiple projects, not just one folder)
Resolved 💬 8 comments Opened Sep 8, 2025 by rockmandash Closed Oct 19, 2025
What feature would you like to see?
Right now Codex feels kinda nearsighted 👓 — it only looks at the folder where I launched it.
But in real life, projects aren’t that clean. I’ve got a frontend repo talking to a backend repo, plus a shared/ folder with types, plus an infra repo with scripts… you get the idea.
Today, my “workflow” is basically:
- copy stuff manually across repos
- or start another Codex session and lose context
- or do symlink shenanigans that make me feel like a hacker from the 90s
Meanwhile, Claude Code already has this cute trick: --add-dir (at startup) and /add-dir (mid-session). You just point it at another repo, and boom, it can see it. Super handy when you’re juggling FE/BE or polyrepos.
I’d love Codex to get the same superpower:
codex --add-dir ../backend ../sharedat launch/add-dir ../infrawhile chatting- maybe even
/remove-dirwhen you realize you went too far 🗑️
Are you interested in implementing this feature?
I don’t mind testing or writing up real-world examples, but I’ll leave the actual code to you folks.
Additional information
_No response_
8 Comments
I think this also requires in the extension and add files/folders button in the chat with a file/folder picker.
Would love to see this - it's a very common scenario when using agents to help port from one language to another (or one framework to another etc. etc.). Right now, Codex is a bit hamstrung compared to CC for these scenarios.
Looks like a duplicate of https://github.com/openai/codex/issues/2797
+1
+1
+1 looking forward to see it in the next release
This is working too.
Via https://github.com/openai/codex/issues/13914#issuecomment-4017650273
For now, this is the only solution available. Still, looking forward to better support for slash commands.