opencode

opencode is a skill for Claude Code, Codex from phuongduyphan/cc-tmux-agents. It costs 39 tokens per session (1,569 once invoked), scanned A, original, MIT.

A bridge that sends coding tasks to an Opencode command-line session running in a tmux terminal session.

In plain words
What is it for?
Use it to start an Opencode session, send additional guidance, capture its latest output, wait for it to finish, or interrupt it.
Why use it?
It lets another coding agent work on a task while you keep control of progress checks, follow-up instructions, and stopping the session.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/phuongduyphan/cc-tmux-agents/opencode
Any agent
npx skills add phuongduyphan/cc-tmux-agents --skill opencode
Clone the repo
git clone --depth 1 https://github.com/phuongduyphan/cc-tmux-agents

Made for: Claude Code, Codex.

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

agentmods badge for opencode

README.md
[![agentmods](https://agentmods.dev/badge/skills/phuongduyphan/cc-tmux-agents/opencode.svg)](https://agentmods.dev/skills/phuongduyphan/cc-tmux-agents/opencode)
Your own site
<a href="https://agentmods.dev/skills/phuongduyphan/cc-tmux-agents/opencode"><img src="https://agentmods.dev/badge/skills/phuongduyphan/cc-tmux-agents/opencode.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,569 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00039 $0.01569
Opus 5 $0.00019 $0.00785
Sonnet 5 $0.00008 $0.00314
Haiku 4.5 $0.00004 $0.00157

Measured 5d ago against content hash bfad3b532635, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

opencode 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 5d 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.

agents-skills/opencode/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

$opencode — delegate to Opencode CLI

Spawns Opencode's TUI in a detached tmux session so Codex can offload work to it. The user stays in the loop: they ask Codex when to check progress, what guidance to send, and when to stop.

Primitive

All operations go through a single dispatcher:

~/.agents/skills/opencode/bin/opencode-agent [--session <name>] <verb> [args]

Verbs:

  • start [task...] — create session (default codex-opencode), launch opencode, type the task and press Enter. Returns immediately (non-blocking).
  • send <message> — type message + Enter. For follow-up guidance. Does not interrupt current generation; Opencode queues the input.
  • keys <name> — send a raw tmux key (Escape, C-c, Enter, etc.). Used for interrupts.
  • capture [lines] — print last N ANSI-stripped rendered lines (default 500). Read-only, non-destructive.
  • wait [stable] [timeout]block until the agent goes idle, then exit. Run it in the foreground to block until the sub-agent finishes (the mode for Codex and other CLI orchestrators; see "Wait for completion" below). stable = secs the working indicator must stay gone before declaring idle (default 6); timeout = overall cap in secs (default 1800).
  • stop — kill-session. Destroys the tmux session.
  • list — list active codex-opencode* sessions.

How to respond to the user

User says Do
$opencode <task> / "delegate to opencode" start <task>, then run wait in the foreground (blocks this turn until opencode is idle); on return, capture + report.
$opencode <task> + "tell me when it's done" / "notify me" Same as $opencode <task>; foreground wait is already the default.
"check opencode" / "progress" / "what's opencode doing" / "ask opencode for progress" capture. Show the relevant tail, add a one-line diagnosis (running / idle / error / prompt). Do not send ESC.
"interrupt opencode" / "esc opencode" keys Escapecapture.
"tell opencode: X" / "send opencode: X" send X.
"kill opencode" / "stop opencode" stop.

Read the full file on GitHub · 85 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 5d ago First seen · 85 lines · 39 tokens per session scan A bfad3b532635

Subscribe to this mod's changes

opencode is a skill published in the GitHub repository phuongduyphan/cc-tmux-agents (8 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 1,569 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI).…

yahor-punko/mavericks-os · 77 tokens

validate

Run the MavP validator to check artifact sync between BACKLOG.md and TASKSTATUS.md. Use after any backlog changes or to confirm healthy state before starting new work.

yahor-punko/mavericks-os · 36 tokens

session-start

Load current Mavericks operating state. Use at the start of any session or after context is lost. Injects live initiative, stage, active slices, and next action. If ONBOARDING.md is present at the repo root (freshly bootstrapped project), its contents are output first and the file is deleted. If HANDOFF.md is present…

yahor-punko/mavericks-os · 88 tokens

repo-hygiene

Use when the scheduled repo-hygiene workflow runs from GitHub Actions (or an operator dry-run) to scan the repository for small, certain docs/test/code hygiene issues and fix them as one batched branch.

QwenLM/qwen-code · 48 tokens

find-simplifications

Use for a periodic repo-wide sweep of qwen-code for accumulated excess surface — dead components and files, orphaned locale keys, exports nothing consumes, added-then-removed scaffolding — filing candidates on a tracking issue and landing only what a maintainer has said yes to. Repo-wide and evidence-first; every…

QwenLM/qwen-code · 103 tokens

autoprompt

Explicit-only useful-first orchestration. Invoke /autoprompt to turn a mission into one executable roadmap, build dependency-safe lanes, and verify the result with independent reviewers. Never infer invocation from ordinary requests. Never resume from leftover artifacts without an explicit resume instruction.

Spielewoy/autoprompt-skill · 56 tokens