Multiple directories, one project
for every AI agent you start
A game in one folder and its port to a newer engine version in another. A web app and the API it calls, in two repositories. A shared library next to the apps that use it. Your agents need both sides, and moving the folders under one parent would break a setup that works.
Link the other folders to the project instead. They stay where they are and keep their own version control. Every agent you start in the project gets them: through --add-dir on Claude Code, Codex, GitHub Copilot CLI, Antigravity CLI, Kimi Code, Mistral Vibe and Command Code, and in its brief for the other CLIs. The Changes tab then reviews and commits each repository.
A real session, filmed in the app: a shop lives in one git repository and its API in another folder with its own repository. Linked folders, in Project settings, adds the API folder to the project without moving it. One instruction, free shipping from 50 euros, and the agent edits a file in the API and one in the shop, with no permission prompt. The repository picker of the Changes tab then shows each repository apart, and each one is committed on its own.
- /work/web-appProject folder · git
- /work/apiLinked folder · git
- /work/shared-libLinked folder · git
One project, three repositories: each agent starts in the project folder and gets the two others, in the form its CLI understands.
An agent starts in one folder, and most CLIs keep it there. It can often read around, but editing outside its working directory means a permission prompt, a sandbox refusal, or a flag you have to remember on every launch. That holds until the work spans two places: the app and its API, a game and its copy on a newer engine, a library and the projects that consume it.
The usual fixes cost something. Moving both folders under one parent breaks paths, scripts and editor setups that worked. A symlink confuses some tools and hides where the files really live. Typing --add-dir on every launch works until the one launch where you forget it.
Linked folders are a list kept on the project. You add a folder once, in Project settings, General, Linked folders. From then on every agent of the project, whether you start it from the agent list, from a backlog ticket or from your phone, gets those folders, and each folder keeps its own repository.
What linked folders do
A list on the project, read at every launch. A project without linked folders works exactly as before.
Folders stay where they are
Pick a folder with the system folder picker. Nothing is moved, copied or symlinked, and each folder keeps its own repository, branch and history. Up to ten folders per project.
The right flag for each CLI
Claude Code, Codex, GitHub Copilot CLI, Antigravity CLI, Kimi Code, Mistral Vibe and Command Code receive each folder through their own --add-dir flag, at agent launch.
Named in the agent's brief
Every agent, whatever its CLI, also gets a short block in its brief: the folders, that they belong to the project, and that git runs from inside each one. The CLIs without a flag reach them by full path when their sandbox allows it.
Commit each repository
In the Changes tab, a repository picker lists the project folder and every linked folder that is a git repository. Pick one to see its diff, then stage, commit and push it.
Same on the phone
An agent started from the AgentsRoom mobile app gets the same flags and the same brief, because the desktop builds the launch. The phone shows the linked folders in the project menu, and its Changes screen offers the linked repositories too.
Checked at launch
A folder missing from the disk, on an unplugged drive for example, stays in the list with a warning and is skipped at launch, with one line in the terminal. The project folder itself and duplicates are refused.

How it works
Four steps, and the first two happen once per project.
- 1
Open the project settings
Project settings, General, Linked folders. The field says which CLIs receive the folders through a flag and how the others reach them.
- 2
Add a folder
Add a folder opens the system folder picker, and the folder is saved at once. The cross next to it removes it from the project later: nothing on disk changes.
- 3
Start an agent
Start any agent of the project as usual: from the agent list, from a backlog ticket or from your phone. It starts in the project folder and has the linked folders too.
- 4
Review and commit each repository
Open the Changes tab and pick a repository: the project folder or a linked folder. Read its diff, then stage, commit and push it there. Each folder keeps its own history.

Claude Code and Codex can already add a directory. Here is what changes
Claude Code takes --add-dir when it starts and /add-dir during a session, and keeps a lasting list in additionalDirectories of its settings files. An added directory gets file access under the same permission rules as the working directory. From a directory passed with --add-dir or /add-dir it also loads skills, commands and subagents, but not its CLAUDE.md unless CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 is set; a directory listed in a settings file only grants file access. Checked on the Claude Code documentation and version 2.1.300 in October 2026.
Codex has --add-dir too, which makes a directory writable alongside the main workspace, and writable_roots under sandbox_workspace_write in config.toml for a lasting list (codex-cli 0.162.1). GitHub Copilot CLI, Antigravity CLI, Kimi Code, Mistral Vibe and Command Code each have their own --add-dir.
So the flag is not the new part. What AgentsRoom adds is the list kept on the project and passed to every agent at every launch, in the form each CLI expects (Claude Code needs the flag and the folder in one piece, as in --add-dir=/work/api, otherwise the option swallows the prompt that follows it), the same brief for the CLIs that have no flag, launches from the phone that get the same folders, and a Changes tab that commits each repository. AgentsRoom does not set CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD for you.
What to know
- Automatic commits when a ticket is done, one worktree per ticket and team step diffs stay on the project folder. In a linked folder, you review and commit by hand.
- The list is saved on each computer, because a path like D:\Games\UE5 means nothing on another machine. Add the folders again on your other computers.
- An agent started on a remote server over SSH does not get the linked folders: they are paths on this computer. A line in its terminal says so.
- OpenCode, Aider, Grok Build, Amp, oh-my-pi, Freebuff, Devin, Cursor, Muse Code, Pi, MiniMax Code and ZCode have no flag for an extra directory. Their agents find the folders in their brief and reach them by full path only when their own sandbox lets them.
- The phone shows the list but does not edit it: a folder is picked with the folder picker of the computer.
- Ten folders per project at most, because a launch command has a length limit on Windows.
Frequently asked questions
Ask us something elseHow do I give Claude Code access to multiple directories?
Can Codex work across multiple repos?
Can one project include several git repositories?
Are my folders moved, copied or symlinked?
Which agent CLIs get the linked folders?
Does the agent read the CLAUDE.md of a linked folder?
Do worktrees and auto-commit cover the linked folders?
Do linked folders follow me to my other computers?
Does it work on Windows and Linux?
You may also like
Multi-project · Multi-agent · Parallel
AgentsRoom runs AI agents in parallel across multiple projects, all in a single window: Claude, Codex, GitHub Copilot CLI, Cursor and 15 other agent CLIs. Color-coded roles, live status, per-project counters, native desktop and mobile notifications. The visual alternative to 12 terminal tabs and the chaos of Claude Code sessions scattered across iTerm2, Warp and tmux.
Git Worktrees
Give each AI agent or ticket its own git worktree, ready to build (dependencies installed, .env copied), then review, commit and merge it from one window.
Per-Agent Review
Review code changes from each AI agent separately. AgentsRoom tracks which Claude Code agent modified which files. Filter diffs by agent, review individually, commit per agent for clean git history.
Multi-Provider
AgentsRoom supports 19 AI coding providers: Claude, Codex, GitHub Copilot CLI, OpenCode, Antigravity CLI, Aider, Grok Build, Mistral Vibe, Kimi Code, Amp, oh-my-pi, Freebuff, Devin, Cursor, Command Code, Muse Code, Pi, MiniMax Code and ZCode. Assign a different provider per agent, switch provider mid-conversation, and keep full context with automatic handoff. The best multi-provider AI coding tool.
SSH Connections
Save your SSH connections, open a built-in terminal over SSH, and run Claude Code, Codex or Antigravity CLI directly on your remote server or VPS. SSH key or password auth, per-project connection profiles, no separate SSH client needed.
Give your agents the whole project
Download AgentsRoom, open your main repository as the project and link the others in Project settings, General, Linked folders.
Companion app: monitor your agents on the go
Bring your own: Claude, Codex, Antigravity CLI, or other AI provider.
Push bugs and requests straight to your public backlog.
Agents you read like a conversation
Each agent has a role, a face, and a thread you read like a messaging app.
