Skip to content

v0.5.0

Choose a tag to compare

@qwwiwi qwwiwi released this 27 Nov 12:48
a0db948

v0.5.0 · 2026-11-27

English

  • Multi-user mode lets other people talk to your bot with limited rights. It is off by default; turn it on with KROT_MULTIUSER=1. You stay the only owner. Add members and guests with /users (including a one-time invite code) or KROT_MEMBER_USER_IDS, and approve groups with /chats. Their messages run in a separate Codex per role without shell or file tools, with only the skills, MCP servers and web search you allow in public-access.toml, and never reach your memory. The bridge starts in this mode only after the permission hook with --thread-role and the other safety checks pass. Setup
  • The agent now sees how Telegram showed its replies. If a reply came out with raw markup, broken formatting, as a file or split in the middle of a block, the next turn gets one short note. The render_preview tool shows a Telegram-like picture of a reply or a draft, and /doctor lists the last differences. Reply text is never written to disk.
  • /doctor tests runs a short self-check: settings, the Telegram bot, the Codex connection, the hooks pack and the state folder, with pass or fail for each.
  • Install by link: give Codex the repository link and ask it to follow AGENT_INSTALL.md. It checks the tools, installs, runs the tests and /doctor tests, and reports back.
  • Automatic updates are off by default. With KROT_AUTO_UPDATE=1 the bridge checks for a new version every 6 hours (KROT_AUTO_UPDATE_HOURS), tests it in a separate copy and installs it only while idle. A version that keeps crashing is rolled back and never installed automatically again. /cc update checks on demand. Automatic update
  • Brain fixes: forwarded and foreign text stays out of owner side threads, and member and guest conversations stay out of owner memory. /status and /doctor show the prompt-cache share.

Known limitations

  • Automatic update: do not start a manual /cc update while an automatic one may be running. Two updates at the same moment can lose the recovery record of one of them; a kernel-level lock is planned for the next release.
  • Multi-user mode: keep HOME and CODEX_HOME (and any symlinks to them) outside the bridge state folder. A link placed inside a role folder is removed when the role folder is cleaned.

Русский

  • Многопользовательский режим позволяет другим людям писать вашему боту с ограниченными правами. По умолчанию он выключен; включается через KROT_MULTIUSER=1. Владелец остаётся один – вы. Участников и гостей добавляет /users (в том числе одноразовым кодом-приглашением) или KROT_MEMBER_USER_IDS, группы подтверждает /chats. Их сообщения обрабатывает отдельный Codex для каждой роли: без команд и правки файлов, только с навыками, MCP-серверами и веб-поиском, которые вы разрешили в public-access.toml, и без доступа к вашей памяти. Мост запускается в этом режиме только после проверки хука разрешений с флагом --thread-role и других проверок безопасности. Настройка
  • Агент теперь видит, как Telegram показал его ответы. Если ответ пришёл с сырой разметкой, сломанным форматированием, файлом или разрезанным посреди блока, следующий ход получает одну короткую заметку. Инструмент render_preview показывает картинку ответа или черновика, как в Telegram, а /doctor – последние расхождения. Текст ответов на диск не пишется.
  • /doctor tests запускает короткую самопроверку: настройки, бот в Telegram, связь с Codex, пакет хуков и папка состояния, по каждому пункту – «прошло» или «не прошло».
  • Установка по ссылке: отправьте Codex ссылку на репозиторий и попросите выполнить AGENT_INSTALL.md. Агент проверит инструменты, установит мост, запустит тесты и /doctor tests и отчитается.
  • Автообновление по умолчанию выключено. С KROT_AUTO_UPDATE=1 мост раз в 6 часов (KROT_AUTO_UPDATE_HOURS) ищет новую версию, проверяет её в отдельной копии и ставит только в простое. Версия, которая падает, откатывается и больше не ставится автоматически. /cc update проверяет обновление сразу. Автообновление
  • Исправления Brain: пересылки и чужой текст не попадают в параллельные потоки владельца, а разговоры участников и гостей – в его память. /status и /doctor показывают долю входа из кеша.

Известные ограничения

  • Автообновление: не запускайте /cc update вручную, пока может идти автоматическое. Два обновления в один момент могут потерять запись для отката одного из них; блокировку на уровне ядра добавим в следующей версии.
  • Многопользовательский режим: держите HOME и CODEX_HOME (и ссылки на них) вне папки состояния моста. Ссылка внутри папки роли удаляется при её очистке.