Skip to content

enhancement: support fine-grained Bash tool patterns in allowed-tools configuration #430

@breaking-brake

Description

@breaking-brake

Summary

Add support for fine-grained Bash tool patterns in the allowed-tools configuration UI, similar to the pattern syntax supported by Claude Code.

Background

Currently, the allowed-tools configuration only supports simple tool names like Task, AskUserQuestion, Bash, etc.

However, Claude Code supports fine-grained patterns for the Bash tool:

allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)

This allows specifying which specific Bash commands are allowed without permission prompts.

Reference

From the official documentation (https://code.claude.com/docs/en/slash-commands):

---
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
description: Create a git commit
---

Proposed Enhancement

  1. Update the Allowed Tools UI to support pattern-based Bash tool configuration
  2. Possible approaches:
    • Add a text input for custom patterns
    • Add common presets (e.g., "Git operations", "npm commands")
    • Allow users to define their own patterns

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions