fix(installer): instructions block conditional on .codegraph/ — safe in user-scope files - #820
Merged
Merged
Conversation
….codegraph/ existing A global install writes the block into user-scope files (~/.claude/CLAUDE.md, ~/.codex/AGENTS.md) that apply to EVERY repo the user opens — the unconditional "This repository is indexed" claim was false in unindexed ones and would send subagents into failing codegraph calls, the exact noise the unindexed-session policy (#817) eliminates. Now: "In repositories indexed by CodeGraph (a .codegraph/ directory exists) …" plus an explicit skip-entirely line for the no-index case. Residual: the delegation A/B validated the assertive project-scoped wording; the conditional form keeps the same active ingredients (the codegraph name + both command surfaces in the relay-able slot) — fold a re-check into the next delegation A/B run. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #819. The instructions block opened with "This repository is indexed by CodeGraph" — true for project-local installs, false when a global install writes it into user-scope files (
~/.claude/CLAUDE.md,~/.codex/AGENTS.md,~/.gemini/GEMINI.md,~/.config/opencode/AGENTS.md), where it applies to every repo the user opens. In unindexed repos that claim would push subagents into failingcodegraphcalls — the exact noise the unindexed-session policy (#817) exists to prevent.The block is now scope-neutral: "In repositories indexed by CodeGraph (a
.codegraph/directory exists at the repo root) …", with an explicit "if there is no.codegraph/, skip CodeGraph entirely — indexing is the user's decision" closer, consistent with the stay-quiet policy everywhere else.Same
[Unreleased]feature as #819 — no separate changelog entry. Contract tests: 137/137 (substring assertions unaffected).Residual risk, stated honestly: the delegation A/B validated the assertive project-scoped wording (4/4 subagent adoption); the conditional form keeps the same active ingredients. Fold a re-check into the next delegation A/B.
🤖 Generated with Claude Code