Skip to content

[FEATURE]: OpenCode v2 PowerShell commandline completion #56019

Open

Description

@BananaAcid

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I have generated the PS autocomplete function for OpenCode v2 based on the CLI output.

Would be nice if something like that would be included in the install.

see: https://gist.github.com/BananaAcid/5162529fece9e1fdb623a98158b1893c

  • Generator code
  • Working solution

Activity

  1. opencode-agent commented on Oct 16, 2026

    @opencode-agent
    Contributor

    Thanks for the request and for sharing the generator and working script in your gist!

    In short, you're asking for PowerShell tab completion for the v2 CLI, included in the install. Right now opencode --completions <shell> only covers bash, zsh and fish (and sh). It comes from the Effect CLI library, which has no PowerShell generator yet, so this would need either a new powershell target or a script shipped separately. Maintainers will consider it.

    Until then, anyone on PowerShell can load your script from the gist in their $PROFILE.

    Related: #55525 is about the existing --completions output, where fish completions get truncated when piped.

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

Metadata

Metadata

Assignees

No one assigned

    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