SSH: global commands from remote ~/.cursor/commands/ not loaded (rules work)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When using Cursor over SSH, global commands are only picked up from my local ~/.cursor/commands/ (the machine running Cursor). Commands in the remote user’s home directory (~/.cursor/commands/ on the SSH host) are never found: they don’t appear in the loaded-commands list in Settings, and /commandname in chat offers to create a new command instead of running the existing file.
By contrast, rules work when defined on the remote (e.g. in the remote .cursor/rules/ or project rules); only commands seem to be limited to the local home.

Steps to Reproduce

Create a command file on the ssh host user home directory (~/.cursor/commands/my-command.md) and open Cursor.
Try /my-command in an agent.

Expected Behavior

When connected via SSH, Cursor should also load global commands from the remote user’s ~/.cursor/commands/, so that the same workflow works whether I’m local or in an SSH session.

Operating System

Linux

Version Information

Version: 2.4.22
VSCode Version: 1.105.1
Commit: 618c607a249dd7fd2ffc662c6531143833bebd40
Date: 2026-01-26T22:51:47.692Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Linux x64 6.12.66

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

It looks like global commands from ~/.cursor/commands/ should work, but they aren’t being picked up in SSH sessions.

There’s a similar post from yesterday Commands are not detected in the global cursor directory where global commands don’t load even without SSH, so this might be part of a broader issue with the global commands feature.

For now, a workaround is to use project-level commands (.cursor/commands/ in your project root) and those should work on the remote machine.

I’ve shared this with the team. Your report will help us prioritize it.strong text