---
title: SlotHandles
description: The handles of a Workspace that declares Repo Slots.
---

# `SlotHandles`

Type, in `@jr2/orchestrator/src/workspace.ts`. The signature of an export, or a type that it names, names this type. The [Authoring surface](../authoring-surface.md) page lists each export. This type is not an export of `@jr2/orchestrator`, so a workflow module does not import it by name.

```ts
type SlotHandles<TSlots extends string> = {
  repos: Record<TSlots, string>;
  branch: string;
  review?: Partial<Record<TSlots, string>>;
};
```

The handles of a Workspace that declares Repo Slots. @internal

**Fields**

- `repos`: `Record<TSlots, string>`

  The absolute path of each Repo Slot's Worktree, `/work/<slot>/<branch>`, in the order that
  `repos` declares the slots. Give one to an Agent's Turn as its `cwd`.
- `branch`: `string`

  The branch that the Workspace works on: the `branch` of the spec.
- `review` (optional): `Partial<Record<TSlots, string>>`

  The path of each Repo Slot's review Worktree. Present only when the spec has `reviewSha`.
  Give one to a reviewer's Turn as its `cwd`.
