Skip to content

fix(install): honor CLAUDE_CONFIG_DIR in always-on CLAUDE.md registration (#2694) - #2753

Closed
AromalBiju1 wants to merge 1 commit into
Graphify-Labs:v8from
AromalBiju1:fix/claude-config-dir-2694
Closed

AromalBiju1 wants to merge 1 commit into
Graphify-Labs:v8from
AromalBiju1:fix/claude-config-dir-2694

Conversation

@AromalBiju1

Copy link
Copy Markdown
Contributor

Fixes #2694

The always-on CLAUDE.md registration path resolved Path.home() unconditionally,
ignoring CLAUDE_CONFIG_DIR — the same issue #527 fixed for the skill-copy path,
but that fix didn't cover this always-on registration path (as noted by @yotamleo
in the issue).

This mirrors the existing CLAUDE_CONFIG_DIR check from
_platform_skill_destination into the CLAUDE.md registration block.

Tested locally on all three scopes:

  • --project → writes to project-local .claude/CLAUDE.md, ignores CLAUDE_CONFIG_DIR (unchanged)
  • global + CLAUDE_CONFIG_DIR set → now correctly writes to $CLAUDE_CONFIG_DIR/CLAUDE.md
  • global, no env var → unchanged fallback to ~/.claude/CLAUDE.md

Full test suite: 289 passed, 1 unrelated pre-existing failure (missing build
dev dependency in local env, unrelated to this change).

Copilot AI lite review requested due to automatic review settings August 15, 2026 07:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@graphify-labs graphify-labs Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graphify reviewed this change.

Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).

Formal verification. No changes could be formally verified in this run.


Graphify review — findings

This PR modifies the CLAUDE.md registration logic in the install function within graphify/install.py. For the global (non-project) install case, it now checks for a CLAUDE_CONFIG_DIR environment variable and, when set, derives both the CLAUDE.md path and the skill reference path from that directory instead of always using ~/.claude. The project-scoped path and the default home-directory fallback are preserved, with the branching refactored from an inline conditional into an if/elif/else block.

No blocking issues surfaced. 2 lower-confidence candidates did not survive cross-model review.

Analysis details — impact, health, verification

Impact & health

Graphify review

Impact — 365 functions depend on the 139 functions this change touches.

Health — grade B; 10 existing hotspot(s) in the area this change touches (pre-existing, not introduced here):

  • dispatch_command() — 2 callers, 117 callees (high)
  • codebuddy_install() — 20 callers, 5 callees (high)
  • claude_install() — 19 callers, 4 callees (high)
  • gemini_install() — 10 callers, 7 callees (high)
  • claude_uninstall() — 17 callers, 4 callees (high)
  • _project_uninstall() — 5 callers, 13 callees (high)
  • dispatch_install_cli() — 2 callers, 31 callees (high)
  • codebuddy_uninstall() — 14 callers, 4 callees (high)
  • …and 2 more

Verification — 365 functions in the blast radius were not formally verified this run (proofs are advisory here).

Gate & verification

graphify gate

PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.

Advisory (not blocking):

  • verification_scope: 241 function(s) in the blast radius were not formally verified this run

Formal verification

Could not verify: Could not verify install.

The verifier did not have enough to check install, so it is saying so rather than guessing. No false assurance is the whole point.

Guarantee: No guarantee either way, this is an honest abstention, not a pass.

Note: Reason: not verifiable: all 23 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly SystemExit — names the real obstacle, not a sampling gap)

@safishamsi

Copy link
Copy Markdown
Member

Landed in v0.9.44, just published to PyPI, cherry-picked onto v8 with your authorship preserved. This covers the always-on CLAUDE.md registration honoring CLAUDE_CONFIG_DIR (part 1 of #2694). Thanks @AromalBiju1. Closing the PR; I've left #2694 open for the remaining version-stamp half.

@safishamsi safishamsi closed this Aug 15, 2026
safishamsi pushed a commit that referenced this pull request Aug 16, 2026
…talled (#2694)

install() called _refresh_all_version_stamps(), which stamped every installed
platform's .graphify_version with the current version WITHOUT rewriting that
platform's skill content — so a genuinely stale platform was stamped current
and its staleness warning was suppressed. Removes that bogus refresh; each
platform's stamp now advances only when its own content is (re)written via
_copy_skill_file, so a not-reinstalled stale platform correctly still warns.
Completes #2694 (part 1 shipped in 0.9.44 via #2753).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants