🌊

The Judge — central bot brain

All bots route through a single Sonnet 4.6 brain with per-chat scoped system prompts.

ArchitectureLive
#bots#teleoffice#sonnet

How it works

Every Telegram message from any chat flows into teleoffice.js → The Judge (Sonnet 4.6) → response.

The Judge selects which bot "speaks" based on:

  1. Which chat the message came from
  2. The chat's scope (personal, family, agency, trading)
  3. Active mode (silent observe, reminder, dispatch)

Per-chat scope

Each chat gets a scoped system prompt that injects:

  • Chat context (who's in it, what it's for)
  • User identity (msg.from → OWNER or member)
  • Active project map
  • History window (20 messages per bot+chat)

Dispatch codes

The Judge emits codes like `REMINDER:`, `DISPATCH:ripplex:`, `CROSSMSG:`, `RELAY:` that trigger cross-chat actions.

Last updated 14 Apr 2026