Skip to content

Conversation

@avivsinai
Copy link
Collaborator

Description

Expands allowed-tools permissions for Claude Code commands to reduce unnecessary approval prompts during common operations.

Problem

Users were experiencing repeated approval requests for basic operations like:

  • Setting environment variables (TIMESTAMP=$(date +%Y%m%d-%H%M%S))
  • Creating temp files with echo
  • Using ls to verify outputs
  • Other common shell operations

Solution

Applied the same fix pattern from #38 to other CC commands by adding Bash, Bash(*) permissions and temp directory access where needed.

Changes

Testing

  • All 170 tests passing
  • Lint clean
  • Manually tested with promptcode cc installation
  • Verified templates are correctly embedded in binary

Impact

Users will get the improved permissions when they:

  1. Update promptcode: promptcode update
  2. Re-install CC commands: promptcode cc

Fixes #42
Related to #38

Following the pattern from #38, expand allowed-tools permissions for other CC commands
to reduce unnecessary approval prompts during common operations.

Changes:
- promptcode-preset-to-prompt: Added Read(/tmp/*), Write(/tmp/*), Bash, Bash(*)
- promptcode-preset-info: Added Bash, Bash(*)
- promptcode-preset-create: Added Read(/tmp/*), Write(/tmp/*), Bash, Bash(*)

This eliminates approval prompts for:
- Setting environment variables
- Creating timestamps with date
- Writing temp files with echo
- Using ls to verify outputs
- Other common shell operations

Fixes #42

🤖 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@avivsinai avivsinai merged commit 33b0b75 into main Sep 9, 2025
6 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.

Expand tool permissions for all Claude Code commands to reduce approval prompts

2 participants