bubbuild/bub
A hook-first Python runtime for building AI agents that operate alongside humans in shared environments.

Bub provides a small Python runtime for creating AI agents in multi-agent settings where humans and agents work together. It implements a hook-based architecture where every turn stage is a pluggable hook, allowing developers to override or replace any part of the pipeline. Built on agents.md and Agent Skills standards, the same runtime powers CLI interactions, Telegram channels, and custom integrations. Context is managed through append-only tape records rather than mutable session state, making agent behavior easier to inspect and replay.
Frequently asked
- What is bubbuild/bub?
- A hook-first Python runtime for building AI agents that operate alongside humans in shared environments.
- Is bub open source?
- Yes — bubbuild/bub is open source, released under the Apache-2.0 license.
- What language is bub written in?
- bubbuild/bub is primarily written in Python.
- How popular is bub?
- bubbuild/bub has 1.6k stars on GitHub.
- Where can I find bub?
- bubbuild/bub is on GitHub at https://github.com/bubbuild/bub.