anthropics / anthropics/claude-code

Docs: clarify whether /compact reloads user-level ~/.claude/CLAUDE.md, not just project-root CLAUDE.md

オープン 初心者向け
#91,243 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
documentation enhancement
主要言語
Python
スター
145k
フォーク
23.1k
PR マージ指標
PR 指標を取得中

説明

Title: Docs: clarify whether `/compact` reloads user-level `~/.claude/CLAUDE.md`, not just project-root CLAUDE.md

## Summary

The troubleshooting/docs content around `/compact` explicitly states that
**project-root** `CLAUDE.md` is re-read after compaction. It does not say
anything about the **user-level** `~/.claude/CLAUDE.md` — even though that
file is documented elsewhere as its own distinct scope, loaded alongside the
project-root file at session start via the same mechanism.

This leaves it unclear whether:

- `/compact` also re-reads `~/.claude/CLAUDE.md` from disk (picking up
mid-session edits), or
- only project-root `CLAUDE.md` gets this treatment, and `~/.claude/CLAUDE.md`
is fixed to whatever was loaded at session start until a restart.

## Why this should be documented

It's architecturally plausible both files are reloaded the same way, since
they're loaded through the same mechanism at session start — but that's an
assumption, not something the docs currently confirm. Anyone who wants to
rely on `~/.claude/CLAUDE.md` for standing instructions and needs to know
whether an edit takes effect after `/compact` (vs. requiring a session
restart) currently has to test it themselves rather than find it documented.

## Suggested addition

A one-line clarification next to the existing "`/compact` re-reads
project-root CLAUDE.md" note, stating explicitly whether user-level
`~/.claude/CLAUDE.md` is included in that reload or not.

## Environment

- Claude Code CLI, VS Code extension context

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with the troubleshooting/docs content that describes `/compact` and the existing note about re-reading project-root `CLAUDE.md`. Verify whether user-level `~/.claude/CLAUDE.md` is also reloaded, then add a one-line clarification stating the documented behavior.

索引モデルが issue の本文から書いたものです。

評価

領域
cli, documentation
issue の種類
ドキュメント
難易度
2/5
見積もり時間
1〜3時間
活発さ
活発
明瞭さ
明確に書かれている
初心者へのやさしさ
76/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。