refactor(claude): remove git/bash rules covered by system prompt#6
Merged
technicalpickles merged 1 commit intomainfrom Apr 17, 2026
Merged
refactor(claude): remove git/bash rules covered by system prompt#6technicalpickles merged 1 commit intomainfrom
technicalpickles merged 1 commit intomainfrom
Conversation
The Bash Commands and git sections duplicated or contradicted Claude Code's built-in system prompt (which already requires heredocs for commit messages and warns against `git add .` / `git add -A`). The `&&` misfire rule is removed pending validation via the test harness (bean dotfiles-dcjj). If the permission-prompt misfire still reproduces under current Claude Code + sandbox, a targeted rule can be re-added with documented evidence.
technicalpickles
added a commit
that referenced
this pull request
Apr 18, 2026
Replace the 11-key env block in claude/roles/personal.jsonc with a single GIT_CONFIG_GLOBAL pointing at ~/.gitconfig.d/claude-agent-personal. That file [include]s ~/.gitconfig and overrides user.email, core.sshCommand, and gpg.ssh.program=ssh-keygen (defeats 1Password's op-ssh-sign default). claudeconfig.sh now expands leading ~/ in .env string values before writing settings.json (GIT_CONFIG_GLOBAL does not expand ~). check-agent-ssh-key's check #6 reworked to validate the include file instead of the old GIT_CONFIG_KEY/VALUE pairs. Refs: dotfiles-0mlm Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Bash Commands and git sections duplicated or contradicted Claude Code's built-in system prompt (which already requires heredocs for commit messages and warns against
git add ./git add -A).The
&&misfire rule is removed pending validation via the test harness (bean dotfiles-dcjj). If the permission-prompt misfire still reproduces under current Claude Code + sandbox, a targeted rule can be re-added with documented evidence.