Skip to content

SkyReNewed/autoRelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoRelay

Automates Roo Code's Human Relay mode by bridging clipboard prompts to browser-based AI chatbots.

How it works

  1. Monitors clipboard for new prompts from Roo Code
  2. Pastes prompts into your browser's AI chatbot via simulated input
  3. You select the AI response and press a hotkey
  4. Response gets pasted back into VS Code
┌─────────────────────────────────────────────────────────────────┐
│                        AUTORELAY FLOW                           │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  ┌───────────┐     clipboard      ┌──────────────┐              │
│  │ Roo Code  │ ─────────────────► │  AutoRelay   │              │
│  │ (VS Code) │                    │   (Python)   │              │
│  └───────────┘                    └──────┬───────┘              │
│        ▲                                 │                      │
│        │                                 │ 1. Alt+Tab           │
│        │                                 │ 2. Click input       │
│        │                                 │ 3. Ctrl+V            │
│        │                                 │ 4. Enter             │
│        │                                 ▼                      │
│        │                          ┌─────────────┐               │
│        │                          │   Browser   │               │
│        │                          │  (Any AI)   │               │
│        │                          └──────┬──────┘               │
│        │                                 │                      │
│        │         User selects            │                      │
│        │         response text           │                      │
│        │              +                  │                      │
│        │        Ctrl+Alt+1               │                      │
│        │                                 ▼                      │
│        │                          ┌─────────────┐               │
│        │  5. Alt+Tab              │  Clipboard  │               │
│        │  6. Click input          │  (Response) │               │
│        │  7. Ctrl+V               └─────────────┘               │
│        │  8. Click confirm                                      │
│        └────────────────────────────────────────────────────────┤
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Install

pip install -r requirements.txt

Usage

  1. Open your AI chatbot in a browser
  2. Run python autorelay.py
  3. First run: calibrate by hovering over browser input, VS Code input, and confirm button
  4. Use Roo Code normally - prompts auto-paste to browser
  5. Select AI response, press Ctrl+Alt+1

Hotkeys

Key Action
Ctrl+Alt+1 Copy response to VS Code
Ctrl+Alt+2 Pause/Resume
Ctrl+Alt+3 Recalibrate

Config

Copy .env.example to .env to customize timing delays.

Limitations

  • Requires manual selection of AI response, (Working on it)
  • Browser must be next in Alt+Tab order
  • Click positions are screen-specific

License

MIT

About

Automates Roo Code's Human Relay mode by bridging clipboard prompts to browser-based AI chatbots using PyAutoGUI.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors