mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Four new extensions implement the Hanzo Brain on top of @hanzo/bot
without renaming anything or carving a separate repo. Solo devs install
nothing extra — single binary, single config, SQLite by default.
brain/ meta-pack: wires the three below into one register()
memory-postgres/ dual-mode store: Postgres+pgvector OR SQLite+FTS5,
selected by HANZO_BRAIN_URL / DATABASE_URL. Schema
mirrors gbrain's: pages, edges, facts, FTS index.
graph-links/ zero-LLM typed-link extractor — runs on every page
write. Emits attended/works_at/invested_in/founded/
advises edges from regex + role inference. Strips
code fences. Self-wiring knowledge graph at
>10K pages/sec.
recipes-brain/ YAML recipe loader + scheduler. Flagship recipe:
recipes/email.yaml — daily Gmail pull → classify →
draft → enqueue for swipe-review in the Hanzo app
(bot/apps/{ios,android,macos}). Every swipe is a
training signal for tone.
Tests: 16/16 pass (12 graph-links unit + 4 memory-postgres SQLite).
End-to-end smoke (markdown ingest → edge extraction → fact upsert →
hybrid search → recipe load) runs clean against bun:sqlite.
Deploy path: bot CI builds @hanzo/bot image w/ new extensions →
workflow_dispatch on .github/workflows/k8s-deploy-bot.yml rolls it to
app.hanzo.bot.