opencode

opencode is a skill for Claude Code, Codex from darshitpp/x-agent. It costs 82 tokens per session (247 once invoked), scanned A, a copy of codex, MIT.

A bridge to the OpenCode command-line tool, which lets a coding agent hand off tasks or request a second opinion from another coding agent.

In plain words
What is it for?
Use it to delegate work, cross-check implementation plans, validate code or compare architecture ideas with OpenCode.
Why use it?
It helps when you want another review of code, a plan or an architecture decision, or want to offload a task.

Skill for Claude CodeCodex

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

Good fit Use it to delegate work, cross-check implementation plans, validate code or compare…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darshitpp/x-agent/opencode
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 darshitpp/x-agent --skill opencode
Clone the repo
git clone --depth 1 https://github.com/darshitpp/x-agent

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/darshitpp/x-agent/opencode.svg)](https://agentmods.dev/skills/darshitpp/x-agent/opencode)
Your own site
<a href="https://agentmods.dev/skills/darshitpp/x-agent/opencode"><img src="https://agentmods.dev/badge/skills/darshitpp/x-agent/opencode.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 247 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod 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.00082 $0.00247
Opus 5 $0.00041 $0.00123
Sonnet 5 $0.00016 $0.00049
Haiku 4.5 $0.00008 $0.00025

Measured 6d ago against content hash ff9d4736cd25, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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.

Origin

This is a copy

86% identical to codex — 18 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

opencode/SKILL.md · 28 lines

What it actually says

Cross-Agent Task Runner — OpenCode CLI

Procedures

Step 1: Self-Call Detection

  1. Check for OPENCODE environment variable, or opencode in process ancestry.
  2. If detected, stop and inform the user: "Cannot invoke OpenCode from within OpenCode. Use a different target CLI."

Step 2: Execute Shared Procedure

  1. Read references/shared-procedure.md for the core workflow (mode inference, context gathering, prompt construction, result presentation).
  2. Read references/cli-opencode.md for OpenCode-specific flags, model selection heuristics, and version compatibility matrix.
  3. Follow the shared procedure using the OpenCode-specific details.
Files

What ships with it

3 files 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. 6d ago First seen · 28 lines · 82 tokens per session scan A ff9d4736cd25

Subscribe to this mod's changes

opencode is a skill published in the GitHub repository darshitpp/x-agent (2 stars, last pushed 28d ago), licensed MIT. It adds 82 tokens to every session and 247 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to codex, differing in 18 lines, and is treated as a copy.

Related

Other skills, from other repositories

trace-and-isolate

Applies systematic tracing and isolation techniques to pinpoint exactly where a bug originates in code. Use when a bug is hard to locate, code is not working as expected, an error or crash appears with unclear cause, a regression was introduced between recent commits, or you need to narrow down which component…

rohitg00/skillkit · 120 tokens

verification-gates

Creates explicit validation checkpoints (verification gates) between project phases to catch errors early and ensure quality before proceeding. Use when the user asks about quality gates, milestone checks, phase transitions, approval steps, go/no-go decision points, or preventing cascading errors across a multi-step…

rohitg00/skillkit · 94 tokens

testing-anti-patterns

Reviews test code to identify and fix common testing anti-patterns including flaky tests, over-mocking, brittle assertions, test interdependency, and hidden test logic. Flags bad patterns, explains the specific defect, and provides corrected implementations. Use when reviewing test code, debugging intermittent or…

rohitg00/skillkit · 95 tokens

test-patterns

Applies proven testing patterns — Arrange-Act-Assert (AAA), Given-When-Then, Test Data Builders, Object Mother, parameterized tests, fixtures, spies, and test doubles — to help write maintainable, reliable, and readable test suites. Use when the user asks about writing unit tests, integration tests, or end-to-end…

rohitg00/skillkit · 138 tokens

handoff-protocols

Manages work transitions between team members or agents by creating structured handoff documents, summarizing project status, documenting key decisions, blockers, and open questions, and generating onboarding briefs. Use when someone needs to hand off, hand over, or transition a project; pass work to another person or…

rohitg00/skillkit · 116 tokens

parallel-investigation

Coordinates parallel investigation threads to simultaneously explore multiple hypotheses or root causes across different system areas. Use when debugging production incidents, slow API performance, multi-system integration failures, or complex bugs where the root cause is unclear and multiple plausible theories exist…

rohitg00/skillkit · 97 tokens