Repository navigation
fix(init): honor --no-mcp and --no-hooks for Claude Code - #124
michaelxer wants to merge 1 commit into
Conversation
|
Appreciate your work 👍 |
🌱 graft blast radius3 areas changed → 1 area can be affected. 3 dependent symbols, depth 2. flowchart TB
A0(("MCP Retraction<br/>3 symbols"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0 reached;
Who knows this code — 2 people across 4 areas
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no All 3 dependent symbols, grouped by areaMCP Retraction — 3 symbols in 1 file
Test signal per changed area — 2 ✓ · 1 ✗Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
2 test suites also reference this code4 symbols, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
468c545 to
812077b
Compare
812077b to
29f906b
Compare
Those flags only reached other-agent wiring. Claude Code still wrote .mcp.json and the hook shim. Skip the matching Claude writes, keep dry-run/picker in sync, and replay the stamp on refresh. Fixes trailhq#118
29f906b to
1fb7e1e
Compare
|
Thanks for this, and for the clear write-up of #118! Main has moved underneath it: the Claude Code home wiring from #276 changed the MCP result types, and after resolving the conflicts this branch no longer compiles ( |
Fixes #118.
Problem
graft init --no-mcp(and--no-hooks) only reached other-agent wiring. Claude Code still wrote.mcp.jsonand the hook shim/settings, even though the README says--no-mcpskips Claude Code MCP registration.That's the path that burns extra LLM cache when Claude Code is pointed at a DeepSeek endpoint.
Fix
runInithonorsmcp/hooksthe same wayrunHostsInitalready did--dry-run/ the picker drop those Claude pathsgraft initis unchangedHow I tested
80 passed.
Local repro after the change:
writes statusline + skill, no
.mcp.json, nograft-hooks.cjs. Default--agents claudestill writes both.Did not run a live Claude Code session against DeepSeek.