You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose embedding/chunk progress via bm status --json for headless polling #1587
bm reindex --embeddings already has a Rich progress bar in a real terminal, and #579 fixed the non-TTY rendering issue there back in v0.19.0 — that part is solved for someone actively watching the CLI run.
The gap is different: there's no supported way for something running outside that terminal session — a background/headless process — to poll current embedding progress. On a local FastEmbed/CPU setup, an initial sync or reindex over a large vault can run for a long time, and anything watching from outside (a status widget, a monitoring script, a CI step) has no stable signal to read.
I ended up writing a small script that polls ~/.basic-memory/memory.db directly, counting rows in search_vector_chunks vs search_vector_embeddings_rowids to compute pending chunks, and uses that to drive a simple progress display. It works, but it depends on internal table names that could change without notice — not something I'd want to rely on long-term.
Feature request
Expose embedding/chunk progress through an existing, documented surface instead of requiring internal DB reads:
Add total/embedded/pending chunk counts to bm status --json (alongside the existing file-sync info), so any external tool or script can poll a stable, documented field instead of reading internal tables.
This would let background tooling (dashboards, monitoring scripts, CI health checks) observe embedding progress without depending on Rich/TTY output or undocumented schema.
Alternatives considered
Parsing bm reindex --embeddings terminal output — fragile, and not available to a process that isn't the one running the reindex.
Reading ~/.basic-memory/memory.db directly (what I'm doing now) — works today but is an implementation detail, not a supported interface.
Happy to test against a real large vault if useful.
One more angle worth calling out: this isn't only about tooling integration — it's also a plain UX gap for anyone who doesn't live in a terminal. I use Basic Memory entirely through Cowork/Claude Desktop's MCP integration, not the CLI — I've never run bm reindex --embeddings by hand, and I suspect that's true for a growing share of users as MCP-first workflows become more common. For that group, a terminal progress bar is simply invisible; embedding just happens somewhere in the background with zero feedback, and a long run on CPU-only hardware looks indistinguishable from something being stuck.
A documented status field would let that group get feedback too — not by running a CLI command, but through whatever surface they're already using (a Cowork/desktop notification, a menu-bar widget, a status check baked into the MCP flow) without ever touching a terminal. The same way most background sync/indexing tools (Dropbox, Spotlight, etc.) surface progress passively rather than requiring a status command.
This exists as of #1440 (shipped in v0.23.x): bm status --json carries readiness.stages[], one entry each for files, relations and embeddings, with phase, pending and total. A headless poller can read the embeddings stage instead of querying search_vector_chunks directly, and the schema is a supported surface.
The embeddings stage counts entities (owed vs. holding a usable embedding), not chunks. If you need chunk-level granularity for your overlay, please open a new issue and say why entity counts aren't enough. Closing this one as covered. Thanks for the workaround writeup.
Activity
Flynn-Kawolsky commentedon Sep 21, 2026
One more angle worth calling out: this isn't only about tooling integration — it's also a plain UX gap for anyone who doesn't live in a terminal. I use Basic Memory entirely through Cowork/Claude Desktop's MCP integration, not the CLI — I've never run
bm reindex --embeddingsby hand, and I suspect that's true for a growing share of users as MCP-first workflows become more common. For that group, a terminal progress bar is simply invisible; embedding just happens somewhere in the background with zero feedback, and a long run on CPU-only hardware looks indistinguishable from something being stuck.A documented status field would let that group get feedback too — not by running a CLI command, but through whatever surface they're already using (a Cowork/desktop notification, a menu-bar widget, a status check baked into the MCP flow) without ever touching a terminal. The same way most background sync/indexing tools (Dropbox, Spotlight, etc.) surface progress passively rather than requiring a status command.
Flynn-Kawolsky commentedon Sep 21, 2026
For reference, here's what the local workaround I mentioned above actually looks like (a small always-on-top overlay, screen bottom-right):
phernandez commentedon Oct 10, 2026
This exists as of #1440 (shipped in v0.23.x):
bm status --jsoncarriesreadiness.stages[], one entry each forfiles,relationsandembeddings, withphase,pendingandtotal. A headless poller can read theembeddingsstage instead of queryingsearch_vector_chunksdirectly, and the schema is a supported surface.The embeddings stage counts entities (owed vs. holding a usable embedding), not chunks. If you need chunk-level granularity for your overlay, please open a new issue and say why entity counts aren't enough. Closing this one as covered. Thanks for the workaround writeup.