Vault-grounded drafting: reach the Vault from any chat

↗ view on GitHub · emileriksenkeev · 2026-07-12 · 15dd519c

Add read-only Vault access to the assistant so drafting grounds in real
templates/precedents and entity particulars instead of placeholders.

- vault.ts: searchVault() (semantic search scoped to the Vault project) and
  readVaultDocument() (full text by id, OCR-aware) - no project copy needed.
- chatTools.ts: new search_vault + read_vault_document tools in a shared
  VAULT_TOOLS array (list_vault_documents moved in); spread into
  PROJECT_EXTRA_TOOLS; dispatch handlers added. Rewrote WHEN DRAFTING to be
  Vault-first (find a precedent, pull real party details, only bracket what
  is genuinely unknown) and softened the answer-from-knowledge default.
- chat.ts: pass VAULT_TOOLS to the global (projectless) chat so the Vault is
  reachable everywhere, not just inside a project.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Repository emileriksenkeev/sydOS
Author emileriksenkeev <emil@keev.co>
Authored
Parents f64fa799
Stats 3 files changed , +263 , -11
Part of The Vault - org-wide shared document library

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-15dd519c.md from inside the repo you want the change in.

⬇ Download capture-commit-15dd519c.md