Clawedbot

Discord-Cursor Bridge for Villa Gastown

Bridge Active

How It Works

Discord
Listener
tmux inject
Cursor

Messages in #villa-clawedbot are injected into the Cursor agent session

Quick Commands

discord-clawedbot "msg" Send message to Discord from Cursor
discord-check Check inbox for received messages
tmux attach -t clawedbot-listener View listener logs

Components

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

NudgeSession Pattern

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

Restart Listener

tmux kill-session -t clawedbot-listener
tmux new-session -d -s clawedbot-listener \
    "python3 ~/gt/scripts/clawedbot-listener.py"

Discord Channel

Property Value
Server gt-ai
Channel #villa-clawedbot
Channel ID 1467445588357288144
Bot villa-clawedbot