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.
npx agentmods add instructions/bubbuild/bub/agents-mdgit clone --depth 1 https://github.com/bubbuild/bubWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00825 | $0.00825 |
| Opus 5 | $0.00413 | $0.00413 |
| Sonnet 5 | $0.00165 | $0.00165 |
| Haiku 4.5 | $0.00082 | $0.00082 |
Grade A, and why
bub 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository Guidelines
Project Structure & Module Organization
Core code lives under src/:
src/bub/__main__.py: Typer CLI entrypoint.src/bub/framework.py: turn orchestration and outbound routing.src/bub/hooks/: hook specifications, execution helpers, and interception contracts.src/bub/channels/: channel bases, routing contracts, admission policy, and lifecycle manager.src/bub/{envelope,turn,streaming,errors,model_selection}.py: small kernel vocabulary owned by each concern.src/bub/builtin/: builtin runtime, CLI wiring, settings, tools, and tape services.src/bub/channels/: channel abstractions plus CLI and Telegram adapters.src/bub/skills.py/src/bub/tools.py: skill discovery and tool registry.src/skills/: bundled skills shipped with Bub.
Tests live in tests/. The website and docs runtime lives in website/.
Build, Test, and Development Commands
uv sync: install or update the Python environment; enough to run Bub from source or for deployment-only hosts.make install: full local development bootstrap; sync Python deps, install website deps, and installprekhooks.uv run bub chat: run the interactive CLI.uv run bub gateway: start channel listener mode.uv run bub run "hello": run one inbound message through the full framework pipeline.uv run bub hooks: inspect discovered hook bindings.uv run ruff check .: run Ruff directly when you only want lint feedback.uv run mypy src: run mypy directly againstsrc/.uv run pytest -q: run the main test suite without doctests.make test: run pytest with doctests enabled.make check: lock validation,prek, and typing.make docs/make docs-test/make docs-preview: serve, build, or preview the Astro website/docs inwebsite/.
Coding Style & Naming Conventions
- Python 3.12+, 4-space indentation, and type hints for new or modified logic.
- Use
snake_casefor modules/functions/variables,PascalCasefor classes, andUPPER_CASEfor constants. - Keep functions focused and composable; avoid hidden side effects.
- Format and lint with Ruff. Keep line length within 120 unless an existing file clearly follows a different local convention.
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.
- yesterday First seen · 64 lines · 825 tokens per session scan A 9cbe896c37fa
bub AGENTS.md is an instructions file published in the GitHub repository bubbuild/bub (1,591 stars, last pushed 6d ago), licensed Apache-2.0. It adds 825 tokens to every session, about $0.0041 per session on Opus 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.
Other instructions, from other repositories
mcp-toolbox GEMINI.md
Gemini CLI instructions for googleapis/mcp-toolbox, covering mcp toolbox context & style guide, project overview, tech stack, key directories and development workflow.
open-agents AGENTS.md
AGENTS.md instructions for vercel-labs/open-agents, covering agents.md, quick links, authentication, database & migrations and environment isolation.
relay AGENTS.md
Instructions for AgentWorkforce/relay, covering git workflow rules, never push directly to main, correct workflow, ... do work .. and stop here - let user merge.
agno CLAUDE.md
Instructions for agno-agi/agno, covering claude.md — agno, repository structure, conductor notes, setting up symlinks and virtual environments.
axonhub AGENTS.md
AGENTS.md instructions for looplj/axonhub, covering agents.md, global rules, configuration, project overview and technology stack.
axonhub CLAUDE.md
Claude Code instructions for looplj/axonhub: @AGENTS.md read and follow its instructions.