Расход на пользователя ниже порога окупаемости: сжатие, дешёвый браузер, финмодель

Merged
AG
1mo ago
+307-18

Что меняется для пользователя и расходов:

  • Длинные чаты сжимаются по умолчанию с порога 100 тыс. токенов: шаг Telegram стоит ~0,17 ₽ вместо 0,67 ₽ (кэш 87%).
  • Обрезка старых результатов выключена по умолчанию (HISTORY_TRIM_MODE=off): её сдвиг границы рвал кэш.
  • Быстрый режим браузера выключен по умолчанию (BROWSER_FAST_MODE=off): поручения чуть медленнее, но дешевле.
  • Карточки выключены по умолчанию (CARDS_MODE=off): send_card/update_card падали с «non-serializable capture».
  • Новые ops-скрипты: cost-per-user.sh, phone-minutes.sh.
  • Финмодель (docs/finmodel/bro-finmodel.xlsx) по данным прода: базовая прибыль ~500 ₽ на пользователя в месяц при N=200, безубыточно от ~83 пользователей.
  • Заметки для следующих сессий в docs/dev-notes.md.

Всё это уже выкачено на прод (версия 20261102-221454-ded027dd).

Проверки: тесты по затронутым наборам проходят; полный pnpm check не гонял.


Generated by Claude Code


Summary by cubic

Cuts per-user costs so spend drops below the subscription's payback threshold. Long chats now compress by default at 100k tokens (was 150k and off), and the fast browser, history trim, and cards are all off by default because they cost more than they save.

  • Compaction now applies to everyone unless COMPACTION_WORKSPACES=off and no longer skips turns when a few short context.* lines follow the opener: a Telegram step drops to ~0.17 ₽ from 0.67 ₽.
  • BROWSER_FAST_MODE, HISTORY_TRIM_MODE, and CARDS_MODE each default to off; the existing workspace lists no longer activate their pilot alone — set the variable to pilot to re-enable.
  • Adds cost-per-user.sh and phone-minutes.sh ops scripts and a live financial model in docs/finmodel/: base profit ~500 ₽ per user per month at N=200, break-even at ~83 users.