promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Cursor CLI

/shell

Switches to Shell mode to run short commands directly without leaving the conversation.

/shell switches to Shell mode for short commands within the session. Aliases: /sh, /run.

โœ… WHEN TO USE IT?

Quickly check git status without leaving the chat context

/shell git status

Briefly inspect a file before the agent keeps working

/sh ls -la src/

โ›” WHEN NOT TO?

The command should be part of a multi-step task planned by the agent

/shell runs the command in isolation, without folding it into the agent's task planning.

Better: Phrase the command as a normal prompt instead, so the agent runs it in context

You need persistent network/write access with clear limits

/shell follows the normal session policy but offers no explicit path/network limits.

Better: Use agent sandbox run with --allow-paths/--network

SOURCES