# bubbuild/bub

Bub it. Build it. A hook-first runtime for agents that live alongside people.

Repository: https://github.com/bubbuild/bub
Canonical: https://ross.abutalabs.com/products/bub
Homepage: https://bub.build/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: agent, ai, python, agents, ai-agents, aiagentframework, llms, bub
Last push: 2026-08-25T14:49:56+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 98, longevity 29
- inputs: {"age_days": 416, "days_push": 8, "days_rel": 14, "gap_med": 8, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1592, forks 157 (observed 2026-08-28T04:05:08.708422+00:00)

## What it is
Bub is a small Python runtime for building AI agents that operate in shared environments alongside humans. It uses a hook-first architecture where every turn stage is a pluggy hook, with append-only tape records for context and channel adapters for CLI, Telegram, and custom surfaces.

## Use cases
- build ai agents that collaborate with humans in group chats
- run an llm agent from the cli or telegram
- customize agent turn pipeline stages with hooks
- extend an agent runtime with custom plugins tools and skills
- replay and inspect agent conversation history from tape records
- deploy a self-hosted agent gateway listening on chat channels
- swap llm providers without changing the agent runtime

## When to choose
- you want a minimal, hackable agent runtime where every pipeline stage is overridable
- you need agents and humans sharing the same conversation with transparent, inspectable state
- you want one runtime driving multiple chat surfaces like CLI and Telegram

## When to avoid
- you need a batteries-heavy agent framework with a large built-in tool ecosystem
- you want a no-code or hosted agent platform rather than a Python framework
- you need mature production guarantees - the project is young with a small core

## Facets
- artifact type: framework
- maturity: active
- function: agent-framework, plugin-system, chatbot, llm-inference, cli, middleware, workflow-automation
- domain: large-language-models, chatbots, developer-tools, messaging-platforms
- platform: python, cli, cross-platform, self-hosted
- tags: hook-first, pluggy, tape-context, channel-agnostic, agents-md, agent-skills, multi-agent, turn-pipeline, litellm, ai-agents, automation, telegram

## Member repositories
- bubbuild/bub (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:08.708422+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:54:40.313993+00:00, confidence not recorded.
  - readme: https://github.com/bubbuild/bub (fetched 2026-08-28T04:05:08.708422+00:00, sha d5cfeeb6f21d)
  - homepage: https://bub.build/ (fetched 2026-08-29T11:25:13.500226+00:00, sha 473c7d035051)
  - site_page: https://bub.build/docs/getting-started (fetched 2026-08-29T11:25:13.502988+00:00, sha 17fd0b3d727a)
  - registry_pypi: https://pypi.org/pypi/bub/json (fetched 2026-08-29T11:25:13.504953+00:00, sha 26d1954e9aa8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
