Ability to add working folders

Resolved 💬 10 comments Opened Aug 27, 2025 by att3 Closed Oct 19, 2025

What feature would you like to see?

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_

View original on GitHub ↗

10 Comments

dgunay · 10 months ago

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.
Alfredo-Sandoval · 10 months ago

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 · 10 months ago

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 · 10 months ago

This is huge, I have bunch of microservice repos needs to cross reference.

hcdiekmann · 10 months ago

this would be really nice

francescomugnai · 9 months ago

+1

Meowzz95 · 9 months ago

Yes we need this so we stop paying claude and pay openai instead

maguroid · 9 months ago

+1

Meowzz95 · 9 months ago

@tibo-openai amazing work

JonasJonny · 1 month ago

This is working too.

// config.toml
[sandbox_workspace_write]
writable_roots = ["/Users/xxxxx/Dir_1", "/Users/xxxxx/Dir_2"]

Via https://github.com/openai/codex/issues/13914#issuecomment-4017650273