/companions/talk is the messaging-app home for every companion: one list of
bots and group chats, newest first, with face, "Name · job", last line and
when; "+" offers New companion (name, shape, colour — the job is defined in
chat) and New group chat (two to six members, @-mentions, bot-to-bot
handoff, six bot turns a round, every line says who said it). The fleet's
own bots (Diplodoctor, Causius) sit in the same list and the same rooms over
one /api/ask contract, their identity from the fleet map; a 1:1 chat with
them stays in the browser. Members can be added and removed from the
details sheet. Companions is in the sidebar's More section.
Three owner-only tables (companion_rooms, _members, _messages) under RLS;
room services for mentions, planning, prompts, the fleet contract and
rounds; faces as a static SVG route. ADR-0013 records the decisions and
what is deferred (connectors = MCP + skills, routines, voice). The Grok Bot
screenshots that shaped this live in docs/research/grok-bot/ with an index.
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et
Co-authored-by: Claude <noreply@anthropic.com>
* fix(cat): meter Cat Credits from OpenRouter's real usage.cost
Prefer OpenRouter's provider-reported per-request cost (usage.cost, USD→BTC)
for Cat Credits debits, falling back to the registry token-price estimate when
the field is absent. Ledger metadata now records pricingSource
(provider_reported | registry_estimate). Free models always meter to 0.
Pinned by regression tests for the metering preference and the OpenRouter cost
plumbing (buffered + streamed), guarding the prior "$0 for unknown model" leak.
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore(ai): refresh 2026 model roster and consolidate registry SSOT
Update AI_MODEL_REGISTRY to the Q1-2026-verified roster and pricing (free,
economy, standard, premium tiers), with boundary-safe resolution of
provider-returned snapshot ids. model-registry.ts is now a generated projection
of ai-models.ts rather than a drifted duplicate list.
Refresh docs to match reality: rewrite MODEL_SYSTEM.md (provider chain,
Cat Credits metering, current roster) and chat.md (authenticated /api/cat/chat
contract), retiring references to the removed UnifiedAIClient/ModelStatusBadge
and public /api/chat endpoint. Mark completed items in the research handoff.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>