heatherbot: Instructions file for Codex

AGENTS.md

heatherbot AGENTS.md is an instructions file for Codex, OpenCode from dvoraknc/heatherbot. It costs 4,021 tokens per session, scanned A, original, MIT.

A setup guide for HeatherBot, a locally run Telegram companion that uses a real Telegram account and a local language model.

In plain words
What is it for?
It helps agents install and start the text-based bot, then understand optional services for images, voice, memory, and Discord.
Why use it?
It explains the required software, credentials, configuration, and startup order, so an agent can prepare a new machine without missing prerequisites.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is dvoraknc/heatherbot's own configuration. It tells Codex and OpenCode how to work on heatherbot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything heatherbot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dvoraknc/heatherbot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dvoraknc/heatherbot/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/dvoraknc/heatherbot

Made for: Codex, OpenCode.

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 heatherbot AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dvoraknc/heatherbot/agents-md/github.svg)](https://agentmods.dev/instructions/dvoraknc/heatherbot/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dvoraknc/heatherbot/agents-md"><img src="https://agentmods.dev/badge/instructions/dvoraknc/heatherbot/agents-md/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 heatherbot AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dvoraknc/heatherbot/agents-md"><img src="https://agentmods.dev/badge/instructions/dvoraknc/heatherbot/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,021 This file is loaded in full into every session.
When invoked 4,021 The same file — it is already loaded in full.
Security scan A 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.04021 $0.04021
Opus 5.5 $0.01608 $0.01608
Sonnet 5.5 $0.00804 $0.00804
Haiku 4.5 $0.00402 $0.00402

Measured 2mo ago against content hash 3b3cc4ae68c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

heatherbot AGENTS.md scanned grade A 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:1234/v1/models
AGENTS.md · 347 lines

How it starts

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

AGENTS.md — Bootstrap Guide for Coding Agents

This file is written for an autonomous coding agent (Claude Code, Codex, etc.) tasked with getting HeatherBot running on a fresh machine. It is a literal, ordered runbook. A human can follow it too. Read the whole file before you start executing — several steps have prerequisites that are cheaper to satisfy up front.


0. TL;DR for an agent

HeatherBot is a fully local, persona-driven AI companion that runs as a Telethon MTProto userbot (it logs in as a real Telegram account, not a Bot API bot). It talks to a local LLM over an OpenAI-compatible HTTP endpoint and has optional local services for image analysis, image generation, and voice.

To get a minimal text-only bot alive you need exactly four things:

  1. Python 3.11
  2. A running local LLM server on http://localhost:1234/v1 (llama.cpp's llama-server, LM Studio, or anything OpenAI-compatible)
  3. Telegram API credentials (API_ID + API_HASH) and a phone number to log in
  4. A persona YAML (ship persona_example.yaml as-is to start)

Everything else (Ollama vision, ComfyUI image gen, ElevenLabs/Coqui voice, semantic vector memory, the Discord bridge) is optional and fail-soft — the core bot runs without them.

Do not expect a one-command install. This is infrastructure, not an app.


1. System requirements

Requirement Minimum Notes
OS Windows 10/11, Linux, or macOS Original deployment is Windows 11. Paths in helper .ps1 scripts are Windows; the Python is cross-platform.
Python 3.11.x 3.12 likely works; 3.11 is tested.
RAM 16 GB 32 GB+ comfortable.
GPU 1× 8 GB VRAM for a small (7B–12B) model A 24B model wants ~24 GB (one RTX 3090) or quantization. Original runs dual RTX 3090.
Disk 10–40 GB Dominated by the GGUF model file, which you supply separately.
Network Outbound to Telegram All AI inference is local; no cloud LLM required.

Read the full file on GitHub · 347 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. 2mo ago First seen · 347 lines · 4,021 tokens per session scan A 3b3cc4ae68c2

Subscribe to this mod's changes

heatherbot AGENTS.md is an instructions file published in the GitHub repository dvoraknc/heatherbot (23 stars, last pushed 4mo ago), licensed MIT. It adds 4,021 tokens to every session, about $0.0161 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

heatherbot AGENTS.md compared with instructions from other repositories

heatherbot AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
heatherbot AGENTS.mddvoraknc/heatherbotInstructions file234mo agoMITA4,021Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode