# Old Cursor agent versions

Source: https://diskcity.app/folders/agents-cursor-agent-old-versions

**Safe to delete.** Yes. Cursor's agent CLI downloads a version again if it ever needs one.

## What it is

Cursor's agent CLI's installer keeps every version it downloads here and switches the ~/.local/bin/cursor-agent link to the newest; older ones are never run again.

The newest version and whatever the launcher link points to stay; a launcher that can't be read keeps them all.

## Where it is

- `~/.local/share/cursor-agent/versions/*`

## How big is it?

```sh
du -sh "$HOME/.local/share/cursor-agent/versions"
```

## How to remove it

1. Quit cursor-agent first.
2. In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
3. Keep the newest version (by the version number in the name), and the version `~/.local/bin/cursor-agent` points to (`readlink ~/.local/bin/cursor-agent` shows it; if it shows nothing, keep them all). Only older ones may go.
4. Leave anything opened or changed less than 1 day ago (for a folder, its newest file counts). DiskCity waits that long too.
5. Move only what passes these checks to the Trash.
6. Empty the Trash to get the space back. Until then, you can still put things back.

## What DiskCity does with it

DiskCity labels it as rebuildable and removes it when you approve, or on its own if you turn on Autopilot. It always keeps the newest version. It only suggests it once it hasn't been used for 1 day. It waits until cursor-agent is closed.
