Skip to content

Conversation

@adamfri
Copy link
Collaborator

@adamfri adamfri commented Feb 12, 2026

Summary

  • Fixes the readme-check workflow where Claude's tool calls were silently denied by the claude_args sandbox, causing it to post a misleading "README updated" comment while nothing actually changed (see PR test: add example-skill to verify readme-check workflow #72)
  • Root causes: Edit tool not allowed, chained git commands rejected by individual Bash patterns, bare git push not matching Bash(git push *)

Changes

  • claude_args: Added Edit to allowed tools; added Bash(git push) pattern for bare push
  • Prompt: Instructs agent to run git commands as separate Bash calls (not chained with &&/;); only post PR comment after confirming push succeeded

Test plan

Made with Cursor

The Claude agent's tool calls were silently denied during PR #72:
- Agent used Edit (not in allowed-tools) instead of Write
- Agent chained git commands with && which didn't match individual patterns
- Bare git push (no args) didn't match Bash(git push *)

Fixes:
- Add Edit to allowed-tools alongside Write
- Add Bash(git push) for bare git push without args
- Instruct agent to run git commands as separate Bash calls
- Only post PR comment after confirming git push succeeded

Co-authored-by: Cursor <cursoragent@cursor.com>
@adamfri adamfri merged commit 228867c into main Feb 12, 2026
1 check passed
@adamfri adamfri deleted the fix/readme-check-permissions branch February 12, 2026 07:40
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