Last active
April 9, 2025 07:56
-
-
Save njovy/6d3c61d43ade2a3792df06b3b5f5f041 to your computer and use it in GitHub Desktop.
Run beep after agent finishes for mac.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
description: | |
globs: | |
alwaysApply: true | |
--- | |
# Run Beep Script After Task Completion or Failure | |
## Critical Rules | |
- After successfully completing any requested task or action, execute the `afplay /System/Library/Sounds/Glass.aiff` command. Ensure the task is fully finished before running the script. | |
- If any requested task or action results in an error, failure, requires user intervention, or does not complete successfully for any reason, execute the `afplay /System/Library/Sounds/Sosumi.aiff` command immediately after reporting the issue or requesting user action. | |
## Examples | |
<example> | |
// User asks to refactor a function | |
// Agent refactors the function successfully | |
// Agent responds with the refactored code or confirmation | |
// Agent then executes afplay /System/Library/Sounds/Glass.aiff | |
</example> | |
<example type="invalid"> | |
// User asks to refactor a function | |
// Agent encounters an error during refactoring | |
// Agent reports the error | |
// Agent then executes afplay /System/Library/Sounds/Sosumi.aiff | |
// User asks a question that requires clarification | |
// Agent asks the clarifying question | |
// Agent then executes afplay /System/Library/Sounds/Sosumi.aiff (as user action is required) | |
// User asks a question | |
// Agent answers the question successfully (information only, no action taken) | |
// Agent does NOT execute any beep script in this case. | |
</example> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment