Opencode Double Ctrl C — Development skill for Claude Code
OpenCode TUI plugin: press ctrl+c twice to exit, replicating Claude Code and Codex CLI.
How to install Opencode Double Ctrl C
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open tannerbruhn/opencode-double-ctrl-c and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Opencode Double Ctrl C does
OpenCode TUI plugin: press ctrl+c twice to exit, replicating Claude Code and Codex CLI. One press clears the prompt instead of quitting.
Alternatives in Development
- Claude SEO — Multi-Platform Agent Instructions — For Cursor, Cursor Cloud Agents, Google Antigravity, and Gemini CLI 5k ★
- Agent Of Empires — Manage multiple Claude Code, OpenCode agents from either TUI or Web for easy access on mobile 3.1k ★
- Coding Agent Session Search — Unified TUI and CLI to index and search your local coding agent session history across 11+ providers (Codex, C 708 ★
README
opencode-double-ctrl-c
**Press ctrl+c twice to exit OpenCode, the way Claude Code and Codex CLI do.** Out of the box a single ctrl+c on an empty prompt quits the OpenCode TUI immediately, which is easy to hit by reflex in a long session. This plugin replicates the ctrl+c behaviour of Claude Code and Codex CLI:
- text in the prompt → ctrl+c clears it
- empty prompt → ctrl+c shows "ctrl+c again to exit"
- second ctrl+c within 1.5 s → exits
Nothing else changes. Escape still interrupts a running turn, ctrl+d and `/exit` still quit.
Double-press exit is a long-standing feature request upstream ([#9041](https://github.com/anomalyco/opencode/issues/9041), [#26371](https://github.com/anomalyco/opencode/issues/26371), [#10975](https://github.com/anomalyco/opencode/issues/10975)); this is a plugin you can use today.
Install
opencode plugin opencode-double-ctrl-c -g
That installs the package into your global OpenCode config and adds it to `tui.json`. Drop `-g` to install it for the current project only. Restart OpenCode afterwards; plugins load at startup.
Without npm
TUI plugins are not auto-discovered, so a file install needs both steps:
mkdir -p ~/.config/opencode/tui-plugins
curl -fsSL https://raw.githubusercontent.com/tannerbruhn/opencode-double-ctrl-c/main/src/tui.ts \
-o ~/.config/opencode/tui-plugins/double-ctrl-c.ts
Then add it to `~/.config/opencode/tui.json` (create the file if it does not exist):
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["./tui-plugins/double-ctrl-c.ts"]
}
Do not put the file in `~/.config/opencode/plugin/`. That directory is auto-discovered for *server* plugins and will try to load it the wrong way.
No keybind changes are required: the plugin registers ctrl+c at a priority above the built-in exit binding.
Options
"plugin": [["opencode-double-ctrl-c", { "window": 1500, "interrupt": false, "key": "ctrl+c" }]]
window– milliseconds allowed between the tw
Related Skills
Promptline
A prompt library on a global hotkey: copy an error, press Ctrl+Alt+V, pick a prompt, and it pastes into Claude
Agentry
Multi-Agent Prompt Manager TUI — Unified prompt management for Claude Code, Continue, OpenClaw, Codex, Gemini
Claude Code Patches
A simple patch that toggles claude-code thinking traces to be fully expanded by default without having to pres
Zsh Claude Code
Claude in your zsh prompt: ask, explain, and Ctrl+X / Alt+E widgets that turn natural language into shell comm
Claude Code.Fish
Claude in your fish prompt: ask, explain, and Ctrl+X / Alt+E key bindings that turn natural language into shel
Zehn
Fuzzy-find any prompt across claude, codex, pi & opencode histories, then resume that session. Fast Zig TUI.
Related Agents
Prober
Runs a build, test, lint, or any command and returns a pass/fail probe (exit code, warn/error counts) instead
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and
Developer Overview
code-container (container) creates isolated Docker environments for AI coding harnesses (Claude Code, OpenCode