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.
npx agentmods add skills/phuongduyphan/cc-tmux-agents/opencodenpx skills add phuongduyphan/cc-tmux-agents --skill opencodegit clone --depth 1 https://github.com/phuongduyphan/cc-tmux-agentsWrote 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/phuongduyphan/cc-tmux-agents/opencode)<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>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 | $0.00039 | $0.01569 |
| Opus 5 | $0.00019 | $0.00785 |
| Sonnet 5 | $0.00008 | $0.00314 |
| Haiku 4.5 | $0.00004 | $0.00157 |
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.
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 (defaultcodex-opencode), launchopencode, 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 activecodex-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 Escape → capture. |
| "tell opencode: X" / "send opencode: X" | send X. |
| "kill opencode" / "stop opencode" | stop. |
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.
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.
- 5d ago First seen · 85 lines · 39 tokens per session scan A bfad3b532635
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.
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).…
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.
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…
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.
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…
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.