# Agent worktree

Source: https://diskcity.app/folders/agents-worktree

**Check before deleting.** Only if you're sure you don't need it. A git worktree an agent made. Unpushed work lives only here, so it goes to the Recycling Yard first.

## What it is

Agent worktree is personal data. Wherever it is on your disk: DiskCity recognises it by what's inside (for example a project's own files), not by one fixed path.

## Where it is

Wherever it is on your disk: DiskCity recognises it by what's inside (for example a project's own files), not by one fixed path.

## How to remove it

1. In Terminal, run `git status` inside it, and commit anything you want to keep.
2. Make sure its branch is pushed or merged: `git log @{upstream}..` lists commits that exist only here. Unpushed work lives only in this folder.
3. Leave anything opened or changed less than 30 days ago (for a folder, its newest file counts). DiskCity waits that long too.
4. Move the folder to the Trash, then run `git worktree prune` in its repository so git forgets it.

## What DiskCity does with it

DiskCity never deletes it outright: if you approve, it waits 30 days in the Recycling Yard first. Even with Autopilot on, it never removes it without your yes. It only suggests it once it hasn't been used for 30 days.
