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.
npx agentmods add commands/mihneaptu/opencode-fusion/fusion-statusgit clone --depth 1 https://github.com/mihneaptu/opencode-fusionWrote 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.
[](https://agentmods.dev/commands/mihneaptu/opencode-fusion/fusion-status)<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="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00012 | $0.00810 |
| Opus 5 | $0.00006 | $0.00405 |
| Sonnet 5 | $0.00002 | $0.00162 |
| Haiku 4.5 | $0.00001 | $0.00081 |
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 5d 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.
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.
-
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, andlistfor 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 andtaskis available, report PASS. -
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 eachagent.<role>.modelassignment found, and FAIL ifbuildorsidekickhas no model (exploreshould normally have one too; research/design/reviewer/vision are optional). Then read~/.config/opencode/.fusion-install.jsonand reportbundleVersionandinstalledAtas 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. Reportunknown (pre-1.1.0)when the manifest exists but has nobundleVersion, andnot installed by the installerwhen the manifest is absent - a hand-copied setup has no manifest, so that alone is not a FAIL. -
Agent files. For every role that has a model in the config - plus
plan, minusexplore(explore is built-in and needs no file) - read~/.config/opencode/agent/<role>.mdand confirm the file exists. Inbuild.md, confirm the frontmatter containsedit: deny. A missing file or a missing denial is FAIL, with the exact path. -
Optional Claude Code bridge. Treat this layer as disabled and report SKIP only when both
~/.config/opencode/plugins/fusion-claude.jsand the top-levelpermission.fusion_claude_*rule are absent. Otherwise confirm the plugin file exists, the top-level rule isdeny, bothbuild.mdandplan.mdallowfusion_claude_statusandfusion_claude_review, and both tools are present in this build agent's live toolset. If those checks pass, callfusion_claude_statusand report its sanitized result. Never runclaude auth statusdirectly 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.
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.
- 5d ago First seen · 21 lines · 12 tokens per session scan A 0d329e79e23c
fusion-status is a command published in the GitHub repository mihneaptu/opencode-fusion (216 stars, last pushed 11d ago), licensed MIT. It adds 12 tokens to every session and 810 once invoked, about $0.0001 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.
Other commands, from other repositories
models-preset
Show current OMO model assignments in markdown tables.
session-info
Copy project path, session title, and session ID to clipboard (no LLM round-trip).
session-id
Copy the invoking session ID to clipboard (no LLM round-trip).
vscode
Open VS Code in the current project/worktree directory.
swarm
Decompose task into parallel subtasks and coordinate agents.
distill
Distill hot-tier model observations into the committed capability cards and the SKILL.md rankings block.