bub
AGENTS.md1.7k starsChanged 16 months agoApache-2.0View on GitHub
Core code lives under src/: Tests live in tests/. The website and docs runtime lives in website/.
- Reads credentials
Trending
Quiet since September.about the whole repository
Who's talking about bubbuild/bub
- A Hacker News story“Show HN: Bub – shaping interactions, not agents”Hacker News · Mar 19, 2026 · 3 points
- LodyAI/Lody“feat: add Bub as a builtin ACP provider”GitHub · Sep 11, 2026 · 1 reactions
- Gezi-lzq/bub“feat: hook-based turn admission control”GitHub · May 12, 2026 · 1 reactions
- ob-labs/powercontext-go“build(deps): bump the uv-minor-patch group across 7 directories with 16 updates”GitHub · Sep 30, 2026
- ob-labs/powercontext-go“build(deps): bump the uv-minor-patch group across 7 directories with 15 updates”GitHub · Sep 23, 2026
The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 21
Talked about on GitHub and Hacker News (21 times).
On GitHub · 20
- Sep 11, 2026feat: add Bub as a builtin ACP provider — LodyAI/Lody1 reaction · 4 comments
- May 12, 2026feat: hook-based turn admission control — Gezi-lzq/bub1 reaction
- Sep 30, 2026build(deps): bump the uv-minor-patch group across 7 directories with 16 updates — ob-labs/powercontext-go0 reactions
- Sep 23, 2026build(deps): bump the uv-minor-patch group across 7 directories with 15 updates — ob-labs/powercontext-go0 reactions · 1 comment
- Sep 16, 2026build(deps): bump the uv-minor-patch group across 7 directories with 16 updates — ob-labs/powercontext-go0 reactions · 1 comment
15 more on GitHub
- Sep 9, 2026build(deps): bump the uv-minor-patch group across 7 directories with 16 updates — ob-labs/powercontext-go0 reactions · 1 comment
- Sep 7, 2026build(deps): bump the uv-minor-patch group across 7 directories with 16 updates — ob-labs/powercontext-go0 reactions · 1 comment
- Jun 29, 2026[Enhancement]: use uv to maintain all the pyhthon dev — oceanbase/powercontext0 reactions
- Jun 18, 2026feat: add ACP model config option — bubbuild/bub-contrib0 reactions · 1 comment
- May 24, 2026feat(channel): support lifecycle channel — bubbuild/bub-contrib0 reactions
- May 10, 2026feat: dynamic version from VCS and release notes auto-generation — bubbuild/republic0 reactions
- May 6, 2026feat: bub-http-bridge — HTTP channel plugin for local message posting — Gezi-lzq/bub-contrib0 reactions
- May 1, 2026Implement Telegram skill following bub — linw1995/coco0 reactions · 2 comments
- Apr 14, 2026feat: Build Hero section and Navigation bar — 100gle/bub0 reactions · 1 comment
- Apr 7, 2026fix(codex): preserve streamed text when completed response has empty output — bubbuild/republic0 reactions · 1 comment
- Mar 30, 2026refactor: clean code but keep function — ob-labs/agentseek0 reactions
- Mar 27, 2026Add bub to automation — cncf/landscape0 reactions · 6 comments
- Mar 11, 2026fix(responses): handle completed metadata-only outputs — bubbuild/republic0 reactions
- Mar 7, 2026[wip] add bub agent support — vercel-labs/agent-eval0 reactions
- Feb 11, 2026Agentic — shenxiangzhuang/shenxiangzhuang.github.io0 reactions
On Hacker News · 1
- Mar 19, 2026Show HN: Bub – shaping interactions, not agents3 points · 1 comment
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- website/AGENTS.mdAGENTS.md
- website/CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 37
Use snake_case for modules/functions/variables, PascalCase for classes, and UPPER_CASE for constants.
- Distinctive: line 38
Keep functions focused and composable.
- Very specific: line 44
Prefer behavior-oriented test names such as test_gateway_uses_enabled_channels_only.
- Distinctive: line 46
Update or add tests in the same change when behavior moves.
- Very specific: line 50
Follow the Conventional Commit style used in history, for example feat:, fix:, docs:, chore:.
- Distinctive: line 51
Keep commits focused; avoid mixing unrelated refactors with behavior changes.
- Very specific: line 60
Use .env for local secrets.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
Testing Guidelines
- Framework:
pytest. - Name test files
tests/test_<feature>.py. - Prefer behavior-oriented test names such as
test_gateway_uses_enabled_channels_only. - Cover hook precedence, turn lifecycle, CLI/channel behavior, and tape persistence when changing runtime behavior.
- Update or add tests in the same change when behavior moves.
Commit & Pull Request Guidelines
- Follow the Conventional Commit style used in history, for example
feat:,fix:,docs:,chore:. - Keep commits focused; avoid mixing unrelated refactors with behavior changes.
- For PRs, include:
- what changed and why
- impacted modules or commands
- verification performed (
ruff,mypy,pytest, docs build if relevant) - docs updates when CLI behavior, commands, or architecture changed
Security & Configuration Tips
- Use
.envfor local secrets; never commit credentials. - Bub runtime settings are driven by
BUB_*variables such asBUB_MODEL,BUB_API_KEY, andBUB_API_BASE. - Provider-specific keys such as
OPENROUTER_API_KEYmay still be consumed by downstream SDKs. - Telegram deployments usually require
BUB_TELEGRAM_TOKEN, and allowlists are controlled withBUB_TELEGRAM_ALLOW_USERSandBUB_TELEGRAM_ALLOW_CHATS.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

