opencode-fusion: Command for Claude Code

.opencode/skills/fusion-setup/commands/fusion-status.md

fusion-status is a command for Claude Code, OpenCode from mihneaptu/opencode-fusion. It costs 12 tokens per session (810 once invoked), scanned A, original, MIT.

A command that checks whether the Fusion setup is installed, loaded, and enforcing its rules. Fusion is an opencode agent-team configuration.

In plain words
What is it for?
It is for checking the live session and configuration files when diagnosing Fusion setup problems.
Why use it?
It shows which parts of the setup pass or fail, with evidence, without changing anything.

Command for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code command (commands/*.md). Also seen: agent in frontmatter; mentions Claude Code; mentions OpenCode.

This is mihneaptu/opencode-fusion's own configuration. It tells Claude Code and OpenCode how to work on opencode-fusion itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything opencode-fusion configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mihneaptu/opencode-fusion. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mihneaptu/opencode-fusion/main/.opencode/skills/fusion-setup/commands/fusion-status.md
Clone the repo
git clone --depth 1 https://github.com/mihneaptu/opencode-fusion

Made for: Claude Code, OpenCode.

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 fusion-status

README.md
[![agentmods](https://agentmods.dev/badge/commands/mihneaptu/opencode-fusion/fusion-status/github.svg)](https://agentmods.dev/commands/mihneaptu/opencode-fusion/fusion-status)
Your own site
<a href="https://agentmods.dev/commands/mihneaptu/opencode-fusion/fusion-status"><img src="https://agentmods.dev/badge/commands/mihneaptu/opencode-fusion/fusion-status/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 fusion-status

Your own site · 80×15
<a href="https://agentmods.dev/commands/mihneaptu/opencode-fusion/fusion-status"><img src="https://agentmods.dev/badge/commands/mihneaptu/opencode-fusion/fusion-status.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 810 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 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.00012 $0.00810
Opus 5.5 $0.00005 $0.00324
Sonnet 5.5 $0.00002 $0.00162
Haiku 4.5 $0.00001 $0.00081

Measured 2mo ago against content hash 0d329e79e23c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fusion-status 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 2mo 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.

.opencode/skills/fusion-setup/commands/fusion-status.md · 21 lines

What it actually says

Run a Fusion health check and report the results. Check four layers, report each enabled layer as PASS or FAIL with one line of evidence, and do NOT fix anything - this command only reports.

Throughout, CONFIG DIR means opencode's global config directory: $XDG_CONFIG_HOME/opencode/ when XDG_CONFIG_HOME is set and non-empty, otherwise ~/.config/opencode/ (Windows: %USERPROFILE%\.config\opencode\). The paths below are written with the common default; resolve them against the real value first, or a correct install under a custom XDG_CONFIG_HOME will look missing and be reported as a false FAIL.

  1. Live enforcement (this running session). Inspect your own available tools - do not call anything, just check what exists in your toolset. Fusion denies edit, grep, glob, and list for this agent, and opencode removes denied tools from the tool schema entirely. If any of those four tools is available to you right now, the Fusion config is NOT loaded in this session - report FAIL and that a full restart of opencode is the fix. If all four are absent and task is available, report PASS.

  2. Config on disk. Read ~/.config/opencode/opencode.json (Windows: %USERPROFILE%\.config\opencode\opencode.json). FAIL if the file is missing or not valid JSON. Otherwise list each agent.<role>.model assignment found, and FAIL if build or sidekick has no model (explore should normally have one too; research/design/reviewer/vision are optional). Then read ~/.config/opencode/.fusion-install.json and report bundleVersion and installedAt as the bundle applied most recently - a reapply that selected only some roles can leave other managed files from an earlier bundle, so report it as the last apply rather than as a guarantee about every file. Report unknown (pre-1.1.0) when the manifest exists but has no bundleVersion, and not installed by the installer when the manifest is absent - a hand-copied setup has no manifest, so that alone is not a FAIL.

  3. Agent files. For every role that has a model in the config - plus plan, minus explore (explore is built-in and needs no file) - read ~/.config/opencode/agent/<role>.md and confirm the file exists. In build.md, confirm the frontmatter contains edit: deny. A missing file or a missing denial is FAIL, with the exact path.

  4. Optional Claude Code bridge. Treat this layer as disabled and report SKIP only when both ~/.config/opencode/plugins/fusion-claude.js and the top-level permission.fusion_claude_* rule are absent. Otherwise confirm the plugin file exists, the top-level rule is deny, both build.md and plan.md allow fusion_claude_status and fusion_claude_review, and both tools are present in this build agent's live toolset. If those checks pass, call fusion_claude_status and report its sanitized result. Never run claude auth status directly because its output may contain account identity data.

Diagnosis rules: layer 1 FAIL with layers 2-3 PASS means the config changed after startup - a restart fixes it. A role with a model in config but no agent file (except explore) runs without its Fusion permissions and prompt - point to the fusion-setup skill to install it.

End with a one-line verdict: Fusion: healthy or Fusion: <n> issue(s) followed by the specific fix for each issue.

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. 2mo ago First seen · 21 lines · 12 tokens per session scan A 0d329e79e23c

Subscribe to this mod's changes

fusion-status is a command published in the GitHub repository mihneaptu/opencode-fusion (217 stars, last pushed 2mo ago), licensed MIT. It adds 12 tokens to every session and 810 once invoked, about $0.0000 per session on Opus 5.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.

Related

fusion-status compared with commands from other repositories

fusion-status next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fusion-statusmihneaptu/opencode-fusionCommand2172mo agoMITA12Claude Code, OpenCode
workflowEZotoff/ez-omo-configCommand620d agoMITA32Claude Code
episodeEZotoff/ez-omo-configCommand620d agoMITA11Claude Code
models-presetEZotoff/ez-omo-configCommand620d agoMITA18Claude Code
design-reviewEZotoff/ez-omo-configCommand620d agoMITA12Claude Code
dual-reviewEZotoff/ez-omo-configCommand620d agoMITA15Claude Code
escalateEZotoff/ez-omo-configCommand620d agoMITA17Claude Code