bitterbot-desktop: Instructions file for Codex

AGENTS.md

bitterbot-desktop AGENTS.md is an instructions file for Codex, OpenCode from Bitterbot-AI/bitterbot-desktop. It costs 3,033 tokens per session, scanned A, original, MIT.

A set of repository instructions for Bitterbot-AI/bitterbot-desktop, a self-hosted gateway that connects AI agents to chat services and gives them persistent memory. It documents the repository's memory system and dream engine.

In plain words
What is it for?
Use it when working on the Bitterbot desktop repository, especially code under src/memory/ or the dream engine. It explains the project's architecture and the intended behavior of those systems.
Why use it?
It gives coding agents project-specific context before they change the code. This helps them understand concepts such as stored knowledge, memory consolidation, curiosity, and personality-related systems.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; built for openclaw.

This is Bitterbot-AI/bitterbot-desktop's own configuration. It tells Codex and OpenCode how to work on bitterbot-desktop 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 bitterbot-desktop configures →

About the project

Bitterbot is a local-first personal AI agent that runs on a user’s devices, keeps persistent memories, performs tasks, and can exchange reusable skills with other agents. It is intended for people who want a personal assistant that remains available across conversations and activities. The catalogue entries provide instructions and agents for working with Bitterbot.

Bitterbot-AI/bitterbot-desktop · 2,481 stars · on GitHub · bitterbot.ai

Reuse

Borrowing it

Nothing to install: this file belongs to Bitterbot-AI/bitterbot-desktop. 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/Bitterbot-AI/bitterbot-desktop/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Bitterbot-AI/bitterbot-desktop

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 bitterbot-desktop AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bitterbot-ai/bitterbot-desktop/agents-md"><img src="https://agentmods.dev/badge/instructions/bitterbot-ai/bitterbot-desktop/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,033 This file is loaded in full into every session.
When invoked 3,033 The same file — it is already loaded in full.
Security scan A 0 findings. 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.03033 $0.03033
Opus 5.5 $0.01213 $0.01213
Sonnet 5.5 $0.00607 $0.00607
Haiku 4.5 $0.00303 $0.00303

Measured today against content hash 8c61f390f3c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bitterbot-desktop AGENTS.md scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 151 lines

How it starts

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

Bitterbot — Repository Guidelines

What is Bitterbot?

A self-hosted AI agent gateway with a biological memory system that dreams, gets curious, and evolves a personality. Bitterbot connects to your chat apps (WhatsApp, Telegram, Discord, Signal, Slack, and more) and runs AI agents that actually remember — with a dream engine that consolidates knowledge while idle, a curiosity function that drives self-directed learning, a hormonal system that shapes personality in real-time, and an economic layer that lets agents transact. Agents share skills through a P2P marketplace, earn reputation, and develop persistent identities across sessions.

What Makes Bitterbot Different

1. Memory System (src/memory/)

A consciousness-inspired memory pipeline:

  • Knowledge Crystals: Atomic memory units with embeddings, semantic types (fact, preference, skill, episode, insight, goal, relationship, task_pattern), importance scores, and a full lifecycle (generated → activated → consolidated → archived → expired). Skills are frozen (immune to decay).
  • Consolidation Pipeline: Runs every 30 minutes — hormonal decay, Ebbinghaus importance recalculation, chunk merging (cosine ≥ 0.92), low-importance forgetting, governance TTL enforcement, stalled goal detection.
  • Session Transcript Indexing: Conversations are automatically chunked, embedded, and made searchable. The agent can recall prior exchanges semantically.
  • Governance: Sensitivity tagging (normal/personal/confidential), TTL enforcement, audit trails on all memory operations. Anti-catastrophic forgetting safeguards.
  • User Profile: Automatically learned preferences (directive, world_fact, mental_model, experience types) persisted across sessions.
  • Failure experiments and procedural lab (failure-experiments.ts, procedural-learning*.ts, learning-strategy*.ts): the default-on shadow service includes a durable coordinator for the existing production skill-evolution pipeline. Idle dream ticks on the default agent run bounded failure experiments on the evolution cadence, independently of the creative-cycle gate; only the task validation gate can promote to canary. Dispatch limits, pause checks, bounded interrupted-proposal retries, canary monitoring and rollback remain in force. The journal is the input queue; the separate procedural SQLite ledger stores references and hashes. automation.enabled: false disables the idle coordinator; mode: "off" disables this service; skills.evolution.enabled: false stops production evolution. The manual service.strategies research lab and verified-experience adapters remain shadow-only, with no research-candidate promotion. See docs/memory/learning-strategy-lab.md and benchmarks/learning-strategy/ for evidence, including failed qualification gates.

Read the full file on GitHub · 151 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. today Changed · +1 lines · +210 tokens per session 8c61f390f3c8
  2. 22d ago Changed · +1 lines · +90 tokens per session a1ff0faf7b12
  3. 28d ago Changed · +114 tokens per session 22e2c5f218bd
  4. 1mo ago Changed · +1 lines · +122 tokens per session 1b038c48c2ab
  5. 1mo ago Changed · -3 lines · -141 tokens per session 6a9dcc41d797
  6. 1mo ago Changed · +1 lines · +69 tokens per session 63186bef1b76
  7. 2mo ago First seen · 150 lines · 2,569 tokens per session scan A 767b9e62ffc7

Subscribe to this mod's changes

bitterbot-desktop AGENTS.md is an instructions file published in the GitHub repository Bitterbot-AI/bitterbot-desktop (2,481 stars, last pushed today), licensed MIT. It adds 3,033 tokens to every session, about $0.0121 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

bitterbot-desktop AGENTS.md compared with instructions from other repositories

bitterbot-desktop AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bitterbot-desktop AGENTS.mdBitterbot-AI/bitterbot-desktopInstructions file2.5ktodayMITA3,033Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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