bub
Bub it. Build it. A tiny agent runtime, composable with plugins.
Source#
- Repository: bubbuild/bub
- Last source update: 2026-10-11
- Last verified: 2026-10-11
Tags#
Integration notes#
Framework-level abstraction; derive bounded worker contracts from concrete tasks and APIs in docs/examples.
worker.md example#
Starter worker.md contract mapped from this registry entry. Copy this file and adapt schemas, constraints, and statuses for your task.
---
id: bub-repo-derived-worker
name: bub Repo-Derived Worker
version: 1.0.0
source_registry_url: https://worker.md/registry/bub/
source_repository: https://github.com/bubbuild/bub
repository_default_branch: main
repository_language: Python
repository_license: Apache-2.0
repository_updated_at: 2026-10-11
worker_mode: agent-orchestration-worker
derivation_method: github_repository_metadata_plus_raw_readme
derivation_confidence: 0.9
derived_on: 2026-10-11
tags:
- agent-framework
- agent-skills
- ai-agents
- cli
- context-engineering
- harness
---
# bub Repo-Derived Worker
## Repo-derived summary
- Registry summary: Bub it. Build it. A tiny agent runtime, composable with plugins.
- Repository description: Bub it. Build it. A tiny agent runtime, composable with plugins.
- Stars (snapshot): 1,684
- Primary language: Python
- Worker mode classification: agent-orchestration-worker
## Extracted from
- https://github.com/bubbuild/bub
- https://github.com/bubbuild/bub/blob/main/README.md
- https://pluggy.readthedocs.io/
- https://bub.build
- https://github.com/bubbuild/bub/blob/main/src/bub/framework.py
## Evidence notes (from repository text)
- README summary paragraph: Bub is a small Python runtime for building agents in shared environments. It started in group chats, where multiple humans and agents had to work in the same conversation without hidden state, hand-wavy memory, or framework-specific magic.
- A tiny agent runtime, composable with plugins.
- For local development, use `make install` instead so the website toolchain and `prek` hooks are installed too.
- - **Batteries included.** CLI, Telegram, tools, skills, and model execution ship with the core runtime. Use the defaults first, replace them later.
- - **Operator equivalence.** Humans and agents work inside the same runtime boundaries, with the same evidence trail and handoff model. No hidden operator class.
- Builtins are registered first. External plugins load after them. At runtime, later plugins take precedence. There are no framework-only shortcuts.
## Installation hints found in README
- No explicit package installation command detected in README text.
## worker.md contract (derived starter)
Purpose: Execute one orchestrated agent task as a bounded worker step.
### Input schema
```json
{
"type": "object",
"additionalProperties": false,
"required": [
"run_id",
"task",
"context"
],
"properties": {
"run_id": {
"type": "string"
},
"task": {
"type": "string"
},
"context": {
"type": "object"
}
}
}
```
### Output schema
```json
{
"type": "object",
"additionalProperties": false,
"required": [
"run_id",
"status",
"result"
],
"properties": {
"run_id": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"ok",
"retryable_error",
"invalid_request",
"invalid_output"
]
},
"result": {
"type": "object"
}
}
}
```
### Constraints
- timeout_seconds: 30
- max_attempts: 2
- idempotency_key: run_id
- status_enum: [ok, retryable_error, invalid_request, invalid_output]
- notes: adapt to concrete APIs/classes documented in this repository before production use
## How this should be used
1. Treat this file as a repo-derived starter profile, not a claim of an official repository API contract.
2. Replace schemas with exact interfaces from code/docs you adopt.
3. Keep execution bounded and auditable using worker protocol constraints.
How to use#
- Save this as a worker spec file (for example:
bub-my-task.worker.md). - Replace the input/output schemas and purpose with your real bounded task.
- Enforce schema validation + timeout + retry policy in your runtime before production use.
Citation#
Reference URL: https://worker.md/registry/bub/
Source URL: https://github.com/bubbuild/bub