main.js · part 234
Full reference60 text occurrences from desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, part 234. Every entry preserves the shipped literal and its saved verdict or selection reason.
File contents and all parts · All files
Shipped text
Use ';' only when you need to run commands sequentially but don't care if earlie
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7656523–7656620, SHA-256 2b23462497f2339a.
Jev judged not model-facing (confidence 0.54; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: Use ';' only when you need to run commands sequentially but don't care if earlier commands fail
Use ';' only when you need to run commands sequentially but don't care if earlier commands fail
DO NOT use newlines to separate commands (newlines are ok in quoted strings)
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7656641–7656719, SHA-256 6be4f24cbab87540.
Jev judged not model-facing (confidence 0.59; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: DO NOT use newlines to separate commands (newlines are ok in quoted strings)
DO NOT use newlines to separate commands (newlines are ok in quoted strings)
When adding new dependencies, prefer using the package manager (e.g. npm, pip) t
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7656783–7656926, SHA-256 0853c387798b799d.
Jev judged not model-facing (confidence 0.67; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: When adding new dependencies, prefer using the package manager (e.g. npm, pip) to add the latest version. Do not make up dependency versions.
When adding new dependencies, prefer using the package manager (e.g. npm, pip) to add the latest version. Do not make up dependency versions.
Managing long-running commands
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7656952–7656984, SHA-256 ddf6bb519f110f8e.
Jev judged not model-facing (confidence 0.3; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Managing long-running commands
Managing long-running commands
Commands that don't complete within block until ms (default
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7657049–7657112, SHA-256 79ce2401461298b4.
Jev judged not model-facing (confidence 0.32; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Commands that don't complete within 'block_until_ms' (default
Commands that don't complete within `block_until_ms` (default
${Xge(c)}
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7657113–7657125, SHA-256 c5354ea214452446.
Jev judged not model-facing (confidence 0.14; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${Xge(c)}
${Xge(c)}
) are moved to background. The command keeps running and output streams to a ter
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7657126–7657331, SHA-256 6e2d802af80043b5.
Jev judged not model-facing (confidence 0.21; role documentation). This is a classifier judgment, not proof of delivery.
Readable text: ) are moved to background. The command keeps running and output streams to a terminal file. Set 'block_until_ms: 0' to immediately background (use for dev servers, watchers, or any long-running process).
) are moved to background. The command keeps running and output streams to a terminal file. Set `block_until_ms: 0` to immediately background (use for dev servers, watchers, or any long-running process).
You do not need to use ' ' at the end of commands.
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7657372–7657424, SHA-256 c75ea03b5b109a04.
Jev judged not model-facing (confidence 0.37; role documentation). This is a classifier judgment, not proof of delivery.
Readable text: You do not need to use '&' at the end of commands.
You do not need to use '&' at the end of commands.
Make sure to set block until ms to higher than the command's expected runtime.
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7657464–7657746, SHA-256 00409e709289ca39.
Jev judged not model-facing (confidence 0.48; role documentation). This is a classifier judgment, not proof of delivery.
Readable form: a shipped code or data literal beginning “Make sure to set block until ms to higher than the command's expected runtime.”. The exact literal is preserved below; its runtime purpose requires the surrounding source.
Make sure to set `block_until_ms` to higher than the command's expected runtime. Add some buffer since block_until_ms includes shell startup time; increase buffer next time based on `elapsed_ms` if you chose too low. E.g. if you sleep for 40s, recommended `block_until_ms` is 45s.
Monitoring backgrounded commands:
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7657798–7657833, SHA-256 6d0b2d1ce486e91a.
Jev judged not model-facing (confidence 0.18; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Monitoring backgrounded commands:
Monitoring backgrounded commands:
When command moves to background, check status immediately by reading the termin
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7657873–7657963, SHA-256 1d48ecdc5f99de80.
Jev judged not model-facing (confidence 0.4; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: When command moves to background, check status immediately by reading the terminal file.
When command moves to background, check status immediately by reading the terminal file.
Header has pid and running for ms (updated every 5000ms)
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7657984–7658046, SHA-256 1b8c6de5e402350f.
Jev judged not model-facing (confidence 0.33; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Header has 'pid' and 'running_for_ms' (updated every 5000ms)
Header has `pid` and `running_for_ms` (updated every 5000ms)
When finished, footer with exit code and elapsed ms appears.
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7658067–7658133, SHA-256 68711626b035439e.
Jev judged not model-facing (confidence 0.53; role context). This is a classifier judgment, not proof of delivery.
Readable text: When finished, footer with 'exit_code' and 'elapsed_ms' appears.
When finished, footer with `exit_code` and `elapsed_ms` appears.
Poll repeatedly to monitor by sleeping between checks. If the file gets large, r
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7658154–7658295, SHA-256 7316c91c9a963e53.
Jev judged not model-facing (confidence 0.62; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: Poll repeatedly to monitor by sleeping between checks. If the file gets large, read from the end of the file to capture the latest content.
Poll repeatedly to monitor by sleeping between checks. If the file gets large, read from the end of the file to capture the latest content.
Pick your sleep intervals using best guess/judgment based on any knowledge you h
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7658316–7658640, SHA-256 4611964af0c1411e.
Jev judged not model-facing (confidence 0.7; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: Pick your sleep intervals using best guess/judgment based on any knowledge you have about the command and its expected runtime, and any output from monitoring the command. When no new output, exponential backoff is a good strategy (e.g. sle…
Pick your sleep intervals using best guess/judgment based on any knowledge you have about the command and its expected runtime, and any output from monitoring the command. When no new output, exponential backoff is a good strategy (e.g. sleep 2000ms, 4000ms, 8000ms, 16000ms...), using educated guess for min and max wait.
If it's longer than expected and the command seems like it is hung, kill the pro
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7658661–7658852, SHA-256 aa41adff2ea2479b.
Jev judged not model-facing (confidence 0.78; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: If it's longer than expected and the command seems like it is hung, kill the process if safe to do so using the pid that appears in the header. If possible, try to fix the hang and proceed.
If it's longer than expected and the command seems like it is hung, kill the process if safe to do so using the pid that appears in the header. If possible, try to fix the hang and proceed.
Don't stop polling until: (a) exit code footer appears (terminating command),
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7658873–7659110, SHA-256 aad734d766aba946.
Jev judged not model-facing (confidence 0.47; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: Don't stop polling until: (a) 'exit_code' footer appears (terminating command), (b) the command reaches a healthy steady state (only for non-terminating command, e.g. dev server/watcher), or (c) command is hung - follow guidance above.
Don't stop polling until: (a) `exit_code` footer appears (terminating command), (b) the command reaches a healthy steady state (only for non-terminating command, e.g. dev server/watcher), or (c) command is hung - follow guidance above.
You'll be notified when the backgrounded command completes.
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7659145–7659206, SHA-256 73a548b791a55946.
Jev judged not model-facing (confidence 0.24; role human). This is a classifier judgment, not proof of delivery.
Readable text: You'll be notified when the backgrounded command completes.
You'll be notified when the backgrounded command completes.
You can monitor commands by configuring notify on output . You will be notified
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7659230–7660060, SHA-256 d33a472cd5625189.
Jev judged not model-facing (confidence 0.69; role tool). This is a classifier judgment, not proof of delivery.
Readable form: a shipped code or data literal beginning “You can monitor commands by configuring notify on output . You will be notified”. The exact literal is preserved below; its runtime purpose requires the surrounding source.
You can monitor commands by configuring `notify_on_output`. You will be notified at the end of your turn whenever stdout/stderr output matches the regex `pattern` (do not match all outputs). Output redirected only to a file will not trigger it. You will only receive notifications after ending your turn. Configure a 5 or less words `reason` which explains what you are watching for. The UI will prefix it as "Monitored `reason`". Configure `debounce_ms` to control how many milliseconds must elapse between notifications; the harness treats values less than 5000ms as 5000ms. Configure shell commands to emit stable sentinel lines and simple anchored regexes; pipe noisy output through jq/awk/scripts if needed. The system will terminate the watcher if the notifications are overly noisy, and you will be informed in this case.
Completion notifications are delivered separately from output-match notification
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7660084–7660216, SHA-256 e2e5e0fc7c230123.
Jev judged not model-facing (confidence 0.23; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Completion notifications are delivered separately from output-match notifications and do not require 'notify_on_output' to be set.
Completion notifications are delivered separately from output-match notifications and do not require `notify_on_output` to be set.
Only poll with
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7660241–7660258, SHA-256 125c3e1511d950ff.
Jev judged not model-facing (confidence 0.18; role human). This is a classifier judgment, not proof of delivery.
Readable text: Only poll with
Only poll with
later if you have been asked to work on something that requires the result of a
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7660270–7660386, SHA-256 fbb8982aede1f8de.
Jev judged not model-facing (confidence 0.32; role human). This is a classifier judgment, not proof of delivery.
Readable text: later if you have been asked to work on something that requires the result of a previous shell command. Using the
later if you have been asked to work on something that requires the result of a previous shell command. Using the
is very disruptive because it prevents you from being able to multitask.
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7660402–7660477, SHA-256 5844be9f5b40df61.
Jev judged not model-facing (confidence 0.15; role human). This is a classifier judgment, not proof of delivery.
Readable text: is very disruptive because it prevents you from being able to multitask.
is very disruptive because it prevents you from being able to multitask.
You'll be notified when the backgrounded command completes. Only poll with
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7660518–7660594, SHA-256 0e598a625158ad52.
Jev judged not model-facing (confidence 0.23; role human). This is a classifier judgment, not proof of delivery.
Readable text: You'll be notified when the backgrounded command completes. Only poll with
You'll be notified when the backgrounded command completes. Only poll with
when the command requires close monitoring — long-running jobs that can silently
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7660610–7660982, SHA-256 18e9fe6bed36f579.
Jev judged not model-facing (confidence 0.29; role human). This is a classifier judgment, not proof of delivery.
Readable text: when the command requires close monitoring — long-running jobs that can silently hang or degrade before completing (training runs, eval runs, deployments, long builds, datagen pipelines, DB migrations, large data transfers). For fire-and-f…
when the command requires close monitoring — long-running jobs that can silently hang or degrade before completing (training runs, eval runs, deployments, long builds, datagen pipelines, DB migrations, large data transfers). For fire-and-forget commands (tests, installs, dev servers/watchers, short scripts), start them and keep working — you can always poll with
later if you end up blocked on the result. If under your control, prefer command
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7660998–7661150, SHA-256 d6bd63ba7d15b68b.
Jev judged not model-facing (confidence 0.49; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: later if you end up blocked on the result. If under your control, prefer commands that print periodic status updates so close monitoring is effective.
later if you end up blocked on the result. If under your control, prefer commands that print periodic status updates so close monitoring is effective.
Use the
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7661197–7661207, SHA-256 93fe22c6db4e649a.
Jev judged not model-facing (confidence 0.47; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Use the
Use the
tool to monitor the background command. If under your control, prefer commands t
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7661219–7661367, SHA-256 385a13573b512800.
Jev judged not model-facing (confidence 0.69; role tool). This is a classifier judgment, not proof of delivery.
Readable text: tool to monitor the background command. If under your control, prefer commands that print periodic status updates so you can monitor effectively.
tool to monitor the background command. If under your control, prefer commands that print periodic status updates so you can monitor effectively.
Scheduling notifications
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7661399–7661425, SHA-256 a12418a7bf9bb6e1.
Jev judged not model-facing (confidence 0.2; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Scheduling notifications
Scheduling notifications
You can schedule notifications for yourself by starting a background shell that
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7661471–7661795, SHA-256 7b6e8dda61e70fbd.
Jev judged not model-facing (confidence 0.36; role tool). This is a classifier judgment, not proof of delivery.
Readable text: You can schedule notifications for yourself by starting a background shell that sleeps and echos a reminder message. This can be very useful for reminding yourself to check on another shell or task and verify it is making progress. Always t…
You can schedule notifications for yourself by starting a background shell that sleeps and echos a reminder message. This can be very useful for reminding yourself to check on another shell or task and verify it is making progress. Always think about how long you expect something to take before scheduling a notification.
tmux-backed shell sessions
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7661825–7661853, SHA-256 3ffd05a369baa98f.
Jev judged not model-facing (confidence 0.18; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: tmux-backed shell sessions
tmux-backed shell sessions
Other common operations
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7662057–7662082, SHA-256 abf22631961eac44.
Jev judged not model-facing (confidence 0.13; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Other common operations
Other common operations
View comments on a Github PR: gh api repos/foo/bar/pulls/123/comments
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7662128–7662199, SHA-256 1017ae852ec10730.
Jev judged not model-facing (confidence 0.38; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: View comments on a Github PR: gh api repos/foo/bar/pulls/123/comments
View comments on a Github PR: gh api repos/foo/bar/pulls/123/comments
The command to execute
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7662286–7662310, SHA-256 a31feff404100be4.
Jev judged not model-facing (confidence 0.63; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: The command to execute
The command to execute
The absolute path to the working directory to execute the command in (defaults t
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7662344–7662446, SHA-256 c54cd91c87455410.
Jev judged not model-facing (confidence 0.74; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: The absolute path to the working directory to execute the command in (defaults to current directory)
The absolute path to the working directory to execute the command in (defaults to current directory)
${e}ms / ${Number.isInteger(t)?"":" "}${r} second${1===r?"":"s"}
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7662544–7662610, SHA-256 a32f644a9ff9cad9.
Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${e}ms / ${Number.isInteger(t)?"":"~"}${r} second${1===r?"":"s"}
${e}ms / ${Number.isInteger(t)?"":"~"}${r} second${1===r?"":"s"}
${e}ms / ${Number.isInteger(r)?"":" "}${t} minute${1===t?"":"s"}
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7662684–7662750, SHA-256 ed6201530b5eafe8.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${e}ms / ${Number.isInteger(r)?"":"~"}${t} minute${1===t?"":"s"}
${e}ms / ${Number.isInteger(r)?"":"~"}${t} minute${1===t?"":"s"}
How long to block and wait for the command to complete before moving it to backg
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7662815–7663243, SHA-256 b3a146d02f3067fc.
Jev judged not model-facing (confidence 0.49; role parameter). This is a classifier judgment, not proof of delivery.
Readable form: a shipped code or data literal beginning “How long to block and wait for the command to complete before moving it to backg”. The exact literal is preserved below; its runtime purpose requires the surrounding source.
How long to block and wait for the command to complete before moving it to background (in milliseconds). Defaults to ${function(e){const t=e/1e3;if(Number.isInteger(t)&&t>0&&t<=120)return`${e}ms (${t} second${1===t?"":"s"})`;const r=e/6e4;return Number.isInteger(r)&&r>=1?`${e}ms (${r} minute${1===r?"":"s"})`:`${e}ms`}(e)}. Set to 0 to immediately run the command in the background. The timer includes the shell startup time.
${e}ms (${t} second${1===t?"":"s"})
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7663003–7663040, SHA-256 e713438dbfae9753.
Jev judged not model-facing (confidence 0.14; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${e}ms (${t} second${1===t?"":"s"})
${e}ms (${t} second${1===t?"":"s"})
${e}ms (${r} minute${1===r?"":"s"})
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7663088–7663125, SHA-256 8c34c6790e58cae6.
Jev judged not model-facing (confidence 0.19; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${e}ms (${r} minute${1===r?"":"s"})
${e}ms (${r} minute${1===r?"":"s"})
Clear, concise description of what this command does in 5-10 words
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7663283–7663351, SHA-256 9317a67b55b15655.
Jev judged not model-facing (confidence 0.54; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: Clear, concise description of what this command does in 5-10 words
Clear, concise description of what this command does in 5-10 words
Whether the command should be run in the background
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7663385–7663438, SHA-256 c756102e63ea4c93.
Jev judged not model-facing (confidence 0.48; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: Whether the command should be run in the background
Whether the command should be run in the background
Regex pattern matched against stdout/stderr output. Output redirected only to a
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7663476–7663609, SHA-256 c3c0d5a2db78edf3.
Jev judged not model-facing (confidence 0.45; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: Regex pattern matched against stdout/stderr output. Output redirected only to a file will not trigger it. Do not match all outputs.
Regex pattern matched against stdout/stderr output. Output redirected only to a file will not trigger it. Do not match all outputs.
5 or less words describing why you are watching for this output. The UI (only vi
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7663635–7663771, SHA-256 9871ec9ac3bd5552.
Jev judged not model-facing (confidence 0.39; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: 5 or less words describing why you are watching for this output. The UI (only visible to user) will prefix it as 'Monitored 'reason''.
5 or less words describing why you are watching for this output. The UI (only visible to user) will prefix it as 'Monitored `reason`'.
Milliseconds that must elapse between notifications. The harness enforces a mini
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7663813–7663909, SHA-256 028d4ccce8984aa9.
Jev judged not model-facing (confidence 0.43; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: Milliseconds that must elapse between notifications. The harness enforces a minimum of 5000ms.
Milliseconds that must elapse between notifications. The harness enforces a minimum of 5000ms.
Optional output notification config. Each terminal output which matches the patt
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7663933–7664095, SHA-256 666abd2eb46bcf43.
Jev judged not model-facing (confidence 0.52; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: Optional output notification config. Each terminal output which matches the pattern will notify you. ONLY set this when the user explicitly requests monitoring.
Optional output notification config. Each terminal output which matches the pattern will notify you. ONLY set this when the user explicitly requests monitoring.
Hard timeout in milliseconds. The command will be killed after this time, even i
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7664188–7664328, SHA-256 c549841c180812d1.
Jev judged not model-facing (confidence 0.67; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: Hard timeout in milliseconds. The command will be killed after this time, even if running in background (defaults to 600000ms/10 minutes).
Hard timeout in milliseconds. The command will be killed after this time, even if running in background (defaults to 600000ms/10 minutes).
Timeout in milliseconds (defaults to 30000ms/30s)
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7664329–7664380, SHA-256 66acad1ea0c7a6ac.
Jev judged not model-facing (confidence 0.71; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: Timeout in milliseconds (defaults to 30000ms/30s)
Timeout in milliseconds (defaults to 30000ms/30s)
PROPOSE a command to run on behalf of the user. If you have this tool, note that
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7664437–7665792, SHA-256 87148312b0ff0e03.
Jev judged model-facing (confidence 0.92; role tool). This is a classifier judgment, not proof of delivery.
Readable text: PROPOSE a command to run on behalf of the user. If you have this tool, note that you DO have the ability to run commands directly on the USER's system. Note that the user may have to approve the command before it is executed. The user may r…
PROPOSE a command to run on behalf of the user.
If you have this tool, note that you DO have the ability to run commands directly on the USER's system.
Note that the user may have to approve the command before it is executed.
The user may reject it if it is not to their liking, or may modify the command before approving it. If they do change it, take those changes into account.
In using these tools, adhere to the following guidelines:
1. Based on the contents of the conversation, you will be told if you are in the same shell as a previous step or a different shell.
2. If in a new shell, you should `cd` to the appropriate directory and do necessary setup in addition to running the command. By default, the shell will initialize in the project root.
3. If in the same shell, LOOK IN CHAT HISTORY for your current working directory.
4. For ANY commands that would require user interaction, ASSUME THE USER IS NOT AVAILABLE TO INTERACT and PASS THE NON-INTERACTIVE FLAGS (e.g. --yes for npx).
5. If the command would use a pager, append ` | cat` to the command.
6. For commands that are long running/expected to run indefinitely until interruption, please run them in the background. To run jobs in the background, set `is_background` to true rather than changing the details of the command.
7. Dont include any newlines in the command.
Executes a given command in a shell session with optional timeout. Before execut
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7665797–7667991, SHA-256 ae5a0f2455270284.
Not classified: Source failed the privacy boundary.
Readable text: Executes a given command in a shell session with optional timeout. Before executing the command, please follow these steps: 1. Check for Running Processes: - Before starting dev servers or long-running processes that should not be duplic…
Executes a given command in a shell session with optional timeout.
Before executing the command, please follow these steps:
1. Check for Running Processes:
- Before starting dev servers or long-running processes that should not be duplicated, search the terminals folder to check if they are already running in existing terminals.
- You can use this information to determine which terminal, if any, matches the command you want to run, contains the output from the command you want to inspect, or has changed since you last read them.
- Since these are text files, you can read any terminal's contents simply by reading the file, search using the grep tool, etc.
2. Command Execution:
- Always quote file paths that contain spaces with double quotes (e.g., cd "path with spaces/file.txt")
- Examples of proper quoting:
- cd "/Users/name/My Documents" (correct)
- cd /Users/name/My Documents (incorrect - will fail)
- python "/path/with spaces/script.py" (correct)
- python /path/with spaces/script.py (incorrect - will fail)
- After ensuring proper quoting, execute the command.
- Capture the output of the command.
Usage notes:
- The command argument is required.
- You can specify an optional timeout in milliseconds (up to 600000ms / 10 minutes). If not specified, commands will timeout after 30000ms (30 seconds).
- It is very helpful if you write a clear, concise description of what this command does in 5-10 words.
- Avoid using search commands like `find` and `grep`. Instead prefer Grep, Glob to search. Avoid read tools like `cat`, `head`, and `tail`, and prefer Read to read files.
- If you _still_ need to run `grep`, STOP. ALWAYS USE ripgrep at `rg` first, which all users have pre-installed.
- When issuing multiple commands, use the ';' or '&&' operator to separate them. DO NOT use newlines (newlines are ok in quoted strings).
- Try to maintain your current working directory throughout the session by using absolute paths and avoiding usage of `cd`. You may use `cd` if the User explicitly requests it.<good-example>pytest /foo/bar/tests</good-example><bad-example>cd /foo/bar && pytest tests</bad-example>
You can monitor commands by configuring notify on output . You will be notified · byte 7668306
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7668306–7668640, SHA-256 0869c34077fa3fd5.
Jev judged not model-facing (confidence 0.57; role tool). This is a classifier judgment, not proof of delivery.
Readable text: You can monitor commands by configuring 'notify_on_output'. You will be notified at the end of your turn whenever stdout/stderr output matches the regex 'pattern'. Output redirected only to a file will not trigger it. Configure a 5-or-fewer…
You can monitor commands by configuring `notify_on_output`. You will be notified at the end of your turn whenever stdout/stderr output matches the regex `pattern`. Output redirected only to a file will not trigger it. Configure a 5-or-fewer-word `reason` explaining what you are watching for, and optionally configure `debounce_ms`.
Use a descriptive tmux session name for the task or command instead of a single
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7668795–7668989, SHA-256 fac8a5f5614ae7c6.
Jev judged not model-facing (confidence 0.66; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: Use a descriptive tmux session name for the task or command instead of a single global shared name. Prefer short kebab-case names such as 'vite-dev-server', 'backend-tests', or 'db-migration'.
Use a descriptive tmux session name for the task or command instead of a single global shared name. Prefer short kebab-case names such as `vite-dev-server`, `backend-tests`, or `db-migration`.
There is one canonical shared tmux session for most recurring shell work — ${e}
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7668990–7669538, SHA-256 8069ff0db1dc1534.
Jev judged not model-facing (confidence 0.69; role instructions). This is a classifier judgment, not proof of delivery.
Readable form: a shipped code or data literal beginning “There is one canonical shared tmux session for most recurring shell work — ${e}”. The exact literal is preserved below; its runtime purpose requires the surrounding source.
There is one canonical shared tmux session for most recurring shell work — `${e}`. Start or reuse that session before ordinary setup work, then use it for every install, build, migration, version check, and verification command. Only create a separate descriptively-named session (short kebab-case, e.g. `vite-dev-server`, `backend-tests`, `postgres`) for long-running side processes that must keep running after a single command finishes. Do NOT invent a new per-task session name for ordinary shell work — route it through `${e}`.
tmux-backed-shell-sessions - tmux is the required mechanism for shell work tha
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7669554–7670568, SHA-256 706c307f143b1d12.
Jev judged model-facing (confidence 0.88; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: <tmux-backed-shell-sessions> - tmux is the required mechanism for shell work that may outlive a single command. If you need an interactive shell, any background command (such as starting dev servers), a long-running process, follow-up input…
<tmux-backed-shell-sessions>
- tmux is the required mechanism for shell work that may outlive a single command. If you need an interactive shell, any background command (such as starting dev servers), a long-running process, follow-up input, later inspection, or a shared session that you or the user may reconnect to later, you MUST use tmux. Do NOT launch those workflows as one-shot background processes. If you are planning to set block_until_ms to 0, you should ALWAYS back this session with tmux.
- ${Lge(t)}
- ${r}
- Start or reuse the appropriate session by running `${$ge({sharedSessionName:e,selfHostedMachine:t})}`.
- Before creating a new session, list existing sessions with `${n} ls` and reuse an existing one when appropriate.
- To inspect or continue work in an existing session, attach with `${n} attach-session -t "$SESSION_NAME"`.
- To send input to a session without attaching, run `${n} send-keys -t "$SESSION_NAME:0.0" 'your command here' C-m`.
</tmux-backed-shell-sessions>
${e} ${t.join(" n n")}
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7670684–7670711, SHA-256 f0514f220838479a.
Jev judged not model-facing (confidence 0.46; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${e} ${t.join("\n\n")}
${e}
${t.join("\n\n")}
Execute shell commands in the workspace. - The shell is stateful - cwd env var
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7670732–7671889, SHA-256 8dc41be524f2b8d6.
Jev judged model-facing (confidence 0.9; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: Execute shell commands in the workspace. - The shell is stateful - cwd & env vars persist for subsequent calls. - Make efficient use of shell calls and minimize wasted tokens. - Batch related shell work together or run independent checks i…
Execute shell commands in the workspace.
- The shell is stateful - cwd & env vars persist for subsequent calls.
- Make efficient use of shell calls and minimize wasted tokens.
- Batch related shell work together or run independent checks in parallel when safe. Make liberal use of `&&`, `;`, pipes, greps and other efficient shell use.
- Use targeted, output-limited terminal commands such as `rg`, `head`, `tail`, `sed -n`, when relevant to limit output.
- NEVER use `set -x`; it breaks this tool. If it gets set, run `set +x` to fix the shell.
- Optimize for overall cost, including cache reads, cache writes, and output tokens.
- Use the 'Workspace Path' field in the `<user_info>` section to resolve the workspace path. It will likely NOT be at `/workspace`; don't waste time trying that.
- Still do whatever validation is necessary to ensure the judgment is correct; efficiency means avoiding waste, not skipping verification.
- This may still be a long-running investigation if correctness requires it, but do not spend tokens on status updates, progress narration, or UX niceties while judging.
- Always quote paths that contain spaces.
${e} ${t.join(" n n")} · byte 7671942
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7671942–7671969, SHA-256 f0514f220838479a.
Jev judged not model-facing (confidence 0.45; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${e} ${t.join("\n\n")}
${e}
${t.join("\n\n")}
Executes a given command in a shell session, waiting for output for block until
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7672000–7672094, SHA-256 34a3907f2ec797fa.
Jev judged not model-facing (confidence 0.65; role tool). This is a classifier judgment, not proof of delivery.
Readable text: Executes a given command in a shell session, waiting for output for 'block_until_ms' millis.
Executes a given command in a shell session, waiting for output for `block_until_ms` millis.
${t} ${f}
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7672110–7672124, SHA-256 d164e7109a76771f.
Jev judged not model-facing (confidence 0.3; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${t} ${f}
${t}
${f}
${r} ${g}
Source: desktop/Cursor.app/Contents/Resources/app/extensions/cursor-agent-exec/dist/main.js, bytes 7672145–7672157, SHA-256 9660e5ee7f37b2b1.
Jev judged not model-facing (confidence 0.37; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${r} ${g}
${r}
${g}