Hey everyone :D!
I’m experiencing a configuration issue with Cursor’s agent mode. When the agent executes terminal commands, it’s automatically routing them through WSL Kali Linux instead of my preferred environment.
My setup:
-
Windows with WSL installed
-
Multiple Linux distributions (Kali Linux and Ubuntu) available in WSL
-
Cursor IDE with agent mode enabled for running commands
Current behavior:
-
Every command the agent runs gets executed within the Kali Linux WSL environment
-
This causes compatibility issues as my project is meant to run in a different environment
-
The output just shows ‘kali-linux’ regardless of what command is run
Expected behavior:
-
Commands should run in my default/preferred shell (PowerShell, CMD, or specific WSL distro)
-
Terminal commands should execute in the context where my project dependencies are installed
Is there a way to configure Cursor to use a specific shell for agent commands, or set a default terminal that bypasses the WSL Kali Linux environment?