ClaireDocs

Ask Claire

Search the project, not the web.

Answers are grounded in Claire’s published documentation and include the source pages used.

⌘/Ctrl + J opens Ask Claire anywhere in docs.

Mock bridge mode

Run Claire without real messaging accounts for safe local development and tests.

CurrentReviewed 2026-08-17View source ↗
The inbox, filled with fixture conversationsOpen the mobile gallery →

MOCK_BRIDGE=true boots the server with zero external dependencies — no Docker, no Supabase, no WhatsApp, Matrix, Telegram, or Instagram. A MockBridgeAdapter replaces every real platform adapter and emits deterministic fixture messages.

Usage#

Terminal — server
MOCK_BRIDGE=true bun run src/index.ts

Or set MOCK_BRIDGE=true in .env.

Fixture inventory#

  • User00000000-0000-0000-0000-000000000001
  • Platforms3 — WhatsApp, Telegram, Instagram
  • Chats4 — three individual, one WhatsApp group
  • Messages10
  • Loop-bearing1
Chat IDPlatformName
mock-chat-wa-aliceWhatsAppAlice (WA)
mock-chat-tg-bobTelegramBob (TG)
mock-chat-ig-carolInstagramCarol (IG)
mock-chat-wa-groupWhatsAppTeam Chat (group)

The loop message#

Fixture
I'll send you the report by Friday

Sent by the user (isFromMe=true) in the WhatsApp/Alice chat. The loop detector should flag it as a commitment with the deadline Friday. It exists so loop detection has a stable target to assert against.

Seed and reset endpoints#

These routes exist only when MOCK_BRIDGE=true.

RouteEffect
GET /seed/fixturesFixture counts and IDs, for test assertions
POST /seed/resetTruncate mock-user rows and replay the fixture messages

How it works#

  1. server/src/config/index.ts parses the MOCK_BRIDGE environment variable.
  2. When mockBridgeConfig.enabled, server/src/index.ts calls platformManager.setMatrixMode(mockBridgeAdapter) instead of wiring any real adapter.
  3. MockBridgeAdapter.initialize() emits MOCK_MESSAGES as message events via setImmediate, so the normal unified message handler processes them end to end.
  4. The seed route truncates and replays those messages for test isolation.

The important property is that mock mode exercises the real message pipeline. Only the source of events is faked.