bubbuild/bub
Bub it. Build it. A common shape for Agents.
What's novel
Bub it. Build it. A common shape for Agents.
Code Analysis
8 files read · 3 roundsA hook-first Python runtime for AI agents that processes messages through a pluggable turn pipeline (resolve_session → build_prompt → run_model → render_outbound), with an append-only 'tape' event log for conversation state, multi-provider LLM support with fallback, tool execution, and channel adapt
Strengths
The hook-first architecture via pluggy is genuinely well-executed — every stage of the agent loop is a documented, typed hook with clear contracts, making the runtime fully extensible without forking. The tape system (append-only event log with anchors, fork/merge, rich query builder, and context-length auto-handoff) is a sophisticated and original approach to agent state management that avoids mutable session objects.
Weaknesses
The test suite exists (29 files) but I couldn't verify its depth; the codebase has some complexity in the store layer with multiple protocol/adapter patterns that could be simplified. The model_runner.py file is large (21kb) and mixes provider adaptation, completion orchestration, and tool execution in one class.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
283
Contributors
17
Files
89
Active weeks
11
Repository
Language
Python
Stars
1002
Forks
89
License
Apache-2.0