Discord-Cursor Bridge for Villa Gastown
Messages in #villa-clawedbot are injected into the Cursor agent session
discord-clawedbot "msg"
Send message to Discord from Cursor
discord-check
Check inbox for received messages
tmux attach -t clawedbot-listener
View listener logs
| Component | Location |
|---|---|
| Listener | ~/gt/scripts/clawedbot-listener.py |
| Response Script | ~/gt/bin/discord-clawedbot |
| Inbox | ~/gt/daemon/discord-inbox.txt |
| Tmux Session | clawedbot-listener |
| Target Session | agent |
Uses the proven gastown injection pattern:
# 1. Send text with literal mode
tmux send-keys -t session -l "message"
# 2. Wait 500ms for paste
sleep 0.5
# 3. Send Escape (vim mode)
tmux send-keys -t session Escape
# 4. Wait 100ms
sleep 0.1
# 5. Send Enter
tmux send-keys -t session Enter
# 6. Wake pane (SIGWINCH)
tmux resize-pane -t session -y -1
tmux resize-pane -t session -y +1
tmux kill-session -t clawedbot-listener
tmux new-session -d -s clawedbot-listener \
"python3 ~/gt/scripts/clawedbot-listener.py"
| Property | Value |
|---|---|
| Server | gt-ai |
| Channel | #villa-clawedbot |
| Channel ID | 1467445588357288144 |
| Bot | villa-clawedbot |