Skip to content

chore: wire graft code graph for Claude Code, Cursor and Copilot (CLEAN-108) - #16

Merged
maksymhryzodub-prog merged 1 commit into
fix/CLEAN-107-oauth-only-identity-linefrom
chore/CLEAN-108-graft-setup
Sep 21, 2026
Merged

maksymhryzodub-prog merged 1 commit into
fix/CLEAN-107-oauth-only-identity-linefrom
chore/CLEAN-108-graft-setup

Conversation

@maksymhryzodub-prog

Copy link
Copy Markdown
Contributor

Stacked on #15 — base is fix/CLEAN-107-oauth-only-identity-line. Merge #15 first; GitHub retargets this PR to main once that branch is deleted.

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 Code — .claude/settings.json (statusline + hooks), hook/statusline shims, the graft skill, .mcp.json
  • Cursor — .cursor/rules/graft.mdc, .cursor/mcp.json, .cursor/hooks.json + shim
  • Copilot — fenced graft section in .github/copilot-instructions.md
  • .gitignore / .ignore — the graft/ graph is a local cache, ignored by git but still greppable

Changed after generation (so the files are shareable)

  • The three shims baked an absolute home-directory path to the global graft install; replaced with %APPDATA%/npm/... resolved at runtime (the remaining lookups already cover macOS/Linux).
  • .cursor/hooks.json called the shim by an absolute local path; now repo-relative.
  • Permission allowlist trimmed to graft / npx graft — dropped graft-dev and node dist/cli.js, which in this repo would have auto-approved running the runtime's own CLI.

Re-running graft init will 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

…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>
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.

1 participant