Skip to content

[FEATURE]: add rtk to bash arity dictionary #29311

Description

@bcdady

`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.

Activity

  1. Arcadi4 commented on May 26, 2026

    @Arcadi4
    Contributor

    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.

  2. bcdady commented on May 26, 2026

    @bcdady
    Author

    Nice, thanks for the tip @Arcadi4. I'll check out your plugin.

  3. github-actions commented on Jul 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions