
Br8n
io.github.anthonysuherli由 GitHub 帳號 anthonysuherli 發布v1.1.2更新於 Oct 24, 2026
Capture dev context on interrupt; replay it as a 30-second resume card. Git stash for your head.
概覽
Br8n 把目前的工作情境與意圖存成快照,並在你回到某個分支或專案時,以簡短的恢復卡片重現。
- 可以做什麼
- 依需求或在提交邊界(透過 post-commit 鉤子)擷取工作區快照,包含分支、開啟的檔案、diff 和一行假設,並依專案與分支存入可搜尋的日誌。顯示恢復卡片,包含最近的假設、近期快照和覆蓋度條。對已擷取的歷史做語意搜尋,回答關於先前工作的問題。執行補足研究流程,抓取變更的文件、issue 和相依套件,並把結果併入知識庫。回報並切換目前使用的嵌入提供者。
- 適用情境
- 適合在會議、切換分支或休息後容易忘記自己在做什麼的開發者,也適合希望助理回想起先前工作思路的情境。最適合單機本機使用;跨機器同步和團隊共享被說明為尚未推出。
- 執行需求
- 以 Python 套件(pip 或 uvx)或 Claude Code 外掛形式在本機執行,外掛首次執行會自行建立環境。免費本機層使用裝置上的 SQLite,位於 ~/.br8n/brain.db,不需要帳號或金鑰。語意搜尋需要 AI_GATEWAY_API_KEY 或 OPENAI_API_KEY,或安裝選用的本機嵌入元件以使用免金鑰的裝置端模型。補足流程還需要 TAVILY_API_KEY。雲端層需要 Supabase 憑證和 BR8N_BACKEND=cloud。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Br8n,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
br8n — git stash for your head
Site · install · how it works · pip install br8n
You'll forget what this branch was for. br8n won't. It saves what you were
thinking the moment you get pulled away — branch, open files, the diff, and the
one-line why — and hands it back as a 30-second resume card when you return.
Your code is already saved; this is the part that isn't. Research puts the cost of
refocusing after an interruption at about 23 minutes
(Gloria Mark, UC Irvine),
and longer for complex code. (Snapshots are taken two ways today: automatically at
commit boundaries via an installed post-commit hook, and on demand with
/br8n:capture. There is no continuous watcher.)
Most tools capture state (files, layout, git history). br8n captures intent — the one-line hypothesis in your head: "JWT validation is caching stale tokens." That's the wedge that matters.
Beyond your current device, br8n is a portable knowledge engine: your captured insights live in a searchable journal accessible from Claude Code, the iOS companion, or any tool that speaks HTTP. Sync, search, and share across machines (paid tier, future).
Core features
1. Capture — Save your thinking before you switch away
Before a meeting, a branch switch, or end of day, run /br8n:capture. br8n snapshots
your workspace in one second and records "What were you working on?" — the one-line
hypothesis is the load-bearing field.
Your captured snapshots live in a searchable journal. One hypothesis per snapshot— the thing you'd write on a post-it.
2. Resume — Return to where you left off
Open br8n (or focus your editor). The resume card appears instantly with:
- Your last hypothesis (the headline)
- Recent snapshots (how many times were you here?)
- A coverage band (how fresh is this knowledge?)
No digging through git logs. No "where was I again?" Back to work in 30 seconds.
3. Explore — Fill knowledge gaps
If coverage is gap (you've been away a while, or switched branches), one click runs
a web-research pipeline to pull in fresh context: changed docs, new issues, updated
deps—and folds it back into your session knowledge base.
Perfect for returning after a weekend or after your teammate merged a big change.
br8n is a self-contained fork of Delapan, repurposing its primitives (Findings, pgvector search, tap/preamble) from chat to automatic capture.
Use it two ways
Claude Code plugin (on demand)
Slash commands from inside any Claude Code session:
Example: You're in a Claude Code session debugging auth. Type /br8n:search "how did I set up JWT validation?" and get an answer from your captured snapshots.
iOS companion (read on the go)
A native SwiftUI app — the read spine. Sign in with Apple, browse your cross-repo
activity, and read resume cards from your phone. Consumes the same /v1/projects +
/v1/resume + /v1/activity API, authenticated per-user (see below).
Knowledge engine: portable & accessible
Your captured snapshots form a searchable knowledge journal. The engine runs in two tiers from the same code — the difference is where your data lives.
Access your knowledge anywhere:
Free tier: single device, no sync. Paid tier: access from Claude Code, the iOS app, or any tool that speaks HTTP. Team sharing and cross-repo search are designed (future).
The paid value props — cross-machine sync, cross-repo search, managed keys, team sharing — are not yet shipped.
Examples
Example 1: The meeting interruption
Example 2: Context switch across branches
Example 3: In Claude Code
Quick start
Install the Claude Code plugin — no venv, no path editing. The plugin's MCP server bootstraps its own environment on first run.
Reload the session, then use /br8n:pickup, /br8n:capture, etc. Data lives in
~/.br8n/brain.db on the free/local tier.
What works without any key: capture and resume. Snapshots are stored without embeddings, so the resume card, the hypothesis and the snapshot trail all work with no account and no key at all.
What needs a key: semantic search (/br8n:search) needs an embedding key —
AI_GATEWAY_API_KEY or OPENAI_API_KEY. The explore / gap-fill pipeline needs that
and TAVILY_API_KEY for web search.
Keyless semantic search: on the local tier, pip install 'br8n[local-embeddings]'
gives you semantic search with no API key at all — an on-device ONNX model
(bge-small-en-v1.5, ~130MB, no torch, downloaded once on first use). Use
/br8n:embeddings to check which provider is active or switch between them. A keyless
python -m br8n.vault.reindex rebuilds real vectors, not just text.
Vectors from different models aren't comparable, so br8n keeps one active embedding
space and re-embeds when you change providers. Because a provider can also change
by accident — a shell without your API key resolves to the local model — br8n will
not silently throw your vectors away: a change it inferred from the environment is
offered, not applied. /br8n:embeddings (and --check) report the pending switch,
and it happens when you confirm. While an offer is pending, capture and search behave
exactly as they do with no key at all: nothing breaks, nothing is lost, and the
backlog re-embeds itself once you confirm. A switch you ask for explicitly applies
immediately.
Sanity-check a local install with python -m br8n.api.main --check — it reports your
Python version, which backend tier is configured, whether sqlite-vec loads, whether
the DB path is writable, and whether the embedding and explore keys are present.
Anything missing is named explicitly.
Running the API directly (optional)
Free/local (SQLite, single device):
Paid/cloud (Supabase, accessible anywhere):
From source (contributors)
Working on br8n itself, rather than using it:
pip install br8n also works as a plain package install, and ships the
br8n-mcp and br8n-server entry points; the plugin marketplace remains the
supported path for using br8n inside Claude Code.
Configuration
By default, the knowledge base is keyed by project (git repo name) and kb
(git branch). Override the database path with BR8N_DB_PATH (local) or set Supabase
credentials in .env (cloud).
The cloud tier is multi-user: each request carries a Supabase GoTrue JWT —
obtained via Sign in with Apple through POST /v1/auth/apple (Supabase verifies
the Apple token and provisions the user) and rotated via POST /v1/auth/refresh. The
backend verifies the JWT against SUPABASE_JWT_SECRET and scopes every read/write
(findings and the activity graph) to the caller's own org via row-level security.
BR8N_API_KEY remains as a service-only key for internal callers. The local tier
needs no auth (loopback-only, single user).
Design principles
- Intent over state — capture why, not just what (the hypothesis is the headline)
- Low friction — one command checkpoints everything; no forms to fill out
- Bounded capture — snapshot at the moments that matter (before a meeting, branch switch, end of day)
- Survive context switches — works across folders, branches, machines
- Never blocking — capture is fire-and-forget; <1s per snapshot
Architecture & development
See CLAUDE.md for:
- Module layout (
br8n/core engine, fork structure) - API surface (
/v1/capture,/v1/resume,/v1/explore,/v1/auth/apple) - Storage tiers (SQLite vs Supabase)
- MCP tools and plugin skills
Status
- Core engine — capture, resume, explore pipelines
- Claude Code plugin — slash commands (
/br8n:pickup, etc.) - iOS companion — native SwiftUI read spine (projects, resume cards, activity)
- Storage tiers — free (SQLite) and paid (Supabase) in one codebase
- Multi-user cloud auth (backend) — per-user Supabase JWT tenancy, per-org isolation,
/v1/auth/apple+/v1/auth/refresh - ⬜ Apple sign-in, end-to-end — Fly.io deploy + Supabase Apple provider + iOS wiring (designed, in progress)
- ⬜ Cross-machine sync — designed, not yet shipped
- ⬜ Team sharing — designed, not yet shipped
License
br8n is open source under the MIT License — use it for anything, including commercially, as long as the copyright notice is preserved.
"br8n" is a name used by Anthony Suherli; the license covers the code, not the name (see TRADEMARKS.md). br8n is a self-contained fork of the Delapan engine; Delapan itself is separately licensed and not covered by this MIT grant.
Contributions are welcome under the inbound = outbound rule with a DCO sign-off — see CONTRIBUTING.md. For the full governance map (security disclosure, privacy, code of conduct), see LEGAL.md.
來源:README.md,提交 a764619
工具
0版本歷史
1- v1.1.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分