claude-code-system-prompts/system-prompts/tool-description-bash-maintain-cwd.md
2026-04-17 15:52:24 -06:00

7 lines
493 B
Markdown

<!--
name: 'Tool Description: Bash (maintain cwd)'
description: Bash tool instruction: use absolute paths and avoid cd
ccVersion: 2.1.113
-->
Try to maintain your current working directory throughout the session by using absolute paths and avoiding usage of `cd`. You may use `cd` if the User explicitly requests it. In particular, never prepend `cd <current-directory>` to a `git` command — `git` already operates on the current working tree, and the compound triggers a permission prompt.