Troubleshooting¶
Common issues and solutions when using AgentSentinel.
tmux Issues¶
"tmux is not installed"¶
Install tmux via Homebrew:
"tmux server is not running"¶
Start a tmux session first:
Then run AgentSentinel.
Can't see any panes¶
Check that tmux is running and has panes:
If no panes are listed, start a tmux session first.
Detection Issues¶
Prompts not being detected¶
-
Enable verbose logging
-
Check the prompt is in the visible area
AgentSentinel captures the last 30 lines by default. If the prompt scrolled up:
-
Run the test command
-
Check the exact prompt format
The prompt may use a different format than expected. Run
agentsentinel statusand manually inspect the pane content: -
Add a custom pattern
If the prompt format isn't covered by built-in patterns:
Wrong prompts being detected¶
Use dry-run mode to see what's being detected:
If unwanted prompts are being matched, the built-in patterns may be too broad for your use case. Consider filing an issue.
Approval Issues¶
Approvals not working¶
-
Verify the pane ID
-
Test manually
Send a keystroke directly to verify tmux can interact with the pane:
-
Check CLI focus
Some CLIs may require focus or specific terminal state. Ensure the CLI is waiting for input.
-
Check for duplicate prevention
If you recently approved the same pane, AgentSentinel waits 5 seconds before re-approving. Wait and try again.
Double approvals¶
This shouldn't happen with the default duplicate prevention. If it does:
- Check if you're running multiple AgentSentinel instances
- Increase the scan interval:
--interval 2s
Configuration Issues¶
Config file not loading¶
-
Check the path
-
Verify YAML syntax
If this errors, there's a syntax issue in your config file.
-
Common YAML mistakes
- Missing spaces after colons:
interval:1s→interval: 1s - Incorrect indentation (use spaces, not tabs)
- Unescaped special characters in patterns
- Missing spaces after colons:
Custom patterns not working¶
-
Check YAML escaping
Backslashes must be doubled in YAML:
-
Test the pattern
-
Use dry-run mode
Performance Issues¶
High CPU usage¶
Reduce scan frequency:
Slow response time¶
If approvals seem delayed:
- Decrease scan interval:
--interval 500ms - Reduce lines captured:
--lines 20
Notification Issues¶
macOS notifications not appearing¶
-
Check System Preferences
Go to System Preferences → Notifications and ensure "Script Editor" or terminal app has notification permissions.
-
Test osascript directly
-
Check Do Not Disturb
Ensure Do Not Disturb is not enabled.
Getting Help¶
If none of these solutions work:
-
Check existing issues
-
File a new issue
Include:
- AgentSentinel version:
agentsentinel version - macOS version
- tmux version:
tmux -V - Verbose log output:
agentsentinel watch -v - The exact prompt text you're trying to detect
- AgentSentinel version: