How Claude Code works changedhow-claude-code-works
Upstream edited this page at 28 Sep 2026 00:42 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 28 Sep 2026 01:07 UTC.
Upstream edited
Recorded here
Lines+11added
Lines−0removed
From line
118
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits15to this page, all time
#### Context Claude Code adds on its own
The whole hunk
from line 118, old and new numbered
/
from line 118
118118
119119For an interactive walkthrough of what loads and when, see [Explore the context window](/docs/en/context-window).
120120
121#### Context Claude Code adds on its own
122
123If Claude follows a rule you didn't write, such as adding a `Co-Authored-By` trailer to a commit, the rule may have come from a [system reminder](/docs/en/glossary#system-reminder). As you work, Claude Code adds its own context to the conversation alongside your messages:
124
125* Your CLAUDE.md files
126* The instructions of your [output style](/docs/en/output-styles)
127* A note when a file Claude read earlier changes on disk
128* The commit and pull request attribution lines
129
130To change or remove the attribution lines, set [`attribution`](/docs/en/settings-reference#attribution). To remove Claude Code's built-in commit and pull request instructions, set [`includeGitInstructions`](/docs/en/settings-reference#includegitinstructions) to `false`. For the other switches, see [Turn off the context your agent replaces](/docs/en/agent-sdk/modifying-system-prompts#turn-off-the-context-your-agent-replaces).
131
121132#### When context fills up
122133
123134Claude Code manages context automatically as you approach the limit. It clears older tool outputs first, then summarizes the conversation if needed. Your requests and key code snippets are preserved; detailed instructions from early in the conversation may be lost. Put persistent rules in CLAUDE.md rather than relying on conversation history.
No line in this hunk matches that.