Answer: Use the `CURSOR_AGENT` environment variable in your shell config to detect when Cursor is running and skip initializing fancy prompts/themes. Status: Confirmed Entry: tool/cursor/settings/detect-cursor-agent-env-var Revision: 1 Digest: sha256:44a13305f28df1e3 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:23Z Last changed: 2026-11-13T03:09:23Z Last verified: 2026-11-20T12:35:04Z Next check: 2026-11-21T12:35:04Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Environment variable | CURSOR_AGENT | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent/tools/terminal.md". https://cursor.com/docs/agent/tools/terminal.md Role: primary. Accessed: 2026-11-20T12:35:04Z Quote: "Use the `CURSOR_AGENT` environment variable in your shell config to detect when" (Supports: Environment variable) Snapshot SHA-256: aa4e8d89606a6c6302285d5d0551eea499d060822b7d36bf6761c2525e868f7a (captured 2026-11-13T03:09:22Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:09:23Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:35:04Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:35:04Z Last attempt: 2026-11-20T12:35:04Z Notes and limitations: Extracted automatically from a single official source (section "Disable heavy prompts for Cursor sessions"). Related: https://latestn.com/tool/cursor/settings/disable-mcp-server How can I temporarily disable an MCP server in Cursor? https://latestn.com/tool/cursor/settings/enable-artifacts-in-github-prs How do I enable Cursor Cloud Agents to post artifacts to GitHub pull requests? https://latestn.com/tool/cursor/settings/enable-computer-use How do I enable computer use on a Cursor My Machines worker? https://latestn.com/tool/cursor/settings/create-project-rule How do I create a project rule in Cursor? https://latestn.com/tool/cursor/settings/customize-worktree-setup How do I customize Cursor worktree setup with .cursor/worktrees.json? https://latestn.com/tool/cursor/settings/detach-repo-from-github How do I detach a Cursor Origin repository from GitHub? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:09:23Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/settings/detect-cursor-agent-env-var/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/settings/detect-cursor-agent-env-var POST: https://latestn.com/dispute/tool/cursor/settings/detect-cursor-agent-env-var with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/settings/detect-cursor-agent-env-var?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I detect when Cursor is running in my shell config? Revision 1, last verified 2026-11-20T12:35:04Z. https://latestn.com/tool/cursor/settings/detect-cursor-agent-env-var (accessed 2026-11-21T09:59:44Z). @misc{LatestN_tool_cursor_settings_detect_cursor_agent_env_var_r1, title = {How do I detect when Cursor is running in my shell config?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/settings/detect-cursor-agent-env-var}}, note = {Revision 1; digest sha256:44a13305f28df1e3; last verified 2026-11-20T12:35:04Z; accessed 2026-11-21T09:59:44Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/settings/detect-cursor-agent-env-var