Claude Discovery

← All discoveries

Close-up of a computer monitor displaying cyber security data and code, indicative of system hacking or programming.
Photo by Tima Miroshnichenko on Pexels
tool

Claude Code v2.1.206: /commit-push-pr honors configured push remote and worktree confirmation

2026-07-17 ยท source:

Claude Code 2.1.206 makes /commit-push-pr auto-allow pushes to a repo's configured pushDefault remote, not just origin, and adds a /doctor check for trimming CLAUDE.md files.

What it is

A Claude Code CLI release with git-workflow and context-file improvements.

What it does

It extends /commit-push-pr's auto-allowed git push targets to remote.pushDefault or a repo's sole remote, adds directory suggestions to /cd matching /add-dir, introduces a /doctor check proposing trims to checked-in CLAUDE.md files, and requires confirmation before EnterWorktree opens a worktree outside the project's .claude/worktrees directory.

Why it matters

Repos that push to a non-origin remote get correct auto-push behavior instead of failing silently, and the CLAUDE.md trim check helps keep context files from bloating with redundant content.

How to use it

Update to 2.1.206 or later and run /doctor to see suggested CLAUDE.md trims.

Go to source →
claude-codecligitclaude-md