# Issues with agent mode commands

**URL:** <https://forum.cursor.com/t/issues-with-agent-mode-commands/80773>\
**Category:** Help\
**Created:** [April 18, 2025, 2:29am UTC](https://forum.cursor.com/t/issues-with-agent-mode-commands/80773 "2025-04-18T02:29:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NameDefaultName](https://avatars.discourse-cdn.com/v4/letter/n/85f322/32.png) [@NameDefaultName](https://forum.cursor.com/u/NameDefaultName)\
**Post date:** [April 18, 2025, 2:29am UTC](https://forum.cursor.com/t/issues-with-agent-mode-commands/80773/1 "2025-04-18T02:29:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [May 18, 2025, 2:30am UTC](https://forum.cursor.com/t/issues-with-agent-mode-commands/80773/2 "2025-05-18T02:30:50Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
