Headless background indexing without keeping the Electron app running
What problem does this solve?
The spool CLI (and the /spool skill it powers inside Claude Code) only reads the index — it never refreshes it. spool search opens the database read-only and does no sync. Real-time indexing happens only while the Electron app is running, because the watcher lives in the app's main process.
For people who work mostly in the terminal, or use Spool only through the /spool agent skill and don't keep the GUI open, the index silently goes stale: /spool keeps returning fragments frozen at whenever the app last ran, with no signal that the results are outdated. Today the only options are to remember to run spool sync by hand, or to keep the whole Electron app open just to watch a directory.
What would the solution look like?
A first-class headless indexer that doesn't depend on the GUI. A few possible shapes:
spool service install→ installspool sync --watchas a lightweight OS service (a launchd agent on macOS) so the watcher runs independently of the app.- And/or: have
spool searchopportunistically sync any source older than a freshness threshold, and print alast synced N agostyle warning when results may be stale. - Either way, the app and the headless watcher need to coordinate so they don't both write to
~/.spool/spool.dbconcurrently (single-writer guard / advisory lock).