Skip to content

Project Rules

The projects block lets you enable or disable Zwischen for specific directories. This is useful when you want monitoring on most projects but need to exclude certain repos.

Format

projects:
  - path: ~/work/sensitive-repo
    enabled: false
  - path: ~/work
    enabled: true

Each entry has:

Key Type Description
path string Directory path (tilde-expanded)
enabled boolean Whether Zwischen monitors sessions in this directory

Resolution

Entries are evaluated in order. The longest matching path wins. In the example above:

  • ~/work/sensitive-repo → disabled (matches the first, more specific rule)
  • ~/work/any-other-repo → enabled (matches the second rule)
  • ~/personal/project → enabled (no match, Zwischen is enabled by default)

If the projects block is omitted entirely, Zwischen is enabled everywhere.

Common patterns

Monitor everything except one repo

projects:
  - path: ~/work/internal-tools
    enabled: false

Monitor only specific directories

projects:
  - path: ~/
    enabled: false
  - path: ~/work/production
    enabled: true
  - path: ~/work/client-projects
    enabled: true

Tip

Project rules only control whether Zwischen activates at all. They don't affect which profile or model is used — that's handled by Profiles.