Agent executes commands in Cursor’s native terminal with preserved history. Click skip to send Ctrl+C and interrupt commands.

Troubleshooting

Some shell themes (for example, Powerlevel9k/Powerlevel10k) can interfere with the inline terminal output. If your command output looks truncated or misformatted, disable the theme or switch to a simpler prompt when Agent runs.

Disable heavy prompts for Agent sessions

Use the CURSOR_AGENT environment variable in your shell config to detect when the Agent is running and skip initializing fancy prompts/themes.
# ~/.zshrc — disable Powerlevel10k when Cursor Agent runs
if [[ -n "$CURSOR_AGENT" ]]; then
  # Skip theme initialization for better compatibility
else
  [[ -r ~/.p10k.zsh ]] && source ~/.p10k.zsh
fi
# ~/.bashrc — fall back to a simple prompt in Agent sessions
if [[ -n "$CURSOR_AGENT" ]]; then
  PS1='\u@\h \W \$ '
fi