chat-bridge-mode

chat-bridge-mode is a cursor rule for coding agents from udah1/cursor-chat-bridge. It costs 1,312 tokens per session, scanned C, original, MIT.

A set of rules for using Cursor's remote chat mode, which lets an external chat channel control a Cursor coding session.

In plain words
What is it for?
Use it to start, manage, or end a bridged coding conversation from an external chat channel.
Why use it?
It defines when remote control starts or stops and how the session should communicate through channels such as GitHub, Telegram, or Discord.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/udah1/cursor-chat-bridge/chat-bridge-mode
Clone the repo
git clone --depth 1 https://github.com/udah1/cursor-chat-bridge

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chat-bridge-mode

README.md
[![agentmods](https://agentmods.dev/badge/rules/udah1/cursor-chat-bridge/chat-bridge-mode.svg)](https://agentmods.dev/rules/udah1/cursor-chat-bridge/chat-bridge-mode)
Your own site
<a href="https://agentmods.dev/rules/udah1/cursor-chat-bridge/chat-bridge-mode"><img src="https://agentmods.dev/badge/rules/udah1/cursor-chat-bridge/chat-bridge-mode.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,312 This file is loaded in full into every session.
When invoked 1,312 The same file — it is already loaded in full.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01312 $0.01312
Opus 5 $0.00656 $0.00656
Sonnet 5 $0.00262 $0.00262
Haiku 4.5 $0.00131 $0.00131

Measured 3d ago against content hash fe2d5da9bc1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

chat-bridge-mode scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

or irreversible actions (deleting data, force-push, `rm -rf`, spending money, sending
rules/chat-bridge-mode.mdc · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

remote chat mode (מצב שיחה מרוחק)

The user can drive this session from an external chat channel (GitHub issue, Telegram topic, Discord channel) via the cursor-chat-bridge MCP tools (bridge_*). The channel is chosen by activeAdapter in config, or per-session via bridge_start(adapter).

Activation

Start when the user asks — in any language — to begin remote chat / remote control / bridge mode. Recognize intent, not exact words. Examples that should trigger it:

  • Hebrew: "מצב שיחה מרוחק", "התחל מצב שיחה מרוחק", "מצב בקרה מרחוק", "תפעיל שליטה מרחוק", "מצב טלגרם" / "מצב גיטהאב" (also selects that channel)
  • English: "remote chat mode", "start remote mode", "bridge mode on", "control me from chat", "telegram mode" / "github mode" (also selects that channel)

On activation:

  1. Call bridge_start. Pass a title that concisely names THIS conversation the way it appears in Cursor's chat list — a ≤6-word summary of the conversation's topic (e.g. "GitHub Actions autopublish", not the folder name and not a generic label). Cursor doesn't expose its auto-generated title to tools, so you produce the equivalent. Also pass adapter if the user named a platform (Telegram/GitHub/Discord). The channel thread/channel is named from this title; the workspace is shown separately in the thread's description.
  2. Capture the session handle from the bridge_start response and remember it for this conversation. Passing session=<handle> is now REQUIRED on every subsequent bridge_* call (bridge_send, bridge_await, bridge_send_and_await, bridge_stop, bridge_status) — they error without it. This is what keeps multiple conversations (even in the same workspace) on their own separate threads. To RE-start an existing session, pass that same handle back to bridge_start.
  3. If bridge_start returns setup guidance instead (channel not configured), follow it to onboard the user, then call bridge_start again. If it returns a fail-closed message (no submit handshake / stale / more than one chat submitted at once), do NOT retry blindly: follow its guidance — usually re-send “start remote chat mode” from just THIS chat, or run npx cursor-telegram-chat@latest install then FULLY quit + reopen Cursor if hooks aren't loaded. bridge_start never guesses an identity, so it won't cross threads.
  4. If the bridge_start response includes an UPDATE AVAILABLE note, mention it and ask the user — via the normal Cursor question UI (the remote loop hasn't started yet) — whether to update now with npx cursor-telegram-chat@latest install (then reload Cursor). If they decline, just continue.
  5. Confirm briefly in Cursor, then continue the actual work the user asked for.

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 82 lines · 1,312 tokens per session scan C fe2d5da9bc1f

Subscribe to this mod's changes

chat-bridge-mode is a cursor rule published in the GitHub repository udah1/cursor-chat-bridge (2 stars, last pushed 27d ago), licensed MIT. It adds 1,312 tokens to every session, about $0.0066 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.