Skip to content

chore(config): the project's Claude Code settings are checked in, while local settings, scratch and worktrees stay ignored #1087

Closed

Description

@dan-petty

Problem

.gitignore:71 ignores the whole .claude/ directory, so the project's shared Claude Code settings, .claude/settings.json, have never been in git. That file holds the project's enabled plugins and its permission rules, and Claude Code expects it to be committed so every checkout gets the same settings. The same rule must keep ignoring what is local or generated: .claude/settings.local.json (personal settings), .claude/scratch/ and .claude/worktrees/.

Acceptance criteria

  • .gitignore ignores .claude/* and re-includes .claude/settings.json. git check-ignore reports .claude/settings.local.json, .claude/scratch/x and .claude/worktrees/x as ignored, and .claude/settings.json as not ignored.
  • .claude/settings.json is committed as it stands. It holds no secret, token or host name.
  • A changelog fragment and the task file are added, and uv run devops ci passes.

Key questions

  • Re-include only settings.json? (proposed) Yes. Agents, commands or hooks under .claude/ can be re-included the same way when the project adds them.

Strategic alignment

  • Milestone v0.2.25 (owner request, 2026-10-03), P2 chore.

Activity

  1. added this to the v0.2.25 milestone on Oct 3, 2026
  2. added
    type/chore
    scope/config
    priority/p2-medium
    on Oct 3, 2026
  3. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    Closed by #1088, merged into release/v0.2.25.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

  4. added a commit that references this issue on Oct 3, 2026
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

    priority/p2-mediumscope/configtype/chore

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions