cli-opencode

cli-opencode is a skill for Claude Code from MichelKerkmeester/skilled-agent-harness_spec-driven-loops. It costs 30 tokens per session (10,629 once invoked), scanned C, original, MIT.

A command-line controller for OpenCode, an external coding agent that can run delegated tasks and parallel sessions.

In plain words
What is it for?
It is for cross-agent coding, parallel implementation, and tasks that use OpenCode's plugins, skills, or connected tools.
Why use it?
It lets the current agent hand off work while preserving a clear separation between the coordinating agent and the delegated session.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **The `--agent` flag (read this):** Do NOT pass `--agent` on a top-level `opencode run`. The default agent (used when `--agent` is omitted) is correct for almos.

Good fit It is for cross-agent coding, parallel implementation, and tasks that use OpenCode's plugins, skills, or connected tools.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/MichelKerkmeester/skilled-agent-harness_spec-driven-loops
agentmods
npx agentmods add skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-opencode

Made for: Claude Code.

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 cli-opencode

README.md
[![agentmods](https://agentmods.dev/badge/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-opencode/github.svg)](https://agentmods.dev/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-opencode)
Your own site
<a href="https://agentmods.dev/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-opencode"><img src="https://agentmods.dev/badge/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-opencode/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 cli-opencode

Your own site · 80×15
<a href="https://agentmods.dev/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-opencode"><img src="https://agentmods.dev/badge/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/cli-opencode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,629 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. 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.00030 $0.10629
Opus 5.5 $0.00012 $0.04252
Sonnet 5.5 $0.00006 $0.02126
Haiku 4.5 $0.00003 $0.01063

Measured today against content hash ecc9e83e1ad8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

cli-opencode scanned grade C with 2 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 today.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

command -v opencode2 || command -v opencode || echo "Not installed. Run: brew install opencode (macOS) or curl -fsSL https://opencode.ai/install | bash"

Makes network callslowCapability

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

command -v opencode2 || command -v opencode || echo "Not installed. Run: brew install opencode (macOS) or curl -fsSL https://opencode.ai/install | bash"
.hermes/skills/cli-opencode/SKILL.md · 344 lines

How it starts

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

Canonical source: .skilled/skills/cli-external-orchestration/cli-opencode/. This is a generated markdown-only copy so Hermes can load the skill without scanning the canonical directory. Read references/, assets/ and scripts/ from the canonical path above.

OpenCode CLI Orchestrator - Full-Runtime Cross-AI Dispatch

CRITICAL: SELF-INVOCATION PROHIBITED

This skill dispatches to the OpenCode CLI binary (opencode; an opencode2 that the v2 package installed is also accepted). If the agent reading this skill is itself running inside OpenCode (TUI / acp / serve / run modes, detection signals in §2), it MUST refuse to load and return the documented error message instead of dispatching. The only exception is an explicit "parallel detached" request that intentionally spawns a SEPARATE session with its own session id and state directory.

A running CLI skill never dispatches itself. The cli-X skills are for cross-AI delegation only, never self-invocation.

Orchestrate OpenCode 2's opencode run (OpenCode 1's opencode run as the fallback) from external AI assistants (Claude Code, OpenCode, raw shell) AND from inside an existing OpenCode session for parallel detached workers. Three documented use cases keep the cycle risk explicit and give every dispatch path a copy-paste invocation shape.

Core Principle: The calling AI stays the conductor. Delegate to OpenCode for what it does best: the full plugin, skill, and MCP runtime in a one-shot dispatch. Validate and integrate the output.


1. WHEN TO USE

Activation Triggers

Read the full file on GitHub · 344 lines

Files

What ships with it

60 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. today Changed ecc9e83e1ad8
  2. yesterday Changed · +2 lines 03f0d78ce055
  3. 3d ago Changed 7e0637e907f5
  4. 5d ago Changed · -3 lines 3a6f8b0920bd
  5. 8d ago Changed 9caa1892b2d7
  6. 12d ago Changed · -4 lines 6cba4ac56fe7
  7. 23d ago Changed · -21 lines eee6228618ef
  8. 25d ago Changed 3b8be4d1aad2
  9. 26d ago Changed 4b6e4a8247cb
  10. 1mo ago First seen · 370 lines · 30 tokens per session scan C 50cca1d80eee

Subscribe to this mod's changes

cli-opencode is a skill published in the GitHub repository MichelKerkmeester/skilled-agent-harness_spec-driven-loops (38 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 10,629 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens