Skip to content

Optimized changeindex and AST, vue support, better defaults and skill, MCP hot reload#16

Open
zinvob wants to merge 18 commits into
TtTRz:mainfrom
zinvob:main
Open

Optimized changeindex and AST, vue support, better defaults and skill, MCP hot reload#16
zinvob wants to merge 18 commits into
TtTRz:mainfrom
zinvob:main

Conversation

@zinvob

@zinvob zinvob commented Jul 5, 2026

Copy link
Copy Markdown

Detecting files is very slow on big repo's, added support for a change index. On initial build, it will create a changeindex.json file (filename, local changedate, size and hash) in same folder as graph.json. On subsequent build update, it will first check against the index and only do hash compute if changed local date. Also removed --update as it is redundant.

Cleaned up the skill for better Claude usage to make sure it does not try to load the complete graph.

Cleaned up defaults to only create files used by Claude as default, and prepare graphify-rs-out inside repo folder instead of a user folder for better access from Claude (just add to git ignore).

Added support for .vue files.

On local tested repo, speed for detect went from minutes to couple of seconds.

Optimized AST extract loop for AST extract speedup.

Fixed MCP server to auto refresh when graph.json changes from a build.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves build performance on large repositories by introducing an on-disk change index for faster detection, removing the redundant --update flag, and tightening defaults to produce only Claude-relevant outputs by default.

Changes:

  • Added changeindex.json-backed detection (detect_fast) and build short-circuiting when no content changed.
  • Changed default output directory to graphify-rs-out/ under the project root and narrowed default export formats to json,report.
  • Updated installer/skill docs for the new defaults and improved semantic extraction handling of cache hits.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/paths.rs Changes default output directory to graphify-rs-out under the project root.
src/main.rs Removes CLI plumbing for the deprecated --update flag.
src/install.rs Updates generated guidance to reflect automatic change detection and removal of --update.
src/cmd_build.rs Switches to detect_fast, adds “skip rebuild if unchanged”, narrows default formats, and adjusts semantic extraction cache-hit flow.
skill.md Updates usage guidance (formats/defaults) and adds stronger guidance to avoid reading graph.json directly.
crates/graphify-watch/src/lib.rs Removes manifest persistence logic associated with the old incremental mode.
crates/graphify-detect/src/lib.rs Adds changeindex module, implements detect_fast, removes manifest/incremental detection code and tests.
crates/graphify-detect/src/changeindex.rs Introduces changeindex persistence (mtime/size/words/hash) for fast detection.
CHANGELOG.md Documents the new change index, default changes, and removal of --update.
Cargo.toml Bumps workspace version to 0.8.2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/cmd_build.rs Outdated
Comment thread src/cmd_build.rs
Comment thread src/cmd_build.rs Outdated
Comment thread crates/graphify-detect/src/changeindex.rs
Comment thread crates/graphify-detect/src/changeindex.rs Outdated
@zinvob

zinvob commented Jul 10, 2026

Copy link
Copy Markdown
Author

Fixed the issues pointed out in review, also included .vue support, fixed a symantic cache issue and made sure the filename sensitive filter does not filter away code files

@zinvob zinvob changed the title Optimized changeindex, better defaults and skill Optimized changeindex, vue support, better defaults and skill Jul 12, 2026
@TtTRz
TtTRz requested a review from Copilot July 13, 2026 06:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 19 changed files in this pull request and generated 7 comments.

Comment thread src/cmd_build.rs
Comment thread src/cmd_build.rs
Comment thread src/cmd_build.rs Outdated
Comment thread src/main.rs Outdated
Comment thread README.md Outdated
Comment thread src/paths.rs
Comment thread crates/graphify-detect/src/sensitive.rs
@zinvob zinvob changed the title Optimized changeindex, vue support, better defaults and skill Optimized changeindex and AST, vue support, better defaults and skill, MCP hot refresh Jul 20, 2026
@zinvob zinvob changed the title Optimized changeindex and AST, vue support, better defaults and skill, MCP hot refresh Optimized changeindex and AST, vue support, better defaults and skill, MCP hot reload Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants