patch-opencode.tmp

patch-opencode.tmp is a skill for Claude Code, Codex from EZotoff/ez-omo-config. It costs 53 tokens per session (2,654 once invoked), scanned A, original, MIT.

A procedure for applying a small bug fix to the currently installed OpenCode program. It checks out the exact release version, builds the change, backs up the existing program, and verifies the replacement.

In plain words
What is it for?
Use it to fix bugs in OpenCode's Go or TypeScript code while preserving the live version and testing the resulting binary.
Why use it?
It avoids accidentally patching from an unrelated development branch or installing a build with a different version than the one in use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions OpenCode.

Good fit Use it to fix bugs in OpenCode's Go or TypeScript code while preserving the live version and testing the resulting binary.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ezotoff/ez-omo-config/patch-opencode.tmp
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.

Any agent
npx skills add EZotoff/ez-omo-config --skill patch-opencode.tmp
Clone the repo
git clone --depth 1 https://github.com/EZotoff/ez-omo-config

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 patch-opencode.tmp

README.md
[![agentmods](https://agentmods.dev/badge/skills/ezotoff/ez-omo-config/patch-opencode.tmp/github.svg)](https://agentmods.dev/skills/ezotoff/ez-omo-config/patch-opencode.tmp)
Your own site
<a href="https://agentmods.dev/skills/ezotoff/ez-omo-config/patch-opencode.tmp"><img src="https://agentmods.dev/badge/skills/ezotoff/ez-omo-config/patch-opencode.tmp/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.

agentmods 80×15 button for patch-opencode.tmp

Your own site · 80×15
<a href="https://agentmods.dev/skills/ezotoff/ez-omo-config/patch-opencode.tmp"><img src="https://agentmods.dev/badge/skills/ezotoff/ez-omo-config/patch-opencode.tmp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,654 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00053 $0.02654
Opus 5.5 $0.00021 $0.01062
Sonnet 5.5 $0.00011 $0.00531
Haiku 4.5 $0.00005 $0.00265

Measured 11d ago against content hash 234d23380223, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

patch-opencode.tmp scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

7. **NEVER** redirect command output into a live runtime artifact (`~/oh-my-openagent-v4.19.2/dist/*`, `~/.opencode/bin/*`, `~/.opencode/plugin/*`, `~/.config/opencode/*` live configs). Diagnostic reads (`git show`, `cat
skills/patch-opencode/patch-opencode.tmp/SKILL.md · 243 lines

How it starts

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

Patch OpenCode Binary

This skill applies a minimal source fix to the live OpenCode binary. It builds from the exact release tag that matches the running version — never from dev or any other branch.

Pre-flight Checks

Before starting, gather the facts:

# 1. Identify the live version
LIVE_VERSION=$(~/.opencode/bin/opencode --version 2>&1)
echo "Live version: $LIVE_VERSION"

# 2. Identify the source repo
SOURCE_DIR="${OPENCODE_SOURCE:-$HOME/src/opencode}"
cd "$SOURCE_DIR"

# 3. Verify the release tag exists
git tag --list "v${LIVE_VERSION}"
# Expected: v1.17.9 (or whatever the live version is)
# If empty, the version tag doesn't exist — do NOT proceed with dev branch

# 4. Check for running servers
ps -ef | grep 'opencode serve' | grep -v grep

Critical Rules

  1. NEVER build from origin/dev or any branch other than the release tag
  2. NEVER replace the live binary with a build that reports a different version
  3. ALWAYS backup the live binary before replacing
  4. ALWAYS build with --single --skip-install --skip-embed-web-ui for speed
  5. ALWAYS verify the build version matches the live version before installing
  6. ALWAYS test the fix on the real surface after installing
  7. NEVER redirect command output into a live runtime artifact (~/oh-my-openagent-v4.19.2/dist/*, ~/.opencode/bin/*, ~/.opencode/plugin/*, ~/.config/opencode/* live configs). Diagnostic reads (git show, cat, curl) write to .sisyphus/drafts/ or a mktemp path ONLY. Live-file writes go through the documented patch flows (timestamped .pre-* backup + verify). 2026-09-08: git show <ref>:dist/index.js > dist/index.js captured its own fatal error into the live bundle and killed every fresh session for 4+ hours.

Live Patch Guard contract

The live-patch-guard plugin blocks direct binary swaps (cp/mv/install/dd targeting ~/.opencode/bin/opencode). The supported path is the transactional installer wrapper:

scripts/build-and-install-opencode.sh build
scripts/build-and-install-opencode.sh install <binary>

Read the full file on GitHub · 243 lines

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. 11d ago First seen · 243 lines · 53 tokens per session scan A 234d23380223

Subscribe to this mod's changes

patch-opencode.tmp is a skill published in the GitHub repository EZotoff/ez-omo-config (6 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 2,654 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-05.