newbot

newbot is a command for Claude Code from stereosam/stereo-vibe-public. It costs 0 tokens per session (974 once invoked), scanned B, original, MIT.

A command that creates a Telegram bot through a bot-management API, using a name and a username ending in “bot”.

In plain words
What is it for?
Creating a new Telegram bot with a chosen display name and username, then saving its token on the server.
Why use it?
It removes the need to create the bot manually through Telegram’s BotFather. The user still has to confirm the creation through a Telegram link.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Creating a new Telegram bot with a chosen display name and username, then saving its token on the server.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/stereosam/stereo-vibe-public/newbot
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/stereosam/stereo-vibe-public

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for newbot

README.md
[![agentmods](https://agentmods.dev/badge/commands/stereosam/stereo-vibe-public/newbot/github.svg)](https://agentmods.dev/commands/stereosam/stereo-vibe-public/newbot)
Your own site
<a href="https://agentmods.dev/commands/stereosam/stereo-vibe-public/newbot"><img src="https://agentmods.dev/badge/commands/stereosam/stereo-vibe-public/newbot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for newbot

Your own site · 80×15
<a href="https://agentmods.dev/commands/stereosam/stereo-vibe-public/newbot"><img src="https://agentmods.dev/badge/commands/stereosam/stereo-vibe-public/newbot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 974 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00974
Opus 5 $0.00000 $0.00487
Sonnet 5 $0.00000 $0.00195
Haiku 4.5 $0.00000 $0.00097

Measured 9d ago against content hash 41bb24f64ec9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

newbot scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Токен нового бота — СЕКРЕТ. Он лежит в `/path/to/bots/<assistant-bot>/managed/<username>.token` (chmod 600). В синканутую память (`claude_memory`) НЕ писать. В вывод stdout токен не печатать.
commands/newbot.md · 43 lines

How it starts

The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Создать новый Telegram-бот через work_bot (Bot Management API). Без ручного BotFather.

Аргумент $ARGUMENTS = <Имя бота> | <username> (username ОБЯЗАН кончаться на bot). Пример: /newbot Stereo Disk Sync | stereo_disk_bot Если аргумент не передан — спроси имя и username.

Что уже готово (не пересоздавать)

  • Менеджер: @stereo_work_bot (id 8628356043), can_manage_bots=true. Токен в /path/to/bots/<assistant-bot>/.env (TELEGRAM_TOKEN), владелец — OWNER_CHAT_ID.
  • Движок: /path/to/bots/<assistant-bot>/tools/newbot.py (делает весь флоу).

Шаги выполнения

  1. Запусти движок В ФОНЕ (он сам стопает work-bot на время поллинга и потом рестартит):
    ssh <user>@<your-server> '/path/to/bots/<assistant-bot>/venv/bin/python /path/to/bots/<assistant-bot>/tools/newbot.py --name "<Имя>" --username <username>'
    
    Запускать через run_in_background: true (поллинг до 5 мин).
  2. Сразу скажи пользователю: «В Telegram от @stereo_work_bot пришла ссылка — нажми её и подтверди создание бота». Без его тапа бот не создастся.
  3. Дождись завершения фонового процесса. Успех = строка [OK] бот @<username> создан. Токен сохранён -> /path/to/bots/<assistant-bot>/managed/<username>.token.
  4. Если [FAIL] — смотри причину в выводе:
    • «ссылку не нажали» → попроси нажать, перезапусти движок.
    • «поле не совпало» (RAW managed_bot keys) → структура апдейта отличается; поправь извлечение токена/параметр getManagedBotToken в движке по показанным ключам.

Безопасность (КРИТИЧНО)

  • Токен нового бота — СЕКРЕТ. Он лежит в /path/to/bots/<assistant-bot>/managed/<username>.token (chmod 600). В синканутую память (claude_memory) НЕ писать. В вывод stdout токен не печатать.
  • work-bot во время поллинга недоступен ~до 5 мин (нужен эксклюзивный getUpdates) — это норма, движок его сам поднимает в finally.

Рецепт под капотом (на случай отладки)

Bot API Bot Management: deep-link https://t.me/newbot/<manager>/<suggested>?name=<name> → владелец подтверждает → прилетает update.managed_bot (ManagedBotUpdated, поля user+bot) + сервисный ManagedBotCreated → токен забирается методом getManagedBotToken (параметр — id нового бота).

Read the full file on GitHub · 43 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 43 lines · 0 tokens per session scan B 41bb24f64ec9

Subscribe to this mod's changes

newbot is a command published in the GitHub repository stereosam/stereo-vibe-public (1 stars, last pushed 26d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 974 tokens. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.