An OpenCode plugin that shows an inline translation tooltip when you select text in OpenCode Desktop or the terminal UI.
pank-su/opencode-prompt-completion
An OpenCode V2 terminal and Desktop plugin that shows inline grey prompt continuations you can accept with Tab.
- Stars
- 6
- Forks
- 1
- Open issues
- 0
- Last commit
- 10 days ago
What is it?
This plugin adds inline prompt completion to the OpenCode V2 terminal UI and Desktop app. As you type, a grey continuation appears in the prompt field. Tab accepts the whole suggestion, Option+Right or Ctrl+Right accepts one word, and Esc hides it. Until accepted, the suggestion is not part of the prompt text, and messages are never sent automatically.
By default, automatic mode sends drafts to the selected model before Enter, which consumes provider quota or paid tokens. It can be turned off with the automatic option for manual-only requests. Terminal setup goes in the global cli.json and works with remote servers; Desktop uses opencode.json and requires OpenCode 2.2.0 with its experimental GUI plugin API. Timeouts, debounce, cooldown and the prediction model are configurable.
The plugin is installed with `opencode plugin add github:pank-su/opencode-prompt-completion`. It makes stateless text generation calls without creating sessions or calling tools, and keeps no log of drafts in its own code. It is an independent MIT-licensed project, not an official OpenCode component.
Key features
- 01Shows grey inline continuations directly in the OpenCode prompt field.
- 02Accepts the whole suggestion with Tab or one word at a time with Option+Right / Ctrl+Right.
- 03Supports terminal and Desktop, with separate configuration files.
- 04Lets you turn off automatic requests and trigger suggestions manually with <leader>j.
- 05Exposes timeout, debounce, cooldown and model selection options.
Use cases
- Speeding up writing long prompts to coding agents in the OpenCode terminal.
- Using a cheaper or faster model for short completions while the main session uses another model.
- Working over a remote OpenCode server with a local terminal plugin setup.
Quick start
- 1
Install the plugin from GitHub with OpenCode
opencode plugin add github:pank-su/opencode-prompt-completion - 2
Open a session, type at least three characters and wait for grey text to appear; use /reload if the TUI was already open
Things to know
- Automatic mode is on by default and sends drafts to the selected model before Enter, consuming quota or paid tokens.
- Requires OpenCode V2; OpenCode V1 is not supported.
- Desktop support is experimental and may need updates after Desktop changes.
- The project is new with only 1 star.
In collections
Topics
FAQ
- What is opencode-prompt-completion?
- An OpenCode V2 terminal and Desktop plugin that shows inline grey prompt continuations you can accept with Tab. This plugin adds inline prompt completion to the OpenCode V2 terminal UI and Desktop app. As you type, a grey continuation appears in the prompt field. Tab accepts the whole suggestion, Option+Right or Ctrl+Right accepts one word, and Esc hides it. Until accepted, the suggestion is not part of the prompt text, and messages are never sent automatically.
- Is opencode-prompt-completion free to use? What license does it have?
- opencode-prompt-completion is open source under the MIT license. Check the license terms before using it in commercial products.
- Is opencode-prompt-completion still maintained?
- Actively maintained. The last commit to opencode-prompt-completion was on Oct 28, 2026.
- What can I use opencode-prompt-completion for?
- Speeding up writing long prompts to coding agents in the OpenCode terminal. Using a cheaper or faster model for short completions while the main session uses another model. Working over a remote OpenCode server with a local terminal plugin setup.
- How do I install opencode-prompt-completion?
- Install the plugin from GitHub with OpenCode: opencode plugin add github:pank-su/opencode-prompt-completion Open a session, type at least three characters and wait for grey text to appear; use /reload if the TUI was already open
- Where can I get opencode-prompt-completion?
- The source code and installation instructions are on GitHub: https://github.com/pank-su/opencode-prompt-completion
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
An IDE-style file tree pane for Claude Code that highlights the files Claude reads, writes and commits, with git status.
An OpenCode Desktop plugin that adds scoped, highlighted search across a whole chat session, including tool calls, tool results and terminal commands.
An OpenCode plugin that turns a session's tool calls, shell commands and diffs into a reviewable Markdown handoff brief.
A library for building terminal user interfaces, written in Zig with TypeScript, React and Solid bindings.
An OpenCode V2 plugin that defers a prompt for a set delay, then submits it back into the same session.