opencode-delegation

opencode-delegation is a skill for Claude Code from athola/claude-night-market. It costs 38 tokens per session (1,047 once invoked), scanned A, original, MIT.

A delegation adapter for OpenCode, an open-source terminal coding agent that can use different configured providers, including local or self-hosted models.

In plain words
What is it for?
Use it when OpenCode is already configured and you want a provider-agnostic, local, or self-hosted model to handle the task.
Why use it?
It gives a shared delegation system a route to providers that do not have their own dedicated adapter. The model is chosen by OpenCode's local configuration.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python scripts/delegation_executor.py opencode "Find the bug" \.

Part of the conjure plugin — 11 skills shipped together

Good fit Use it when OpenCode is already configured and you want a provider-agnostic, local, or self-hosted model to handle the task.

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/athola/claude-night-market
agentmods
npx agentmods add skills/athola/claude-night-market/opencode-delegation

Made for: Claude Code.

Or install conjure, the plugin that ships this one along with the rest of its 11 skills.

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-delegation

README.md
[![agentmods](https://agentmods.dev/badge/skills/athola/claude-night-market/opencode-delegation/github.svg)](https://agentmods.dev/skills/athola/claude-night-market/opencode-delegation)
Your own site
<a href="https://agentmods.dev/skills/athola/claude-night-market/opencode-delegation"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/opencode-delegation/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 opencode-delegation

Your own site · 80×15
<a href="https://agentmods.dev/skills/athola/claude-night-market/opencode-delegation"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/opencode-delegation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,047 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium System Prompt Leakage · line 97
    Skill contains patterns that could indirectly extract system prompts through rephrasing, translation, summarization, or side-channel techniques.
    Fix: Guard against indirect extraction by refusing to summarize, translate, or rephrase system instructions. Add explicit anti-extraction clauses.
How audits are shown
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.00038 $0.01047
Opus 5 $0.00019 $0.00524
Sonnet 5 $0.00008 $0.00209
Haiku 4.5 $0.00004 $0.00105

Measured 7d ago against content hash cbaf7d484fd9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

opencode-delegation 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 7d 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.

plugins/conjure/skills/opencode-delegation/SKILL.md · 147 lines

How it starts

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

Table of Contents

OpenCode Delegation

Overview

OpenCode is an open-source, provider-agnostic terminal agent published as npm opencode-ai. Its scripting entry point is opencode run, which takes the prompt as positional arguments.

Being provider-agnostic makes it the most flexible entry in the registry: the model behind it is whatever the local OpenCode config selects, including a local one.

When To Use

  • delegation-core selected opencode for the task
  • A provider the registry does not model directly is wanted, and OpenCode already has it configured
  • A local or self-hosted model should serve the request

When NOT To Use

  • No provider credentials are configured. opencode auth list shows what is present
  • A specific model must be pinned from this side. Model choice belongs to OpenCode's own config, not to the delegation call

Prerequisites

Installation

npm install -g opencode-ai@latest

Homebrew, pnpm, bun, scoop and chocolatey are also documented upstream.

Authentication

Credentials resolve per provider through environment variables such as ANTHROPIC_API_KEY or OPENAI_API_KEY, through a .env file, or through opencode auth login. Stored credentials are written to ~/.local/share/opencode/auth.json, and the config file supports {env:VARIABLE_NAME} interpolation.

Verification runs opencode auth list, because there is no single variable to check when the provider set is open-ended.

Quick Start

Using the shared delegation executor

uv run python scripts/delegation_executor.py opencode "Find the bug" \
  --files src/

Through the Makefile

make -C plugins/conjure delegate-opencode PROMPT='Find the bug'

Read the full file on GitHub · 147 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. 7d ago First seen · 147 lines · 38 tokens per session scan A cbaf7d484fd9

Subscribe to this mod's changes

opencode-delegation is a skill published in the GitHub repository athola/claude-night-market (337 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 1,047 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-09-03.