Work in an existing checkout or an isolated Git worktree
A workspace is the local repository directory where your Code runs execute. It belongs to a project and contains its chat tabs, Git state, changes, and review history.A workspace can use your existing checkout or a separate Git worktree.
In Code, click Add Project or press ⌘N. You can add a local repository, clone a remote URL, or initialize a new repository. From a project, you can also create another worktree.Mains groups repositories by their remote origin. The working branch is read from Git, so branch changes made outside Mains also appear in the app.
Worktrees are off by default on new installs. Set Settings → Git → Worktrees to use separate working directories for new tasks. Existing preferences are retained when you update Mains.A worktree gives you another checkout and branch while sharing repository history. Use separate worktrees when several agents may edit the same files.
Two chats in one workspace share its files. Starting another chat does not create another worktree.
Workspace statuses include Backlog, Todo, In Progress, In Review, Done, Canceled, and Duplicate. Use them to organize local work.A local workspace status does not automatically update the issue in your connected tracker.
Archive a workspace from its menu to hide it while keeping its run and review history. Restore it from Settings → Archive.Archiving runs the project’s archive script when one is configured. It does not automatically remove the worktree. Restoring the record does not recreate a directory that a script or another tool removed.
Deletion removes the workspace record and its associated history. The delete flow can also remove a Mains-created worktree. It does not remove your original checkout through that worktree option.Use archive when you may need the history again.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mains","description":"Code, Work, and Chat with AI agents in Mains, with Atlas and connected task context","colors":{"primary":"#878580","light":"#fff","dark":"#0C0C0C"},"logo":{"light":"https://mintcdn.com/truelaurel/5xCc2j6h7zMlnmQQ/images/docs.png?fit=max\u0026auto=format\u0026n=5xCc2j6h7zMlnmQQ\u0026q=85\u0026s=586a97bae16dc9d71532c86534535906","dark":"https://mintcdn.com/truelaurel/5xCc2j6h7zMlnmQQ/images/docs.png?fit=max\u0026auto=format\u0026n=5xCc2j6h7zMlnmQQ\u0026q=85\u0026s=586a97bae16dc9d71532c86534535906"},"favicon":"https://mintcdn.com/truelaurel/b8FimJWSWgesRQSk/favicon.svg?fit=max\u0026auto=format\u0026n=b8FimJWSWgesRQSk\u0026q=85\u0026s=03d7b53377c5ffeb60b5c440bf3ba4a6","appearance":{"default":"system"},"background":{"color":{"dark":"#0C0C0C"}},"navbar":{"links":[{"href":"https://mains.dev","label":"Website"},{"href":"mailto:team@mains.dev","label":"Support"}],"primary":{"type":"button","label":"Download","href":"https://github.com/mainsdotdev/mains/releases/latest"}},"footer":{"socials":{"github":"https://github.com/mainsdotdev/mains"}},"fonts":{"family":"Geist"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"truelaurel","hasAudioNarration":false,"actualSubdomain":"truelaurel","customDomains":["docs.mains.dev"],"gitSource":{"type":"github","owner":"mainsdotdev","repo":"docs","deployBranch":"master","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae03dfe87a96311da527476","collectionId":"67508890-d3aa-47a1-b62f-29d92008dcd0","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae03dfe87a96311da527476"},"entitlements":{},"buildId":"6ae03dfe87a96311da527476","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"Guides","count":46},{"language":"default","tag":"Integrations","count":13},{"language":"default","tag":"Agents","count":11},{"language":"default","tag":"Code workflow","count":10},{"language":"default","tag":"Connections","count":8},{"language":"default","tag":"Core concepts","count":7},{"language":"default","tag":"Working with agents","count":6},{"language":"default","tag":"Mains Connect","count":6},{"language":"default","tag":"Codex","count":5},{"language":"default","tag":"Extend your agents","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"workspaces","slug":"/workspaces","pageMetadata":{"title":"Workspaces","description":"Work in an existing checkout or an isolated Git worktree","icon":"folder-open","href":"/workspaces"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Work in an existing checkout or an isolated Git worktree\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Note,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A workspace is the local repository directory where your `,_jsx(_components.strong,{children:`Code`}),` runs execute. It belongs to a `,_jsx(_components.a,{href:`/projects`,children:`project`}),` and contains its chat tabs, Git state, changes, and review history.`]}),`\n`,_jsx(_components.p,{children:`A workspace can use your existing checkout or a separate Git worktree.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-workspace`,children:`Create a workspace`}),`\n`,_jsxs(_components.p,{children:[`In Code, click `,_jsx(_components.strong,{children:`Add Project`}),` or press `,_jsx(_components.code,{\"data-symbols\":`true`,children:`⌘N`}),`. You can add a local repository, clone a remote URL, or initialize a new repository. From a project, you can also create another worktree.`]}),`\n`,_jsx(_components.p,{children:`Mains groups repositories by their remote origin. The working branch is read from Git, so branch changes made outside Mains also appear in the app.`}),`\n`,_jsx(Heading,{level:`2`,id:`worktree-isolation`,children:`Worktree isolation`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Worktrees are off by default on new installs.`}),` Set `,_jsx(_components.strong,{children:`Settings → Git → Worktrees`}),` to use separate working directories for new tasks. Existing preferences are retained when you update Mains.`]}),`\n`,_jsx(_components.p,{children:`A worktree gives you another checkout and branch while sharing repository history. Use separate worktrees when several agents may edit the same files.`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Two chats in one workspace share its files. Starting another chat does not create another worktree.`})}),`\n`,_jsx(Heading,{level:`2`,id:`workspace-tools`,children:`Workspace tools`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Tool`}),_jsx(_components.th,{children:`What you can do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/file-explorer`,children:`File explorer`})}),_jsx(_components.td,{children:`Search files, edit text, and attach code selections`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/diff-viewer`,children:`Changes`})}),_jsx(_components.td,{children:`Inspect the uncommitted diff and add feedback`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/git-actions`,children:`Git actions`})}),_jsx(_components.td,{children:`Manage branches, commit, pull, push, and create a PR`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/terminal`,children:`Terminal`})}),_jsx(_components.td,{children:`Run your own shell commands in the workspace`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/linked-tasks`,children:`Linked tasks`})}),_jsx(_components.td,{children:`Attach synced issue context`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/reviews`,children:`Reviews`})}),_jsx(_components.td,{children:`Inspect agent review findings`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/browser`,children:`Browser`})}),_jsx(_components.td,{children:`Preview an app and annotate elements`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`status`,children:`Status`}),`\n`,_jsxs(_components.p,{children:[`Workspace statuses include `,_jsx(_components.strong,{children:`Backlog`}),`, `,_jsx(_components.strong,{children:`Todo`}),`, `,_jsx(_components.strong,{children:`In Progress`}),`, `,_jsx(_components.strong,{children:`In Review`}),`, `,_jsx(_components.strong,{children:`Done`}),`, `,_jsx(_components.strong,{children:`Canceled`}),`, and `,_jsx(_components.strong,{children:`Duplicate`}),`. Use them to organize local work.`]}),`\n`,_jsx(_components.p,{children:`A local workspace status does not automatically update the issue in your connected tracker.`}),`\n`,_jsx(Heading,{level:`2`,id:`archive-and-restore`,children:`Archive and restore`}),`\n`,_jsxs(_components.p,{children:[`Archive a workspace from its menu to hide it while keeping its run and review history. Restore it from `,_jsx(_components.strong,{children:`Settings → Archive`}),`.`]}),`\n`,_jsx(_components.p,{children:`Archiving runs the project’s archive script when one is configured. It does not automatically remove the worktree. Restoring the record does not recreate a directory that a script or another tool removed.`}),`\n`,_jsx(Heading,{level:`2`,id:`delete-a-workspace`,children:`Delete a workspace`}),`\n`,_jsx(_components.p,{children:`Deletion removes the workspace record and its associated history. The delete flow can also remove a Mains-created worktree. It does not remove your original checkout through that worktree option.`}),`\n`,_jsx(_components.p,{children:`Use archive when you may need the history again.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Workspaces","description":"Work in an existing checkout or an isolated Git worktree","icon":"folder-open","href":"/workspaces"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create a workspace","slug":"create-a-workspace","depth":2,"children":[]},{"title":"Worktree isolation","slug":"worktree-isolation","depth":2,"children":[]},{"title":"Workspace tools","slug":"workspace-tools","depth":2,"children":[]},{"title":"Status","slug":"status","depth":2,"children":[]},{"title":"Archive and restore","slug":"archive-and-restore","depth":2,"children":[]},{"title":"Delete a workspace","slug":"delete-a-workspace","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"truelaurel","siteName":"Mains","title":"Workspaces - Mains","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-11T23:54:06.922Z","originalFileLocation":"workspaces.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Work in an existing checkout or an isolated Git worktree\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mains\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/truelaurel/NVSVhGTCMe3yQpu6/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/truelaurel/NVSVhGTCMe3yQpu6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/truelaurel/NVSVhGTCMe3yQpu6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/truelaurel/NVSVhGTCMe3yQpu6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/truelaurel/NVSVhGTCMe3yQpu6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/truelaurel/NVSVhGTCMe3yQpu6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/truelaurel/NVSVhGTCMe3yQpu6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/truelaurel/NVSVhGTCMe3yQpu6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/truelaurel/NVSVhGTCMe3yQpu6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Workspaces - Mains\">\u003cmeta data-mint-head property=\"og:description\" content=\"Work in an existing checkout or an isolated Git worktree\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mains\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mains.dev/workspaces\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://truelaurel.mintlify.app/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Workspaces\u0026amp;description=Work+in+an+existing+checkout+or+an+isolated+Git+worktree\u0026amp;theme=bc054ea503af9c21eb79f93d\u0026amp;signature=84a75c59a0bb08ef516ac41d31e9b958ab0d483896e3a55593bf91697f0d0b33\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Workspaces - Mains\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Work in an existing checkout or an isolated Git worktree\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://truelaurel.mintlify.app/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Workspaces\u0026amp;description=Work+in+an+existing+checkout+or+an+isolated+Git+worktree\u0026amp;theme=bc054ea503af9c21eb79f93d\u0026amp;signature=84a75c59a0bb08ef516ac41d31e9b958ab0d483896e3a55593bf91697f0d0b33\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/truelaurel/NVSVhGTCMe3yQpu6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mains\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#878580\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mains.dev/workspaces\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/workspaces.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mains.dev/#organization\",\"name\":\"Mains\",\"url\":\"https://docs.mains.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/truelaurel/5xCc2j6h7zMlnmQQ/images/docs.png?fit=max\u0026auto=format\u0026n=5xCc2j6h7zMlnmQQ\u0026q=85\u0026s=586a97bae16dc9d71532c86534535906\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mains.dev#website\",\"name\":\"Mains\",\"url\":\"https://docs.mains.dev\",\"publisher\":{\"@id\":\"https://docs.mains.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mains.dev/workspaces#webpage\",\"url\":\"https://docs.mains.dev/workspaces\",\"name\":\"Workspaces\",\"description\":\"Work in an existing checkout or an isolated Git worktree\",\"dateModified\":\"2026-10-11T23:54:06.922Z\",\"isPartOf\":{\"@id\":\"https://docs.mains.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mains.dev/workspaces#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mains.dev/workspaces#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core concepts\",\"item\":\"https://docs.mains.dev/spaces\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Workspaces\",\"item\":\"https://docs.mains.dev/workspaces\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.mains.dev/workspaces#article\",\"headline\":\"Workspaces\",\"name\":\"Workspaces\",\"description\":\"Work in an existing checkout or an isolated Git worktree\",\"url\":\"https://docs.mains.dev/workspaces\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mains.dev/workspaces#webpage\"},\"dateModified\":\"2026-10-11T23:54:06.922Z\",\"publisher\":{\"@id\":\"https://docs.mains.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mains.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mains\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Mains","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Getting started","pages":[{"title":"Introduction","icon":"house","href":"/introduction"},{"title":"Install Mains","icon":"download","href":"/install"},{"title":"Quickstart","icon":"bolt","href":"/quickstart"}]},{"group":"Core concepts","pages":[{"title":"Spaces","icon":"layer-group","href":"/spaces"},{"title":"Code, Work, and Chat","icon":"sliders","href":"/modes"},{"title":"Projects","description":"Share repository settings, lifecycle scripts, Git instructions, and issue resources across workspaces","icon":"diagram-project","href":"/projects"},{"title":"Workspaces","icon":"folder-open","href":"/workspaces"},{"title":"Collections and sources","description":"Group Work and Chat conversations and share material between them","icon":"folder-open","href":"/collections"},{"title":"Runs and conversations","icon":"wave-pulse","href":"/runs"},{"title":"Multiple sessions","icon":"comments","href":"/multi-session"}]},{"group":"Atlas","pages":[{"title":"Atlas","icon":"book-open","href":"/atlas"},{"title":"Atlas Pages","icon":"file-lines","href":"/pages"},{"title":"Documents and deliverables","icon":"file","href":"/documents"}]},{"group":"Working with agents","pages":[{"title":"Context and attachments","icon":"paperclip","href":"/context-injection"},{"title":"Approvals and questions","icon":"hand","href":"/approvals"},{"title":"Voice conversations","icon":"microphone","href":"/voice"},{"title":"In-app browser","icon":"globe","href":"/browser"},{"title":"Lens","icon":"camera","href":"/lens"},{"title":"Search","icon":"magnifying-glass","href":"/search"}]},{"group":"Code workflow","pages":[{"title":"Code workflow","icon":"route","href":"/workflow"},{"title":"Files and editor","icon":"folder-tree","href":"/file-explorer"},{"title":"Review changes","icon":"code-compare","href":"/diff-viewer"},{"title":"Turn changes and Undo","icon":"rotate-left","href":"/turn-changes"},{"title":"Git actions","icon":"code-branch","href":"/git-actions"},{"title":"Linked tasks","icon":"link","href":"/linked-tasks"},{"title":"Tasks","icon":"list-check","href":"/tasks"},{"title":"Pull request review","icon":"code-pull-request","href":"/pull-requests"},{"title":"Agent code reviews","icon":"comment-dots","href":"/reviews"},{"title":"Terminal","icon":"terminal","href":"/terminal"}]},{"group":"Scheduling","pages":[{"title":"Pulse","icon":"clock","href":"/pulse"},{"title":"Connection auto sync","icon":"arrows-rotate","href":"/automations"}]},{"group":"Mains Connect","pages":[{"title":"Mains Connect","icon":"tower-broadcast","href":"/relay/overview"},{"title":"Share this machine","icon":"desktop","href":"/relay/share-this-machine"},{"title":"SSH tunnel","icon":"terminal","href":"/relay/ssh-tunnel"},{"title":"Direct connection","icon":"network-wired","href":"/relay/direct-connection"},{"title":"Mains Server","icon":"server","href":"/server"},{"title":"iPhone companion","icon":"mobile-screen","href":"/mobile"}]},{"group":"Bridge","pages":[{"title":"Bridge","icon":"arrows-rotate","href":"/bridge/overview"},{"title":"Get started with Bridge","icon":"right-to-bracket","href":"/bridge/get-started"},{"title":"Work across devices","icon":"laptop","href":"/bridge/work-across-devices"},{"title":"Bridge privacy and security","icon":"lock","href":"/bridge/security"}]},{"group":"Preferences","pages":[{"title":"Settings","icon":"gear","href":"/settings"},{"title":"Keyboard shortcuts","icon":"keyboard","href":"/keyboard-shortcuts"},{"title":"Usage dashboard","icon":"chart-column","href":"/stats"},{"title":"Privacy and data","icon":"shield","href":"/privacy"},{"title":"FAQ and troubleshooting","icon":"circle-question","href":"/faq"}]}]},{"tab":"Agents","pages":[{"title":"Agents","href":"/claude/configuration"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/connections"}]}]},"basePath":"","title":"Workspaces - Mains","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":[],"chunks":[]}