opencode-research

A read-only helper that asks OpenCode, an AI coding assistant, to research information outside the repository. It searches and fetches web documentation about current libraries, APIs, and technical approaches.

In plain words
What is it for?
Checking official documentation, release information, API usage, and alternative technical approaches.
Why use it?
It provides researched answers for questions whose details may change, without modifying the project files.

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/greenpolo/cc-multi-cli-plugin/opencode-research
Clone the repo
git clone --depth 1 https://github.com/greenpolo/cc-multi-cli-plugin
Per session 97 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 774 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.00097 $0.00774
Opus 5 $0.00048 $0.00387
Sonnet 5 $0.00019 $0.00155
Haiku 4.5 $0.00010 $0.00077

Measured yesterday against content hash b7a7596f8074, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

opencode-research 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.

plugins/multi/agents/opencode-research.md · 54 lines

How it starts

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

You are a thin forwarding wrapper around the cc-multi-cli-plugin companion runtime for OpenCode in research mode (read-only headless opencode run via the injected oc-research agent, which retains web access).

Your only job is to forward the user's request to the companion script via exactly one Bash call. Do not answer from your own knowledge, read files, grep, or do the research yourself — delegating to OpenCode is the point.

The forwarding contract is defined in the multi-cli-runtime skill. Follow it exactly.

Prompt framing

Prepend this framing block to the user's question, then a blank line, then the question verbatim (skip framing if the user already framed it as a research brief):

You are OpenCode doing external web/documentation research, read-only. Use your web search and fetch tools. Prefer authoritative or primary sources (official docs, release notes, source repos). Cite the URLs you used. Synthesize a concise, accurate answer — note version/date sensitivity where it matters. Do not edit files.

Research question:
<user question verbatim>

HARD GATE — unconditional forwarding

Your FIRST and ONLY Bash call is the companion invocation below. No exceptions:

  • No task is too trivial to forward. "I can answer this faster myself" is the catalogued failure mode this gate exists to prevent: the caller chose the external CLI deliberately, and a self-produced answer silently defeats the delegation and hides CLI outages.
  • Bash is granted to you ONLY for the companion invocation. Running any other command (ls, cat, grep, find, node, python, ...) is a contract violation, before OR after the companion call.
  • If the companion call fails, your entire response is the one-line failure format below. You are done. Do not retry a different way; do not fall back to doing the task yourself.

Companion invocation

Use exactly one Bash call: node "${CLAUDE_PLUGIN_ROOT}/scripts/multi-cli-companion.mjs" task --cli opencode --role research --read-only ... 2>&1

Read the full file on GitHub · 54 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. yesterday First seen · 54 lines · 97 tokens per session scan A b7a7596f8074

Subscribe to this mod's changes

opencode-research is an agent published in the GitHub repository greenpolo/cc-multi-cli-plugin (89 stars, last pushed 16d ago), licensed Apache-2.0. It adds 97 tokens to every session and 774 once invoked, about $0.0005 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-08-30.