---
title: WorktreePath
description: A Worktree of the Repo Slots `S`.
---

# `WorktreePath`

Type, in `@jr2/orchestrator/src/worktree.ts`. It is an export of `@jr2/orchestrator`, in the [Effects](group-effects.md) group of the [Authoring surface](../authoring-surface.md) page.

```ts
type WorktreePath<S extends string> = `/work/${S}/${NameStart}${string}`;
```

A Worktree of the Repo Slots `S`. One segment below the slot, that starts with a letter, a
digit or `_`: `${context.workspace.repos.app}/run`. The compiler sees the start of the name; a
`/` further on is the Effect's own refusal.
