Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/HLH2023/terminal-use-mcpnpx agentmods add skills/hlh2023/terminal-use-mcp/tui-opencode-nativeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/hlh2023/terminal-use-mcp/tui-opencode-native)<a href="https://agentmods.dev/skills/hlh2023/terminal-use-mcp/tui-opencode-native"><img src="https://agentmods.dev/badge/skills/hlh2023/terminal-use-mcp/tui-opencode-native/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/hlh2023/terminal-use-mcp/tui-opencode-native"><img src="https://agentmods.dev/badge/skills/hlh2023/terminal-use-mcp/tui-opencode-native.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.01569 |
| Opus 5.5 | $0.00012 | $0.00628 |
| Sonnet 5.5 | $0.00006 | $0.00314 |
| Haiku 4.5 | $0.00003 | $0.00157 |
Grade A, and why
tui-opencode-native scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.
tui-opencode-native: Control OpenCode TUI
Reference: OpenCode v1.17.7 — Keybindings verified against this version. This skill is community-maintained; it is NOT updated in lockstep with OpenCode releases. If OpenCode updates break keybindings, update this skill yourself or submit a PR to GitHub.
This skill is optional. Only install if you need to control this agent's TUI via terminal-use-mcp.
For OmO plugin version, use the
tui-opencode-omoskill instead.
Operational skill for controlling the vanilla OpenCode TUI through terminal-use-mcp. Includes key mappings, command dialog behavior, interaction flows, and operational notes.
When To Use
- You need to start and interactively control an OpenCode TUI through terminal-use-mcp.
- You need to run commands or switch model/session/agent inside OpenCode.
- You need to read OpenCode conversation content or search historical messages.
- You need to switch permission modes or perform specific operations inside OpenCode.
Core Operation Flow
Start And Readiness Check
1. terminal.start(command="opencode", cwd="~/project")
2. terminal.wait_stable(idleMs=5000, timeoutMs=15000)
3. terminal.find("Ask|Sisyphus|Welcome") # Confirm the UI has finished rendering
Send A Message
terminal.type("your question")
terminal.press("enter")
terminal.wait_stable(idleMs=15000, timeoutMs=120000)
Exit
terminal.press("ctrl+c") # Exit
Global Keybindings (Source-Verified, Not README)
Warning: README documentation differs from source code. README says Ctrl+A switches sessions, Ctrl+X cancels, and i focuses the editor. The source code actually uses Ctrl+S for session switching, Esc for cancellation, and i only for manual path input in the file picker. The table below follows the source code.
| Key | Function | Notes |
|---|---|---|
ctrl+c |
Exit | Press twice to force exit |
ctrl+l |
Log page | Open log viewer |
ctrl+s |
Session switcher | Warning: conflicts with editor send key; global layer intercepts first |
ctrl+k |
Command dialog | Open command picker |
ctrl+o |
Model picker | Switch model/provider |
ctrl+f |
File picker | Select file |
ctrl+t |
Theme switcher | Switch theme |
ctrl+? / ctrl+h / ctrl+_ |
Help panel | Show key overview |
escape |
Close current overlay | Return to previous layer |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 187 lines · 29 tokens per session scan A dc5e1f00a823
tui-opencode-native is a skill published in the GitHub repository HLH2023/terminal-use-mcp (0 stars, last pushed 5mo ago), licensed MIT. It adds 29 tokens to every session and 1,569 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
tui-opencode-native compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tui-opencode-nativeHLH2023/terminal-use-mcp | Skill | 0 | 5mo ago | MIT | A | 29 | Claude Code, Codex |
| computer-use-linuxagent-sh/computer-use-linux | Skill | 966 | 3d ago | MIT | A | 39 | Claude Code |
| macos-harnessbrowser-use/macos-harness | Skill | 1.0k | 1mo ago | MIT | A | 40 | Codex |
| host-computer-useagent0ai/agent-zero | Skill | 20k | yesterday | none | A | 78 | Claude Code, Codex |
| agent-orchestrationmrpulor-gh/nuphus | Skill | 104 | 9d ago | Apache-2.0 | A | 0 | Claude Code, Codex |
| data-analysisUpsonic/Upsonic | Skill | 8.0k | 5mo ago | MIT | A | 138 | Claude Code, Codex |
| summarizationUpsonic/Upsonic | Skill | 8.0k | 5mo ago | MIT | A | 144 | Claude Code, Codex |