Zuse

Repository settings

Configure shared worktree behavior in .zuse/settings.toml.

Commit .zuse/settings.toml when everyone working in a repository should get the same Zuse setup. When you add a repository that has no settings file, Zuse creates a starter .zuse/settings.toml with empty scripts and common environment-file includes. User preferences remain in ~/.zuse/settings.json and can be overridden by applicable repository values.

schemaVersion = 1
autoCreateWorktree = false

file_include_globs = [
  ".env",
  ".env.local",
  ".env.*.local",
]

[scripts]
setup = "bun install"
run = "bun run dev"
archive = ""
auto_run_after_setup = false

[environment_variables]
NODE_ENV = "development"

Top-level fields

FieldPurpose
schemaVersionSettings format; currently 1
defaultProviderIdOptional provider default for this repository
defaultModelOptional model default
defaultRuntimeModeOptional runtime permission default
autoCreateWorktreeWhether new chats default to isolated worktrees
worktreeBaseDirOptional custom directory for worktree creation
file_include_globsLocal files linked into new worktrees
scriptsSetup, run, archive, and auto-run behavior
environment_variablesString values passed to repository scripts

Use the public schema at https://zuse.sh/schemas/repository-settings.schema.json for editor validation.

Edit settings in the app

Open a project's settings from the gear next to it in the sidebar, or from the project's entry under Repositories in Settings. The page edits the same file and is organized into:

  • Defaults: a repository Default agent and model, and a Default permission mode. Leave the overrides off to inherit your global settings.
  • Project permissions: Manage reviews and revokes saved tool permission decisions for this repository.
  • Worktrees: Auto-create a worktree for new chats sets whether the composer's workspace picker pre-selects a fresh worktree. The list shows this repository's existing worktrees and can remove a checkout; uncommitted changes are saved to its branch first.
  • Scripts: the setup, run, and archive scripts, and Auto-run after setup.
  • Environment variables and Worktree file includes.

Do not commit secrets in [environment_variables]. Use ignored local files and worktree file includes for machine-specific secrets.

On this page