v0.1.0 // EXPERIMENTAL

ROUTERGENT

One app. Many accounts. One unbroken conversation.
A standalone Electron router for snapgent connectors, with automatic failover and shared handoff history.

SYS.MODULES

๐Ÿงญ

ROUTER

Selects a webview node (random or pinned), fails over automatically, and writes a .txt handoff so the next node continues the work.

๐Ÿ”Œ

BRIDGE

Node port of the MCP side of bridge.py. One hub is shared by every node.

๐Ÿ–ฅ๏ธ

WEBVIEW NODES

One <webview> per account, each with its own login partition.

๐Ÿค–

DRIVER

Injected into each webview. Sends prompts, records progress, and reports done or failed.

SYS.ARCHITECTURE

                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚    PARENT PROMPT     โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚       ROUTER         โ”‚  โ—„โ”€โ”€ AUTO / PIN mode
                    โ”‚  select ยท failover   โ”‚
                    โ”‚  handoff ยท history   โ”‚
                    โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜
                        โ”‚      โ”‚       โ”‚
              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”  โ”Œโ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ”‚ NODE  01 โ”‚  โ”‚ NODE 02 โ”‚ โ”‚ NODE  N  โ”‚
              โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚        MCP HUB          โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

SYS.FLOW

  1. Click + Node, choose a provider, and log in inside the webview.
  2. Click Start agent on that node. Repeat for other accounts.
  3. Type in the parent prompt. Auto picks a ready node, or pin one.
  4. Replies and tool results appear in one continuous conversation panel.
  5. If a node fails, the router switches to another and sends a handoff summary.

SYS.BOOT

git clone https://github.com/herdodp/routergent.git
cd routergent
npm install
npm start_

SYS.WARNINGS

โš  Experimental. Known limitations:
  • The driver has not been tested in a real webview; selectors depend on each provider's DOM.
  • Some world: "MAIN" content scripts may be affected because they are injected at dom-ready.
  • Open a new chat on a node before pressing Start agent.
  • Building the portable .exe needs ../snapgent-extension and ../vscode_mcp.exe next to the project.