sync when your corpus has changed. It fingerprints source files, skips
unchanged content, re-extracts changed content, and removes provenance for deleted
sources. A triple remains while it still has supporting provenance.
Choose a query
Agents should use
ask or pack rather than load the entire store into context.
Keep answers grounded in the returned citations. An abstention is a valid result.
Automatic updates
enable installs this hook script:
PostToolUse hook. With enabled and
auto_update set, matching Git commands start a detached incremental sync on the
default branch. Hooks skip CI. Set sync_on_feature_branches: true in
.gsd-graph/config.json to opt into feature-branch updates, or run sync manually.
Check .gsd-graph/.last-sync-status.json for the result. Failed detached syncs
also retain .last-sync-failure.out and .last-sync-failure.err.
For other editors, use a filesystem watcher or install a Git post-commit hook:
Record and correct facts
assert and retract record changes in episodes.jsonl. Full rebuilds replay
these episodes, so asserted facts and retractions survive a rebuild.
supersede records a decision reversal; superseded
facts receive lower retrieval priority and are marked in citations.
Save and restore
gsd-graph snapshot restore before-corpus-change restores the canonical graph.
Sidecar files may lag afterward. gsd-graph repair regenerates the disposable
projection; gsd-graph report refreshes the human report.