AgentClean supported tools / macOS

Cursor Cache Cleaner for Mac Scan Cursor cache and review before clearing

AgentClean groups supported Cursor caches, logs and update leftovers in one scan. Review paths and sizes, protect the chat and recovery data you need, then select what to clean.

Grouped by toolReview before cleaningProtect important data
Explore AgentClean's Cursor coverage
CursorAI coding tool · Local data
Supported
Caches and logsStart with data that can be regeneratedReview first
Update and CLI leftoversConfirm old versions are no longer neededClean as needed
History and recovery dataKeep chats, tasks and rollback optionsHandle with care
Scope: local Cursor data on MacActual coverage depends on your scan

01 / ABOUT THE TOOL

Why does Cursor use local disk space?

Cursor

Understand code · Build features · Work with Agents
Official documentation

Cursor is an AI coding tool for understanding code, building features and fixing issues. Beyond project files, everyday use also creates the following local data.

Everyday startup and loading

The interface, scripts and rendering create caches that may be regenerated during later use.

Updates and ongoing development

Diagnostic logs, update downloads and old CLI versions can accumulate over time.

Chats and Agent tasks

History, workspace state and checkpoints support task continuation and recovery and need separate consideration.

AgentClean groups cleanup items under Cursor. Review paths, sizes and risk labels in one list.

02 / CLEANUP SCOPE

Which Cursor data can AgentClean clean?

The main scope covers these four categories. Expand a card for locations and filters. Actual items depend on the Cursor version, usage and access permissions.

Usually regenerable

App and rendering caches

Regenerable interface, script and rendering caches. The first load after cleaning may be slower, and some caches will return with use.

View locations and cleanup conditions

Fully quit Cursor first. CachedExtensions is an extension cache, not the installed extensions folder ~/.cursor/extensions.

Cache / Code Cache / GPUCache / CachedDataDawnGraphiteCache / DawnWebGPUCacheCachedExtensions / Service Worker/CacheStorage~/Library/Caches/Cursor
Keep for troubleshooting

Runtime and diagnostic logs

Runtime and diagnostic records you no longer need. Keep relevant logs while reporting a problem to support.

View locations and cleanup conditions

App logs and Agent worker *.log files are filtered to those older than 30 days; ~/Library/Logs/Cursor does not use this age condition.

logs / ~/Library/Logs/CursorUser/globalStorage/anysphere.cursor-agent-worker/*.log
Check after updating

Update download leftovers

Downloaded files left after an update. Confirm the new version starts normally before removing unneeded leftovers.

View locations and cleanup conditions

The two update locations below are filtered to items older than 7 days. Wait for any update download or installation to finish first.

~/Library/Caches/com.todesktop.230313mzl4w4u92~/Library/Application Support/Caches/cursor-updater
Keep the current version

Old CLI versions and temporary files

Old CLI versions and temporary installation files. Filtering protects the current version and keeps recent versions. Preserve files needed for troubleshooting.

View locations and cleanup conditions

Also checks .tmp-* temporary directories older than 24 hours and cli-config.json.bad files left by damaged configuration. It does not delete the whole ~/.cursor folder.

~/.local/share/cursor-agent/versionsversions directory of the built-in Agent CLI~/.cursor/cli-config.json.bad

Path note: locations without a ~/ prefix are relative to ~/Library/Application Support/Cursor/. These identify items; do not use them as instructions to delete whole directories.

03 / ASSESS THE RISKS

Review this data before cleaning

The following caution items may also appear in scan results. They affect chat access, task continuation or rollback of changes and must not be treated like ordinary caches.

Assess each of these items individuallyClean with caution
01

Database recovery backup

User/globalStorage/state.vscdb.backup

Deleting it removes this recovery copy. Confirm the main database works before deciding; copy it to another disk if you need to keep it.

02

Workspace state

User/workspaceStorage

Contains workspace state, extension data and some chat-related information. Deleting it may prevent past conversations from opening.

03

Local file history

User/History

Deleting it removes local older versions. Git may not contain these changes. Keep it if you need to roll back.

04

Agent checkpoints

snapshots

After deletion, you cannot roll back through these checkpoints. Commit or back up important changes first.

05

Subagent data

~/.cursor/subagents

May contain task records or outputs. Keep ongoing task data and anything whose purpose is unclear.

Keep the main database, project code and configuration.

Current rules do not target the main chat database state.vscdb, installed extensions in ~/.cursor/extensions, project working copies in ~/.cursor/worktrees, or the entire ~/.cursor folder for deletion. Do not manually empty User/globalStorage or the Backups folder holding unsaved content.

Deletion is permanent. Files do not go to Trash. Back up important content first. Deselect or protect items you are unsure about.

04 / PRODUCT INTERFACE

See Cursor scan review and protection

These screenshots show review before cleaning. Totals at the top and bottom combine several tools and do not represent space already freed from Cursor.

AgentClean Cursor scan review: 956.3 MB selected out of 5.41 GB; Service Worker Cache and Old Logs selected; Workspace State and History protected
01
Cursor scan and review

The Cursor group has 956.3 MB selected out of 5.41 GB scanned. Caches and old logs are selected, while workspace state is protected. This is still the selection before cleaning.

Detail of Cursor review: workspace state protected; database backups, subagent data and file history unchecked
02
Protecting history data

A detail from the same screenshot: workspace state is marked Protected; database backups, subagent data and file history remain unchecked.

05 / EXAMPLE AND FAQ

How do I clear caches while keeping chats?

This example selects only regenerable caches in four steps. History and recovery data stay intact, and other tools are excluded from this cleanup.

  1. 01

    Quit Cursor and complete the scan

    Save your work and quit Cursor, Agent and CLI processes. Open AgentClean, grant home-folder access when prompted and complete the scan.

  2. 02

    Deselect everything, then select caches

    Clear all selections, then expand Cursor. Select only verified regenerable caches such as Cache, Code Cache, GPUCache and CachedData.

  3. 03

    Keep history and recovery data

    Leave database backups, workspaceStorage, History, snapshots and subagents unchecked. Add protection for items you need to keep long term.

  4. 04

    Review the list, then clean

    Check that no other tools or caution items are selected before confirming permanent deletion. Reopen Cursor afterward and check that projects and chats you need still work.

This is a selection example, not a measured cleanup test. It does not compact the main chat database or guarantee a fixed amount of space recovered.

Manual guide / Keep your chat historyClearing Cursor caches? Know which chat data to keep.Find cache folders, distinguish them from chat databases and checkpoints, and verify available space after manual cleanup.

Frequently asked questions

Does AgentClean compact the main chat database?

Current cleanup rules do not target the main state.vscdb database for deletion and do not promise lossless chat database compaction. If the database is large, measure it using the full guide, then check the built-in maintenance features available in your Cursor version.

Why do my scan results differ from this list?

Actual items depend on your Cursor version, features used, whether directories exist and AgentClean’s access permissions. If an item is shown as in use, quit the related processes and scan again. An item missing from the list does not prove the data does not exist.

Why is disk usage still high after clearing caches?

Most space may be used by chat databases, workspace data or project working copies. Clearing caches does not automatically shrink these. Locate the usage with the full guide before deciding whether to handle history data.

Is the scanned size the space I will recover?

No. Items you keep, protect or have in use may not be deleted, and some caches regenerate. Judge the result using successful, failed and skipped items on the completion screen together with the change in available Mac disk space.

Can I restore cleaned files from Trash?

No. AgentClean permanently deletes selected files without moving them to Trash. Back up important content before cleaning. Protection cannot restore files that have already been deleted.

Does this cover Cursor data on Windows or remote servers?

This page covers local Mac data, excluding Windows, Linux, remote SSH hosts and containers. Do not apply these Mac paths directly to other environments.

References

06 / DOWNLOAD

Clean Cursor with AgentClean

For macOS