opencode

A setup guide for connecting Watch Skill, a tool for watching and indexing videos, to OpenCode, a coding assistant that runs from the terminal.

In plain words
What is it for?
Use it to add video inspection to OpenCode and ask about events at specific times in a recording.
Why use it?
It explains the local configuration required before OpenCode can use Watch Skill to inspect videos.

Agent

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 agents/oxbshw/watch-skill/opencode
Clone the repo
git clone --depth 1 https://github.com/oxbshw/watch-skill
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 472 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.00000 $0.00472
Opus 5 $0.00000 $0.00236
Sonnet 5 $0.00000 $0.00094
Haiku 4.5 $0.00000 $0.00047

Measured yesterday against content hash cac7be9bf873, 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 yesterday.

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.

docs/agents/opencode.md · 64 lines

What it actually says

Watch Skill in OpenCode

Status: doc-verified ☑ — config matches the official opencode.ai MCP docs; not executed here.

Install

uvx --from "watch-skill[standard]" watch-skill doctor

uvx fetches the package on first use and needs no checkout. Prefer a permanent install? pipx install "watch-skill[standard]", then use "command": "watch-skill", "args": ["serve"] in the config below.

git clone https://github.com/oxbshw/watch-skill && cd watch-skill
uv sync --extra all
uv run watch-skill doctor

Then run watch-skill setup, which writes the config pointing at your checkout rather than the published package.

Configure

Project: opencode.json in the repo root. Global: ~/.config/opencode/opencode.json. Local servers use "type": "local" with the command as an array:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "watch-skill": {
      "type": "local",
      "command": ["uvx", "--from", "watch-skill[standard]", "watch-skill", "serve"],
      "enabled": true
    }
  }
}

Smoke test (3 steps)

  1. opencode, then: "Watch https://www.youtube.com/watch?v=aqz-KE-bpKQ and tell me what happens at 0:10."
  2. Approve the watch_video call.
  3. Follow up: "what color is the bird?" — should call ask_video, no re-processing.

Notes

  • "enabled": false parks the server without deleting the entry — handy when you want video tools only in certain projects (put the entry in the project opencode.json instead of the global one).
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. yesterday First seen · 64 lines · 0 tokens per session scan A cac7be9bf873

Subscribe to this mod's changes

opencode is an agent published in the GitHub repository oxbshw/watch-skill (320 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 472 tokens. 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-30.