> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stagewise.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Workspaces — Connect multiple project folders

> Connect multiple workspace folders to the stagewise agentic IDE. AI coding agents can read, write, and modify files across projects, shared libraries, and configuration folders simultaneously.

A workspace is a folder on your machine that you grant the agent access to. Unlike most AI coding tools that work in a single project directory, stagewise connects **multiple workspaces at once** — agents can work across projects, shared libraries, or configuration folders in a single session.

```mermaid theme={null}
graph TD
    subgraph "Your machine"
        W1[📁 frontend/<br/>React + Tailwind]
        W2[📁 backend/<br/>Node.js API]
        W3[📁 shared-lib/<br/>Design tokens]
        W4[📁 dotfiles/<br/>Config]
    end
    subgraph "stagewise"
        A[Agent instance]
    end
    W1 -->|"mount"| A
    W2 -->|"mount"| A
    W3 -->|"mount"| A
    W4 -->|"mount"| A

    A -->|"Read/write across all mounts"| O[Single reasoning context]
```

Each connected folder becomes a mount point inside the agent's unified environment. The agent reads from the shared library, modifies the frontend, and checks backend types — all in one message.

## Connecting workspaces

1. Click the workspace panel in the sidebar
2. Click **Add workspace** and select a folder
3. The workspace appears in the panel — the agent can now access it

There's no limit to how many workspaces you can connect. Disconnect a workspace at any time to revoke access.

<img src="https://mintcdn.com/stagewiseinc/yOk2iKqLyNP2SwWs/images/docs/workspace-selector.webp?fit=max&auto=format&n=yOk2iKqLyNP2SwWs&q=85&s=dea3b1e03925f19d1351bb64bfb310db" alt="Workspace selector showing create worktree, use existing worktree, create branch, and use existing branch options" width="1004" height="498" data-path="images/docs/workspace-selector.webp" />

*Workspaces can point at existing folders, branches, or isolated worktrees depending on how you want the agent to work.*

## What agents can do with workspaces

Once connected, agents can:

* Read any file or directory
* Create, edit, and delete files
* Search code with glob patterns and regex
* Run shell commands with the workspace as working directory

All file changes are tracked in the diff system — nothing happens silently.

## How agents see workspaces

Connected workspaces appear as mount points. Auto-generated project analysis in `.stagewise/WORKSPACE.md` helps the agent understand each workspace:

* Project type, languages, and runtime
* Package structure and dependency graph
* Build scripts and configuration
* Key files and their purposes

stagewise keeps WORKSPACE.md up to date across sessions. Commit it to source control so your team benefits, or add it to `.gitignore`.

## Multi-workspace workflows

Connecting multiple workspaces enables patterns like:

* **Frontend + Backend** — Separate frontend and backend repos as individual workspaces, so agents work across the full stack
* **Shared libraries** — Connect a component library alongside your main project, letting agents modify both in context
* **Configuration** — Connect a dotfiles or config repo for agents to reference

## Workspace safety

<Warning>
  Connected workspaces are **not sandboxed**. The agent operates directly on your filesystem with the same permissions you have. Only connect folders you're comfortable with the agent modifying.
</Warning>

Every change is tracked and reversible. Use [diff review](/core-concepts/diff-review) to inspect, accept, or reject changes.

## What's next

<CardGroup cols={2}>
  <Card icon="lightbulb" href="/core-concepts/agent-context" title="Agent context">
    Understand how WORKSPACE.md, skills, and @mentions give agents project awareness.
  </Card>

  <Card icon="brain" href="/core-concepts/how-agents-work" title="How agents work">
    See the full agent loop — from message to tool use to response.
  </Card>
</CardGroup>
