> ## Documentation Index
> Fetch the complete documentation index at: https://ai.easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# WorktreeAction

> Represents the action to take when exiting a git worktree.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

**Namespace:** CloudNimble.ClaudeEssentials.Hooks

**Inheritance:** System.Enum

## Syntax

```csharp theme={null}
CloudNimble.ClaudeEssentials.Hooks.WorktreeAction
```

## Summary

Represents the action to take when exiting a git worktree.

## Remarks

Claude Code uses lowercase values for worktree actions in the wire format.

## Values

| Name | Value | Description |
| - | - | - |
| `Keep` | 0 | Leaves the worktree and branch on disk. |
| `Remove` | 1 | Deletes both the worktree and branch. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.