~/.claude/settings.json.
Setup
Enable third-party skills (Windows only)
On Windows, Cursor doesn’t load
~/.claude/settings.json by default. Enable it:- Open Cursor Settings
- Navigate to Features → Third-party skills
- Toggle ON
~/.claude/settings.json for SessionStart/Stop sounds.How It Works
The installer registerscursor.sh (or cursor.ps1 on Windows) in ~/.claude/settings.json:
conversation_id and workspace_roots, then transforms it into the format peon.sh expects:
Event Mapping
| Cursor Event | CESP Category | Trigger |
|---|---|---|
stop | task.complete | Agent finishes turn |
beforeShellExecution | task.acknowledge | Shell command about to execute |
beforeMCPExecution | task.acknowledge | MCP tool about to execute |
afterFileEdit | task.complete | File edit completes |
beforeReadFile is intentionally excluded — it fires on every file read and would be too noisy.Cursor-Specific Features
Conversation-Based Session IDs
Cursor provides aconversation_id for each chat session. The adapter uses this to track state across multiple tool calls:
Workspace Root Detection
Cursor sendsworkspace_roots — the adapter uses the first entry as the working directory:
Configuration
Cursor shares the global PeonPing config:- Config:
~/.claude/hooks/peon-ping/config.json - Packs:
~/.claude/hooks/peon-ping/packs/
Limitations
- No SessionStart event — Cursor doesn’t expose a session start hook, so greeting sounds won’t play when you open Cursor
- No permission prompt detection — Tool approval events aren’t exposed
-
beforeShellExecution fires often — You might want to disable
task.acknowledgesounds:
Windows PowerShell Adapter
On native Windows, the installer copiescursor.ps1 and registers it:
peon.ps1 for audio playback.