Borrowing it
Nothing to install: this file belongs to dsifry/metaswarm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/dsifry/metaswarm/main/.claude/commands/external-tools-health.mdgit clone --depth 1 https://github.com/dsifry/metaswarmWrote 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/dsifry/metaswarm/external-tools-health)<a href="https://agentmods.dev/commands/dsifry/metaswarm/external-tools-health"><img src="https://agentmods.dev/badge/commands/dsifry/metaswarm/external-tools-health/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.
<a href="https://agentmods.dev/commands/dsifry/metaswarm/external-tools-health"><img src="https://agentmods.dev/badge/commands/dsifry/metaswarm/external-tools-health.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00018 | $0.00720 |
| Opus 5.5 | $0.00007 | $0.00288 |
| Sonnet 5.5 | $0.00004 | $0.00144 |
| Haiku 4.5 | $0.00002 | $0.00072 |
Grade A, and why
external-tools-health 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 24d 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.
How it starts
The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.
External Tools Health Check
Check the status of external AI tools (Codex CLI, Gemini CLI) and their configuration.
Usage
/external-tools-health
Steps
-
Locate the adapters. The plugin's
bin/is on PATH;PLUGIN_ROOT/CLAUDE_PLUGIN_ROOToften isn't set:MS_BIN="$(dirname "$(command -v metaswarm-agents.sh 2>/dev/null || echo "${CLAUDE_PLUGIN_ROOT:-${PLUGIN_ROOT:-.}}/bin/metaswarm-agents.sh")")" AD="$MS_BIN/../skills/external-tools/adapters" -
Run each adapter's health check. Each prints one JSON object with
"tool","status"(readyorunavailable),"version"(not_installedif the CLI is missing),"auth_valid"and"model":bash "$AD/codex.sh" health || echo '{"tool":"codex","status":"error","version":"unknown","auth_valid":"unknown","model":"unknown"}' bash "$AD/gemini.sh" health || echo '{"tool":"gemini","status":"error","version":"unknown","auth_valid":"unknown","model":"unknown"}'A
"status":"error"row means the adapter itself failed (for example, Gemini can exit non-zero while resolving its model). Report it as an adapter error and show the adapter's stderr. Don't infer that the CLI is missing or logged out. To see the model for a specific role, add--role <role>. Models come from.metaswarm/models.yaml(roles.<role>.codex|gemini). -
Check configuration. Read
.metaswarm/external-tools.yamlif it exists, and report which adapters are enabled or disabled. Ifexternal-tools.yamlstill has anadapters.<tool>.model, report that it is no longer read (removed in 0.14.0) and that the model belongs in.metaswarm/models.yamlroles.<role>.<tool>. -
Report status. Show a summary table with one row per tool:
status,version,auth_valid,model, and whether it's enabled in the config. Give each tool that isn'treadythe remedy that matches its state:- For a
"status":"error"row (the adapter itself failed, e.g. model resolution): show the adapter's stderr and fix that cause. Don't suggest install or login. versionisnot_installed: install the CLI.auth_validisfalse: log in (codex login, or setOPENAI_API_KEY/ the Gemini credentials).- Disabled in
.metaswarm/external-tools.yaml: enable it there if it's wanted.
- For a
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.
- 24d ago Changed · +11 lines · +18 tokens per session df4dadfb54e2
- 25d ago Changed · +22 lines c82b269e9e75
- 3mo ago First seen · 12 lines · 0 tokens per session scan A c3493b036dc7
external-tools-health is a command published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 720 once invoked, about $0.0001 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.
external-tools-health compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| external-tools-healthdsifry/metaswarm | Command | 442 | yesterday | MIT | A | 18 | Claude Code |
| qa-changesOpenHands/extensions | Command | 190 | today | MIT | A | 63 | Claude Code |
| auditar-cascadingluanpdd/kit-mcp | Command | 5 | 2d ago | MIT | A | 54 | Claude Code |
| react-nativegetsentry/toolkit | Command | 983 | today | none | A | 0 | Claude Code |
| http-serviceMadAppGang/magus | Command | 16 | yesterday | MIT | A | 27 | Claude Code |
| doctordoncheli/don-cheli-sdd | Command | 59 | 3mo ago | Apache-2.0 | A | 76 | Claude Code |
| doctorfatihkan/badi | Command | 8 | 1mo ago | MIT | A | 0 | Claude Code |