Why Chat Agent Relay Exists

Open-source middleware · governance, audit, zero lock-in

The Story

Every team building AI-powered chat follows the same path:

The Insight

The layer between chat platforms and agents is always the same pattern — receive, decide, route, invoke, respond, deliver. Chat Agent Relay makes this pattern explicit.

Architecture Overview

architecture.txt
Chat Platforms          CAR Middleware                Your Agents
┌──────────┐     ┌──────────────────────────┐     ┌────────────────┐
│  Slack   │     │  Canonical Event Chain    │     │ Internal agent │
│  Teams   │────>│  Policy + Governance     │────>│ LangChain agent│
│  Discord │     │  Routing + Dispatch      │     │ Self-hosted LLM│
│  Web     │     │  Audit Ledger           │     │ Any HTTP agent │
└──────────┘     └──────────────────────────┘     └────────────────┘

Core Design Principles

Protocol-first

Canonical event model defines the contract. Implementations follow.

Zero lock-in

Channel adapters and backend adapters are pluggable interfaces.

Auditable by default

Every decision is an immutable event in an append-only ledger.

Governance built-in

Policy evaluation happens before agent invocation, not after.

Developer-first

TypeScript, Bun, JSON Schema, conformance test suite.

What Chat Agent Relay is NOT

Technical Details