Repository navigation
feat: per-worktree graphify graph via pre-commit post-* hooks - #23
Merged
Merged
Conversation
…* hooks Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…onfig) Restrict other hooks to the pre-commit stage, install with --allow-missing-config, replace flock with a portable mkdir lock plus dirty marker, create uv.lock at generation time, and add pre-commit to dev deps. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Oct 18, 2026
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.
What
Generated projects now keep their own graphify code graph (
graphify-out/) current, per git worktree, without committing it.default_stages: [pre-commit]keeps other hooks off the post-* stages; install withuv run pre-commit install --allow-missing-configso checking out commits without a config still works;pre-commitis a dev dependency; copier runsuv lockso--frozenworks.localhookgraphifyonpost-commit,post-checkout,post-merge,post-rewrite;default_install_hook_typesmakes a plainpre-commit installset all of them up (min pre-commit bumped to 3.2.0).scripts/graphify-update.shrunsuv run --frozen graphify update .(AST only, no LLM) detached in the background, coalescing triggers through a portablemkdirlock plus a dirty marker (stale locks recovered, log appended and capped; works without flock), and always exits 0.graphifyy>=0.9.92in the dev group;graphify-out/in.gitignore; new "Code Graph" section inAGENTS.md; README setup note.Why
graphify hook installskips them and adds a merge driver and.gitattributes).GRAPHIFY_NO_AUTO_REFRESH=1is set so graphify does not rewrite the user's global agent skill files with the project's pinned version.Tests
.gitignore,AGENTS.md, executable script.uvfails.uv sync,pre-commit install, commit, poll forgraphify-out/graph.json, thengit worktree addand poll for the new worktree's own graph. Passed locally: post-checkout fires ongit worktree add. Full suite: 38 passed.Not verified
setsidpath is untested). Windows needs Git Bash (documented).uvx; it is skipped ifuvor the network is missing.🤖 Generated with Claude Code