Repository navigation
chore: wire graft code graph for Claude Code, Cursor and Copilot (CLEAN-108) - #16
Merged
maksymhryzodub-prog merged 1 commit intoSep 21, 2026
Conversation
…AN-108) Repo-level output of `graft init --no-global`: MCP server entries, hook and statusline shims, the graft skill/rule/instructions, and ignore entries for the local graft/ cache (teammates run `graft build`). Adjusted after generation so the files are shareable: the shims no longer bake a home-directory path, Cursor hooks use repo-relative commands, and the permission allowlist keeps only graft commands. Co-Authored-By: Claude Fable 5.1 <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.
What
Repo-level output of
graft init --no-global, so agents working here pull context from the prebuilt symbol/call graph instead of grepping:.claude/settings.json(statusline + hooks), hook/statusline shims, thegraftskill,.mcp.json.cursor/rules/graft.mdc,.cursor/mcp.json,.cursor/hooks.json+ shim.github/copilot-instructions.md.gitignore/.ignore— thegraft/graph is a local cache, ignored by git but still greppableChanged after generation (so the files are shareable)
%APPDATA%/npm/...resolved at runtime (the remaining lookups already cover macOS/Linux)..cursor/hooks.jsoncalled the shim by an absolute local path; now repo-relative.graft/npx graft— droppedgraft-devandnode dist/cli.js, which in this repo would have auto-approved running the runtime's own CLI.Re-running
graft initwill regenerate the baked paths — re-apply or skip those hunks when committing.Setup for teammates
npm i -g @nanonets/graft && graft build, then restart the agent. Without graft installed the hooks no-op.No runtime code touched.
Jira: https://dreamvention.atlassian.net/browse/CLEAN-108
🤖 Generated with Claude Code