Skip to content

Upgrading CodeGraph leaves old agent instructions in place #1238

Description

@xuing

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions