Skip to content

docs(models): explain why Bash commands need absolute paths - #8

Merged
gsdevme merged 1 commit into
mainfrom
docs/bash-absolute-paths
Sep 7, 2026
Merged

gsdevme merged 1 commit into
mainfrom
docs/bash-absolute-paths

Conversation

@gsdevme

@gsdevme gsdevme commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a ## Bash commands section to models.md recommending absolute paths built from the repository root instead of cd <dir> && <cmd> with relative paths.
  • Explain the actual cause: the permission checker cannot resolve relative paths after a cd, so every such command prompts for approval.
  • Include a bad/good example and replace the older token-rule bullet with a pointer to the new section so the guidance is stated once.

Test plan

  • make test passes
  • make apply and confirm the section appears in ~/.claude/CLAUDE.md imports and the generated Codex AGENTS.md

🤖 Generated with Claude Code

Add a Bash commands section describing that relative paths after a cd
cannot be resolved by the permission checker, so every such command
triggers an approval prompt. Replace the older token-rule bullet with a
pointer to the new section.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@gsdevme
gsdevme marked this pull request as ready for review September 7, 2026 09:09
@gsdevme
gsdevme merged commit 8d7c370 into main Sep 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant