Skip to content

feat(models): prefer absolute, scoped paths in Bash and search - #7

Merged
gsdevme merged 1 commit into
mainfrom
feat/models-absolute-paths
Sep 4, 2026
Merged

gsdevme merged 1 commit into
mainfrom
feat/models-absolute-paths

Conversation

@gsdevme

@gsdevme gsdevme commented Sep 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds two token rules to models.md for Claude Code:

  • Use absolute paths in Bash commands. A relative path requires a preceding cd, and a cd inside a compound command can trigger a permission prompt and an extra round-trip.
  • Scope grep/rg and other searches to a specific absolute path rather than the whole repo — a targeted search returns fewer, more relevant hits and burns fewer tokens.

Both join the existing Token rules as Claude Code-only conventions.

Changes

  • models.md — two new bullets under Token rules.

Test plan

  • make apply regenerates both documents.
  • make test — the full Bats suite (13 tests) passes.

🤖 Generated with Claude Code

Add token rules instructing Claude Code to use absolute paths in Bash
commands and to scope grep/rg searches to a specific path. A relative
path requires a preceding cd (which can trigger a permission prompt and
an extra round-trip), and an unscoped search returns more noise and
burns more tokens than a targeted one.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gsdevme
gsdevme force-pushed the feat/models-absolute-paths branch from 1f2950a to b96ef07 Compare September 4, 2026 13:49
@gsdevme gsdevme changed the title feat(models): prefer absolute paths in Bash commands feat(models): prefer absolute, scoped paths in Bash and search Sep 4, 2026
@gsdevme
gsdevme merged commit 5da919b into main Sep 4, 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