You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ability to add additonal working folders outside the current folder, that the agent can access
Very useful for me, as we have lots of git repos that are somewhat interconnected, which context the agent needs when fixing a trivial bug.
Claude code has this feature:
_The new --add-dir feature lets you specify additional working directories.
Example: Working on a frontend while referencing your backend API: claude --add-dir ~/project/backend-api
Note: The current working directory is always included. The root .. file appears to not be read in automatically from the additional directories added via --add-dir.
Now Claude can read/edit files in both your current frontend directory and the backend directory simultaneously.
Project structures can now be better separated based on what they concern and we can even temporarily expose projects._
Are you interested in implementing this feature?
No response
Additional information
No response
Reacted by Alfredo Sandoval, mmarie, Shundo Kishi, Aaron Weisberg, craffael, Joseph, Adam Johns, Dex Hünter, Chris Bartholomew, Dmitrii Selivanov and 45 more
This would be super helpful for me as one of the biggest sticking points of --full-auto in my workflow is that I have to constantly approve commands like:
All git commands my agents run tend to fail because they try to work in the main .git folder from a git worktree
The Go build cache is typically outside the working directory. If I work around this by setting GOCACHE to a folder in the working directory, it consumes a lot of disk space.
It's also useful for monorepos, I use it to closely mirror the workspace configuration I use for VSCode when working with Claude. Not having this feature is a huge pain point when working with codex.
Activity
dgunay commentedon Aug 27, 2025
This would be super helpful for me as one of the biggest sticking points of
--full-autoin my workflow is that I have to constantly approve commands like:gitcommands my agents run tend to fail because they try to work in the main .git folder from a git worktreeGOCACHEto a folder in the working directory, it consumes a lot of disk space.Alfredo-Sandoval commentedon Aug 27, 2025
Native '@Dir/' would be amazing. Currently have to copy paste path of the dir with sandbox off to get this. Would be a big QOL improvement.
mohassan-dev commentedon Aug 28, 2025
It's also useful for monorepos, I use it to closely mirror the workspace configuration I use for VSCode when working with Claude. Not having this feature is a huge pain point when working with codex.
rockmandash commentedon Sep 5, 2025
This is huge, I have bunch of microservice repos needs to cross reference.
hcdiekmann commentedon Sep 12, 2025
this would be really nice
francescomugnai commentedon Sep 29, 2025
+1
Meowzz95 commentedon Oct 2, 2025
Yes we need this so we stop paying claude and pay openai instead
maguroid commentedon Oct 7, 2025
+1
/add-dir(let Codex see multiple projects, not just one folder) #3303 as a duplicate of this issue/add-dir(let Codex see multiple projects, not just one folder) #3303 as a duplicate of this issuefeat: add --add-dir flag for extra writable roots (openai#5335)
Meowzz95 commentedon Oct 19, 2025
@tibo-openai amazing work
feat: add --add-dir flag for extra writable roots (openai#5335)
feat: add --add-dir flag for extra writable roots (openai#5335)
feat: add --add-dir flag for extra writable roots (openai#5335)
feat: add --add-dir flag for extra writable roots (openai#5335)
JonasJonny commentedon May 27, 2026
This is working too.
Via #13914 (comment)