Best practices for Claude Code changedbest-practices
Nearest release: v2.1.325, published 19 hours before 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 14 Nov 2026 15:59 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 14 Nov 2026 16:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
6
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits38to this page, all time
The whole hunk
from line 6, old and new numbered
/
from line 6
66
77For example:
88
9* To let commands run safely without you approving each one, new terminal and VS Code sessions start in [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode), where a classifier reviews anything risky before it runs.
9* To let commands run without you approving each one, new terminal and VS Code sessions start in [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode).
1010* To keep your main conversation focused while independent work happens in parallel, Claude delegates to subagents and checks in only when it has to.
1111* To keep a long session going without you managing it, your conversation is compacted automatically before the context window fills.
1212
from line 591
591591
592592You rarely have to clean any of this up yourself:
593593
594* When you exit an unnamed worktree session, Claude Code [removes the worktree](https://code.claude.com/docs/en/worktrees.md#clean-up-worktrees) if there's nothing in it. For a named session, or one with changes, it asks what to do.
594* When you exit an unnamed worktree session, Claude Code [removes a worktree it created with git](https://code.claude.com/docs/en/worktrees.md#clean-up-worktrees) if there's nothing in it. For a named session, or one with changes, it asks what to do.
595595* Subagent worktrees disappear when the subagent finishes without changes.
596596* Subagent and background-session worktrees that do get left behind are swept once they're older than `cleanupPeriodDays` and hold no work.
597597
No line in this hunk matches that.