feat: engraph v0.3.0 — vault graph and graph search agent#2
Merged
devwhodevs merged 8 commits intomainfrom Mar 24, 2026
Merged
Conversation
Add edges table to SQLite for vault graph. Supports wikilink and mention edge types. Bidirectional cleanup on delete_edges_for_file. ON DELETE CASCADE handles file deletion. INSERT OR IGNORE for dupes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…edge stats BFS-based neighbor traversal (Rust loop, not recursive CTE). Shared tags via JSON query. FTS5 term presence check with escaping. Best chunk lookup for snippet resolution. Edge statistics. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Byte-scanning wikilink extractor handles [[target]], [[target|display]], [[target#heading]], skips embeds (![[...]]). Deduplicates targets. Query term extraction for graph agent relevance filtering. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1-2 hop expansion with decay (0.8x for 1-hop, 0.5x for 2-hop). Relevance filter: must contain query term (FTS5) or share tags. Multi-parent merge takes highest score. Skips seed files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wikilink extraction runs on raw file content during indexing. Targets resolved by exact path then basename match (case-insensitive). Bidirectional edges inserted. People detection scans for name mentions in non-People files, with alias extraction from frontmatter. Rebuild clears edges before building. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Graph lane expands seed results from semantic + FTS by following wikilinks. Weight 0.8 (slightly below direct lanes). Detail field on LaneContribution shows hop info in --explain output. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
'engraph graph show <file>' displays outgoing/incoming wikilinks and mentions. Supports file path, basename, or #docid resolution. 'engraph graph stats' shows vault graph overview. Status output now includes edge counts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Version bump and docs update for engraph v0.3.0: - Vault graph with wikilink + mention edges - Graph agent as 3rd RRF search lane - engraph graph show/stats CLI - 119 tests, 12 modules Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
edgestable storing bidirectional wikilink edges (546 edges / 273 pairs on test vault) and people mention edges (77 mentions). Built during indexing after all files are written.engraph graphCLI —engraph graph show <file>displays incoming/outgoing wikilinks and mentions.engraph graph statsshows vault-wide graph overview.Edges: 623 (546 wikilinks, 77 mentions)).New commands
Architecture changes
graph.rsadded)edgestable with indexes + ON DELETE CASCADETest plan
cargo test --lib)cargo clippy -- -D warnings)cargo fmt --check)--explainoutputengraph graph show <note>on various notesengraph search "person name" --explainto verify graph lane🤖 Generated with Claude Code