rtk-ai/rtk

Add whitelist mode for command filtering

Open

#2 231 ouverte le 3 juin 2026

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Rust (2 914 forks)batch import
area:configenhancementhelp wantedpriority:medium

Métriques du dépôt

Stars
 (48 085 stars)
Métriques de merge PR
 (Merge moyen 8j 17h) (49 PRs mergées en 30 j)

Description

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!

Guide contributeur