How Claude remembers your project changedmemory
Nearest release: v2.1.317, published 2 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 2 Nov 2026 21:30 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 2 Nov 2026 21:37 UTC.
Upstream edited
Recorded here
Lines+6added
Lines−5removed
From line
202
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits49to this page, all time
The whole hunk
from line 202, old and new numbered
/
from line 202
202202- Include OpenAPI documentation comments
203203```
204204
205Rules without a `paths` field are loaded unconditionally and apply to all files. A path-scoped rule loads when Claude uses the Read, Write, or Edit tool on a matching file. It also loads when Claude views a matching file with a Bash command that [counts as a read](https://code.claude.com/docs/en/tools-reference.md#edit-tool-behavior), such as `cat` or `head` on a single file. Matching also works when Claude reaches a file through a symlinked path to the project directory, for example in a symlinked checkout.
205A path-scoped rule loads when Claude uses the Read, Write, or Edit tool on a matching file. It also loads when Claude views a matching file with a Bash command that [counts as a read](https://code.claude.com/docs/en/tools-reference.md#edit-tool-behavior), such as `cat` or `head` on a single file. Matching also works when Claude reaches a file through a symlinked path to the project directory, for example in a symlinked checkout.
206206
207207Each pattern is relative to the rule's base directory:
208208
from line 215
215215
216216| Pattern | Matches |
217217| - | - |
218| `**/*.ts` | All TypeScript files in any directory |
219| `src/**/*` | All files under `src/` directory |
220| `*.md` | Markdown files in the project root |
221| `src/components/*.tsx` | React components in a specific directory |
218| `**/*.ts` | `.ts` files anywhere under the base directory |
219| `src/**/*` | All files under the base directory's `src/` |
220| `*.md` | `.md` files anywhere under the base directory |
221| `/*.md` | `.md` files directly in the base directory, not in subfolders |
222| `src/components/*.tsx` | `.tsx` files directly in the base directory's `src/components/`, not in subfolders |
222223
223224You can specify multiple patterns and use brace expansion to match multiple extensions in one pattern:
224225
No line in this hunk matches that.