Skip to content
Agent Orchestration
Command

/external-tools-health

Check the status of external AI tools (Codex CLI, Gemini CLI) and their configuration

From plugin
metaswarm
43216 skills23 agents16 commands2 hooks
$ npx -y skills add dsifry/metaswarm --agent claude-code

Command definition

external-tools-health.md
description: Check the status of external AI tools (Codex CLI, Gemini CLI) and their configuration

External Tools Health Check

Check the status of external AI tools (Codex CLI, Gemini CLI) and their configuration.

Usage

/external-tools-health

Steps

1. **Locate the adapters.** The plugin's `bin/` is on PATH; `PLUGIN_ROOT`/`CLAUDE_PLUGIN_ROOT` often 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"

2. **Run each adapter's health check.** Each prints one JSON object with `"tool"`, `"status"` (`ready` or `unavailable`), `"version"` (`not_installed` if 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`).

3. **Check configuration.** Read `.metaswarm/external-tools.yaml` if it exists, and report which adapters are enabled or disabled. If `external-tools.yaml` still has an `adapters.<tool>.model`, report that it is no longer read (removed in 0.14.0) and that the model belongs in `.metaswarm/models.yaml` `roles.<role>.<tool>`.

4. **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't `ready` the 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.
  • `version` is `not_installed`: install the CLI.
  • `auth_valid` is `false`: log in (`codex login`, or set `OPENAI_API_KEY` / the Gemini credentials).
  • Disabled in `.metaswarm/external-tools.yaml`: enable it there if it's wanted.

Related

  • `skills/external-tools/SKILL.md` — the external tools delegation skill
  • `.metaswarm/external-tools.yaml` — configuration file
  • `.metaswarm/models.yaml` — per-role models (`roles.<role>.codex|gemini`)
  • `bin/external-tools-verify.sh`: the metaswarm repo's own adapter self-test (for developing metaswarm; not a health check)
Read more
@dsifry
Ships withmetaswarm

A self-improving multi-agent orchestration framework for Claude Code, Gemini CLI, and Codex CLI.

43214 skills23 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
432
Star history of dsifry/metaswarm on GitHub, a chart by star-history.com

Other commands on metaswarm.

brainstorm

brainstorm

Command

Refine an idea into a design with brainstorming, then run the design review gate for project-sized designs

@dsifry@dsifryInstall Command
create-issue

create-issue

Command

Create a well-structured GitHub issue with acceptance criteria and agent instructions

@dsifry@dsifryInstall Command
handoff

handoff

Command

Analyze the session and write a self-contained handoff document so a fresh agent can resume the work — outputs a single "Read…

@dsifry@dsifryInstall Command
pr-shepherd

pr-shepherd

Command

Monitor a PR through to merge - handles CI failures, reviews, and thread resolution

@dsifry@dsifryInstall Command
prime

prime

Command

Load relevant knowledge base facts into context before starting work

@dsifry@dsifryInstall Command

More commands from other plugins.

COMMAND_COMPLIANCE_REPORT

COMMAND_COMPLIANCE_REP…

Command

Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…

@ruvnet@ruvnetInstall Command
ask

ask

Command

This compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…

@yeachan-heo@yeachan-heoInstall Command