Cursor-agent-worker spawns 30+ detached node processes (~5.5 GB RAM) on startup even with Remote Control & My Machines disabled

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

On Cursor 3.31.15 (macOS arm64), opening Cursor automatically spawns 34–36 detached cursor-agent background worker processes (shown as node in macOS Activity Monitor), one for every historical repository/workspace I have ever opened.

Each process consumes ~154 MB of RAM (~5.5 GB total on an 18 GB Mac), pushing memory pressure into yellow and swap usage close to 7 GB. Worse:

  1. All processes are detached (PPID = 1) and survive after completely quitting Cursor.
  2. They still spawn even after disabling Remote Control in Cursor Settings, disabling “Enable My Machines” and “Enable Self-hosted Machines” in the Cloud Agents dashboard, and disabling Agent Window Type (Beta).
  3. Even after killing all workers and wiping ~/Library/Application Support/Cursor/User/globalStorage/anysphere.cursor-agent-worker/cursor-agent-worker-* and worker-data/, reopening Cursor immediately respawns 34 workers within seconds.

Steps to Reproduce

  1. In the Cursor web dashboard (Cloud Agents), verify that both Enable Self-hosted Machines and Enable My Machines are OFF.
  2. In Cursor desktop settings, turn Remote Control OFF (and disable Beta Agent Window Type).
  3. Quit Cursor completely and kill all existing workers (pkill -f 'anysphere.cursor-agent-worker').
  4. Optionally delete persisted state under ~/Library/Application Support/Cursor/User/globalStorage/anysphere.cursor-agent-worker/ (cursor-agent-worker-* and worker-data/).
  5. Reopen Cursor.

Expected Behavior

  1. When Remote Control / My Machines is disabled, anysphere.cursor-agent-worker should not spawn any background worker processes (and should terminate existing ones).
  2. Even when enabled, Cursor should never unconditionally launch a separate ~154 MB daemon for every historical workspace with no concurrency/count cap or idle eviction, nor leave dozens of orphaned daemons running after Cursor exits.

Operating System

MacOS

Version Information

Version: 3.31.15
VS Code Extension API: 1.128.0
Commit: 3eb8c13390837371c7c2f2013dc57fdbc802c750
Date: 2026-11-20T19:25:18.309Z
Layout: Agent Window (Molten)
Build Type: Stable
Release Track: Default
Electron: 43.8.9
Chromium: 150.0.7871.250
Node.js: 24.22.1
V8: 15.0.245.31-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 25.6.0

Additional Information

Inspecting the bundled anysphere.cursor-agent-worker extension (extensions/cursor-agent-worker/dist/main.js) and its output logs reveals two likely root causes:

  1. The gate function checks remoteControlEnabled === true || checkFeatureGate("internal_cloud_project_remote_control"). Because of the || fallback, the feature gate appears to override the user’s explicit opt-out.
  2. When fetching remoteControlEnabled times out (Failed to read remoteControlEnabled setting; retaining current worker state and retrying: ConnectError: [unavailable] HTTP/2 session not established after 20000 ms), existing workers are kept alive indefinitely.
  3. On startup, restartOfflineWorkers restarts all recorded workspaces (concurrency 4) with no upper bound on the number of active worker daemons.

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey @qika, you’re right on both counts. The Remote Control / My Machines toggles aren’t stopping the background workers right now, and Cursor is spawning a detached worker per project folder at launch with no cap, idle timeout, or teardown on quit. Both issues are with the team now.

There isn’t a clean way to stop them from respawning on launch yet, so running pkill -f 'anysphere.cursor-agent-worker' after quitting Cursor is the best way to free the RAM in the meantime. Quick check that would help the team narrow it down: does the ~34 worker count match the number of projects in your Agents Window sidebar?

Thanks for the quick confirmation and for forwarding this to the team!

I checked the actual running processes against Cursor’s local state.vscdb to give you exact numbers — it does not strictly match the Agents Window sidebar counts:

  • Agents Window sidebar (UI): ~39 repos and ~30 workspaces
  • Currently spawned cursor-agent-worker processes: 35 (all spawned within ~3 seconds of launch, with only 1 extensionHost running)
  • Cross-check with state.vscdb:
    • cursor/glass.projectSelector.privateWorkerList: 35 entries — matches the running workers almost 1:1 (34/35 identical paths; only 1 path differs).
    • glass.localAgentProjects.v1: 35 entries (34 unique paths, 27 existing on disk) — coincidentally the same count, but different set: only 21/35 overlap with the running workers (14 running workers are not in glass.localAgentProjects.v1, while 13 entries in glass.localAgentProjects.v1—6 of which still exist on disk—do not have a worker).
    • workspaceMetadata.entries: 51 entries (50 unique paths) — 31/35 overlap.
    • history.recentlyOpenedPathsList: 99 entries (86 local folders, 62 existing on disk) — all 35 running workers are a subset of this list.

So the spawned workers track cursor/glass.projectSelector.privateWorkerList much more closely than the visible sidebar repos/workspaces or glass.localAgentProjects.v1 — and even after wiping globalStorage/anysphere.cursor-agent-worker/, reopening Cursor still respawns this same ~34–35 set.

Hope this helps the team narrow it down!

Hey @qika, that privateWorkerList cross-check is super helpful - added it straight to the internal ticket for the team.

Where does the bug appear (feature/product)?

Grok Build (formerly Cursor)

Describe the Bug

After the last Update, when i start the former cursor app on my windows device, countless Node processes are being launched on my machine; I’ve traced them, and they correspond to every workspace I’ve ever worked on in Cursor. I know you are already aware of this bug, but please fix it soon. I’ve been using Cursor for over two years and don’t want to have to switch to something else, but right now, it’s become impossible to use.

Steps to Reproduce

Just Open Grok Build (former cursor)

Expected Behavior

A clean startup

Operating System

Windows 10/11

Version Information

Cursor 3.32.24

Does this stop you from using Grok

Yes - Grok is unusable