Skip to content

refactor(claude): remove git/bash rules covered by system prompt#6

Merged
technicalpickles merged 1 commit intomainfrom
relax-git-rules-for-sandbox
Apr 17, 2026
Merged

refactor(claude): remove git/bash rules covered by system prompt#6
technicalpickles merged 1 commit intomainfrom
relax-git-rules-for-sandbox

Conversation

@technicalpickles
Copy link
Copy Markdown
Owner

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.

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 technicalpickles merged commit 40fc8e7 into main Apr 17, 2026
1 check failed
@technicalpickles technicalpickles deleted the relax-git-rules-for-sandbox branch April 17, 2026 13:32
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>
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