Skip to main content

What it does

  • Authenticates requests via Authorization-header API tokens against team policy.
  • Persists projects and workflows.
  • Enqueues every chat submission as a Redis job before any execution — the queue-first invariant.
  • Streams job events to clients over Server-Sent Events.
  • Probes models and wakes Ollama on demand.
  • Routes non-LLM intents (rules, facts, commands).

Endpoints

SSE invariant

The stream handler must replay the durable backlog before joining the pubsub stream so that a reconnecting client never misses events.

Errors

Errors include job and request correlation metadata so clients can trace any failure back to the job and the original request.