rtk-ai/rtk

Add whitelist mode for command filtering

Open

#2231 aperta il 3 giu 2026

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Rust (2914 fork)batch import
area:configenhancementhelp wantedpriority:medium

Metriche repository

Star
 (48.085 star)
Metriche merge PR
 (Merge medio 8g 17h) (49 PR mergiate in 30 g)

Descrizione

Feature Request: Whitelist Mode for Command Filtering

Currently, RTK only supports blacklist-style filtering via exclude_commands in the config. I would like to request a whitelist mode:

  • Only commands explicitly listed in include_commands are filtered and rewritten by RTK.
  • All other commands should be passed through unchanged.
  • Example syntax:
[hooks]
include_commands = ["git status", "cargo build"]

Use Case: This type of control lets users opt-in with a safe set of verified commands, reducing risk from unknown scenarios and making adoption in stable workflows much safer. This would be mutually exclusive with exclude_commands.

Thank you!

Guida contributor