You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: add rtk to bash arity dictionary #29311
`rtk` (github.com/rtk-ai/rtk) has an explicit OpenCode integration (`rtk init -g --opencode`) but is absent from the `ARITY` dictionary in `permission/arity.ts`. As a result, "Always allow" prompts for `rtk` commands produce `rtk *` instead of subcommand-scoped patterns like `rtk env *` or `rtk git clone *`, which is too broad to safely approve.
Add `rtk` and its subcommand prefix depths to the built-in dictionary, consistent with how other multi-level CLI tools (`aws`, `docker`, `kubectl`, etc.) are already represented.
Reacted by Renato Chaves, WillyProLDS, N. Prat and Johnny Santos
Using my plugin could be a quick workaround. It parses commands and automatically appends rtk, which does not require the model to be aware of rtk. In my opinion, this is also a more stable and context-saving approach by not actively prompting the model.
Edit: apologies, this would not solve the problem. The tool.execute.before hook used by the plugin happens before the permission check.
Activity
Arcadi4 commentedon May 26, 2026
Using my plugin could be a quick workaround. It parses commands and automatically appends
rtk, which does not require the model to be aware ofrtk. In my opinion, this is also a more stable and context-saving approach by not actively prompting the model.Edit: apologies, this would not solve the problem. The
tool.execute.beforehook used by the plugin happens before the permission check.bcdady commentedon May 26, 2026
Nice, thanks for the tip @Arcadi4. I'll check out your plugin.
github-actions commentedon Jul 26, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.