Workspace setup
A fresh workspace has only the files git tracks. Workspace settings say what else it needs: files to copy or sync from your branch, such as .env, and commands to run, such as npm install. Each workspace also gets its own ports and variables, so its app and its database don’t collide with the others.
The first question
Section titled “The first question”The first time you make a workspace in a project, Drakkar asks Set up workspaces for the project: New workspaces get only your branch and synced files. Under it, Not copied yet names the big untracked files and folders a workspace would miss, such as node_modules or .env, with their sizes.
- Nothing to set up creates the workspace now; Drakkar won’t ask again for this project.
- Ask ✻ claude starts Claude Code in a setup tab in your branch. It works out the settings with you and saves them. No workspace is created: make it once the agent is done.
- Set up… opens Workspace settings; the workspace is created after you click Done.
Esc closes the question without creating anything, and the next new workspace asks again.
Open Workspace settings
Section titled “Open Workspace settings”- Click the arrow next to New workspace in the sidebar and choose Workspace settings…
- Right-click a project on Welcome or in the project picker under +, and choose Workspace settings…
- In the New workspace dialog with options (⇧⌘N), click Workspace settings…
The card has FILES on one side and COMMANDS on the other. At the bottom, Ask ✻ claude to set up hands the job to the agent; Done saves.
Where the settings live
Section titled “Where the settings live”Stored in chooses who has them:
- Only me: the settings stay in Drakkar on this Mac. Only you see them, and their commands run without asking.
- Project: the settings go to
.drakkar/workspace/workspace.jsonin the project. Commit it to share them with everyone who clones the project; scripts the commands call can sit beside it in.drakkar/workspace/.
With Project, a second choice says what git sees of .drakkar/workspace/. Committed leaves it to git: commit the file and the scripts to share them. Kept local keeps the whole folder out of git through .git/info/exclude: the settings stay in the folder but only on this Mac. Kept local is off once git already tracks the folder.
Switching between the two asks first, Move settings to the project? or Move settings back to this Mac?, and says what happens to the file and the scripts.
Drakkar also reads .worktreeinclude, the list of files Claude Code copies into its worktrees, if the project has one.
Files: copy or sync
Section titled “Files: copy or sync”The list under Files for workspaces and agent copies names untracked files and folders a new workspace gets from your branch. Each line shows what it matches, such as 2 files, folder or not found, and one of two modes:
- copy: copied when a workspace or agent copy is made; edits stay there. Right for
.envand other local config. - sync: the workspace gets its own copy and brings your edits back on Merge. Copies an agent makes for itself don’t get a copy: they share your files. Sync takes one path that git ignores; for any other the mode is grey and asks you to add the path to
.gitignore.
Claude Code’s own files, such as CLAUDE.md, CLAUDE.local.md and .claude/, are synced without a line. .claude/settings.local.json is copied by default, since every copy keeps its own.
Add file or folder opens a menu: under SUGGESTED, files the project has that are worth adding, each added as sync; Choose file or folder… picks any other. Folders are cloned on APFS: no extra space, and a big one takes a few seconds.
A line git can see, because it’s neither tracked nor ignored, gets a warning: a new workspace wouldn’t get it, or would show it as uncommitted. Ignore on this Mac adds it to .git/info/exclude; nothing is committed.
Commands
Section titled “Commands”- Setup runs in each new workspace, before its agent starts, such as
npm install. Agents’ own copies don’t run it. - Full setup runs only when you or the agent ask: real data, the full stack. Right-click a workspace and choose Run full setup; the item is grey, with the reason, while the setup is running or has failed.
- Teardown runs when a deleted workspace is erased, after its time in the trash. Use it to drop what setup made outside the folder, such as the workspace’s database.
While setup or full setup runs, the workspace’s menu has Stop setup or Stop full setup. If setup fails, the workspace shows Setup failed with its exit code, and the agent doesn’t start. Show output shows what it printed; Run again, Edit settings…, Start claude anyway, or Ask ✻ claude to fix, which opens a tab in your branch for the agent to fix the setup. A failed full setup leaves the workspace as it was.
If a project copies a .env that names a database and has no setup, a new workspace warns: .env is copied as is — this workspace uses the same database as main. Ask claude to set up gives the job to the agent; Don’t show again for this project hides the warning.
Ports and variables
Section titled “Ports and variables”Each workspace gets a block of 10 free ports. Its terminals, setup, full setup and teardown get these variables:
| Variable | Value |
|---|---|
PORT |
The first port of the block, for a single server. |
DRAKKAR_PORT_BASE |
The first port again, for scripts that need several: $DRAKKAR_PORT_BASE…$DRAKKAR_PORT_BASE+9. |
DRAKKAR_PORT_COUNT |
How many ports the block has: 10. |
DRAKKAR_WORKSPACE |
The workspace’s name, such as ws-4. |
DRAKKAR_WORKSPACE_INDEX |
Its number, such as 4. |
DRAKKAR_WORKSPACE_KEY |
The name made safe for databases and schemas, such as ws_4. |
Your branch has none of them: it keeps the ports and the database it always had.
Allow, Skip and Revoke
Section titled “Allow, Skip and Revoke”Commands you type for Only me run as they are. Commands that came from elsewhere wait for you:
- Setup, full setup and teardown from the project’s
workspace.json, someone else’s included. The first workspace that would run them asks Run this setup? and shows them. Run runs them now and next time without asking; Drakkar asks again when the commands or the files in.drakkar/workspace/change. Skip makes the workspace without them: it shows Setup skipped, and Run setup now asks again. - Commands an agent saved. Workspace settings show them in a box above their field, with what the agent changed and Allow: they run only after you allow them.
Language servers can also run code from a project, so Files asks first: Start them for this project? Once you click Start, Workspace settings show Language servers: allowed · Revoke; Revoke takes it back. See Files.
A project on several machines
Section titled “A project on several machines”When a project is on this Mac and on servers, each machine has its own settings. The Machine select at the top of the card switches between them, and FILES splits in two:
- On every machine: kept the same everywhere; a change on one machine goes to the others. Put your skills and notes here.
- Only on a machine: only that machine’s workspaces get these.
Right-click a line and choose Share with all machines or Keep on this machine only, or drag it to the other group. If the machines hold different versions, Drakkar asks which one stays; the others go to the Trash on their machines. Send to a machine copies a line there once.
A shared line shows how it’s doing: Syncing to a machine, Offline for one that is off (it gets the files when it’s back), or Changed on two machines with Choose to keep one version. The whole .claude/ folder can’t be shared, since it holds each machine’s own settings and agent copies: Share parts of .claude/ picks the folders and files that can. See Servers.
A folder of several repositories
Section titled “A folder of several repositories”In a folder of several repositories, the card lists the folder and its projects. Setup, full setup and teardown are each project’s own and run in that project’s folder; nothing runs in the folder itself, which has only its files. In a workspace of the folder, each project gets its own ten ports, and DRAKKAR_PROJECTS lists the projects in it.