Skip to content

Install does not use CLAUDE_CONFIG_DIR #3572

Open

Description

@jny986

Issue

When installing graphify in the agent it uses the default location of claude code instead of using the CLAUDE_CONFIG_DIR which causes problems when mulitple accounts etc are used.

Reproduce

Setup claude code using export CLAUDE_CONFIG_DIR=~/.claude-work for example
When running setup in claude code creates skills etc in ~/.claude directory.

Activity

  1. L4XB commented on Sep 15, 2026

    @L4XB
    Contributor

    I tried to reproduce this on main (0.9.61) and could not: the install honours CLAUDE_CONFIG_DIR completely. But the same setup turned up a real gap in the other direction, so posting both.

    Install, with CLAUDE_CONFIG_DIR set and a sandbox HOME:

    $ HOME=$TMP/gfhome CLAUDE_CONFIG_DIR=$TMP/gfcfg python -c "from graphify.install import install; install(platform='claude')"
    
    gfcfg/CLAUDE.md
    gfcfg/skills/graphify/SKILL.md
    gfcfg/skills/graphify/.graphify_version
    gfcfg/skills/graphify/references/*.md
    

    Nothing landed in HOME at all. _platform_skill_destination reads the variable for the skill tree (#527) and the always-on registration reads it too (#2694), so both halves are covered. If you are on a version before those, that is very likely the whole of it. Worth checking graphify --version against 0.9.61 before anything else.

    The gap I did find, same session, reproduced twice. uninstall removes the skill from the right place and leaves the registration behind:

    $ python -c "from graphify.install import claude_uninstall; claude_uninstall()"
      skill removed    ->  $TMP/gfcfg/skills/graphify/SKILL.md
    No CLAUDE.md found in current directory - nothing to do
    
    $ grep -c graphify $TMP/gfcfg/CLAUDE.md
    3
    

    The same happens without CLAUDE_CONFIG_DIR, against ~/.claude/CLAUDE.md, so it is not specific to this variable. The cause is that claude_uninstall's md_targets are all project_dir-relative:

    md_targets = [
        project_dir / "CLAUDE.md",
        project_dir / "CLAUDE.local.md",
        project_dir / ".claude" / "CLAUDE.local.md",
    ]

    A user-global uninstall writes its skill removal to the global tree and then looks for the registration in the current directory. So after graphify uninstall, Claude Code still loads a ## graphify block pointing at a SKILL.md that was just deleted, and the message says nothing was found.

    I have a fix for that with tests and will open it referencing this issue, since this is where it surfaced. Happy to move it under a separate issue if you would rather keep this one about the install path.

  2. jny986 commented on Sep 16, 2026

    @jny986
    Author

    I did the install following the instructions on the website by running graphify install inside claude code after installing the package using uv.

  3. L4XB commented on Sep 16, 2026

    @L4XB
    Contributor

    Thanks — that detail narrows it, though not in the direction I expected. The CLI and the Python API run the same code, so that is not the difference: on the current branch graphify install dispatches through dispatch_install_cli in graphify/install.py (__main__.py:29, :749), which is the same module whose resolver I exercised.

    So the remaining variable is which version uv installed, and there is a specific boundary that matches your symptom exactly.

    The boundary is 0.9.44

    CLAUDE_CONFIG_DIR is honoured in two separate places, and they landed in two separate releases:

    skill copy → $CLAUDE_CONFIG_DIR/skills/… CLAUDE.md registration
    0.9.43 and earlier honoured ~/.claude/CLAUDE.md
    0.9.44 and later honoured honoured

    Measured by counting the occurrences in graphify/ at each tag rather than from the changelog alone: v0.9.43 has 2 and no config_dir / "CLAUDE.md"; v0.9.44 has 5 and does. The changelog entry for 0.9.44 says the same thing —

    graphify install (Claude always-on) now writes the CLAUDE.md registration into $CLAUDE_CONFIG_DIR when that env var relocates the Claude profile, instead of always mutating the default ~/.claude/CLAUDE.md (part of #2694)

    — and the code comment in install.py:699-702 records why it was a second fix: the skill-copy path was fixed by #527, and "this always-on registration path was missed by that fix".

    So on anything before 0.9.44, with CLAUDE_CONFIG_DIR=~/.claude-work, the skill lands in ~/.claude-work/skills/graphify/ while the registration is written into ~/.claude/CLAUDE.md. If what you are seeing is a file appearing under ~/.claude, that is the shape.

    What would settle it

    graphify --version

    If it is below 0.9.44, uv tool install --upgrade graphifyy (latest on PyPI is 0.9.62) should resolve it, and I would expect the leftover ~/.claude/CLAUDE.md block to need removing by hand once.

    If it is 0.9.44 or later, then this is a live bug and I was wrong to close it out as not-reproducible — in that case please also say which of these appeared under ~/.claude: the skills/graphify/ directory, the CLAUDE.md registration block, or both. Those three answers point at three different code paths and I will chase whichever it is.

    One thing ruled out, since it is the obvious guess with a uv install: there is no graphify package on PyPI at all (404), only graphifyy, so you cannot have picked up a different project by mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions