Problem
codegraph upgrade updates the binary, but does not refresh the files previously written by codegraph install.
I upgraded a long-lived install from 0.9.x to 1.3.1, but the CodeGraph sections in CLAUDE.md and AGENTS.md still told agents to call codegraph_context. That tool was removed in 1.0.0, so agents now get an “unknown tool” error and often stop using CodeGraph.
Re-running codegraph install fixes the sections, but users have no reason to know that they need to do this after an upgrade.
Expected behavior
After a successful upgrade, CodeGraph should refresh the installer-owned instructions and MCP config for agents that are already configured. It should not configure new agents or change the user's permission and hook choices.
Because the instruction templates are bundled with the binary, the refresh needs to run through the newly installed binary.
PR #1239 implements this behavior.
Environment
- CodeGraph 1.3.1, installed through npm
- Ubuntu linux-x64
- Upgraded from a 0.9.x install
Problem
codegraph upgradeupdates the binary, but does not refresh the files previously written bycodegraph install.I upgraded a long-lived install from 0.9.x to 1.3.1, but the CodeGraph sections in
CLAUDE.mdandAGENTS.mdstill told agents to callcodegraph_context. That tool was removed in 1.0.0, so agents now get an “unknown tool” error and often stop using CodeGraph.Re-running
codegraph installfixes the sections, but users have no reason to know that they need to do this after an upgrade.Expected behavior
After a successful upgrade, CodeGraph should refresh the installer-owned instructions and MCP config for agents that are already configured. It should not configure new agents or change the user's permission and hook choices.
Because the instruction templates are bundled with the binary, the refresh needs to run through the newly installed binary.
PR #1239 implements this behavior.
Environment