Copy .env and local files into a new worktree
Git only checks out tracked files. Anything in .gitignore (.env, local config, certificates for a dev server) is missing from a new worktree, and the agent's first build or test run fails on it.
Checked 29 November 2026
By hand
Copy-Item ..\..\shop\.env .\.env
Copy-Item ..\..\shop\config\app.local.toml .\config\This works for one or two files and is easy to forget for the third. Prefer copying over linking: a linked .env that one agent edits changes it for every other worktree.
With an include list
Ourkite Bot reads .ourkite/include in the main checkout and copies every match into each new workspace. One pattern per line, relative to the repository root; * and ? match inside one folder name, ** matches any number of folders, and a folder name copies everything under it.
# copied into every new workspace
.env*
config/**/*.local.toml
local- Existing files are never overwritten, so a tracked file always wins.
- Nothing outside the repository is read or written:
.., absolute paths, drive letters,!and.gitpatterns are ignored and reported. - A symbolic link is followed only when it points to a file inside the repository.
node_modules,target,.venvand.gitare never searched.- At most 1000 files and 64 MB per workspace. The reply lists what was copied.
Dependencies and generated files
Copying node_modules is slow and fragile; install instead. .ourkite/setup.toml lists commands to run in each new worktree:
commands = ["npm ci", "pwsh -File scripts/dev-setup.ps1"]
timeout_secs = 300Because an agent could edit that file, nothing runs until a person approves this exact setup with ourkite setup approve, typing the first eight characters of its fingerprint. The fingerprint covers the file and every script it names, so a changed script is not run until it is approved again.
Try the preview
The preview is shared by email while the signed installer is prepared. Tell us how many agents you run and what you would want first.
- Windows 10 or 11, 64-bit
- Claude Code, signed in
- git
Windows 10 and 11 · Claude Code · early preview