gaia: Command for Claude Code

.claude/commands/health-audit.md

health-audit is a command for Claude Code from gaia-react/gaia. It costs 55 tokens per session (1,964 once invoked), scanned A, original, MIT.

A maintainer-only command that checks a GAIA project, tries to repair detected problems, and checks again in repeated cycles.

In plain words
What is it for?
Use it to assess project health, apply automatic repairs, and produce a grade from F to A+. It also includes the project's Claude integration in the assessment.
Why use it?
It reduces the need to manually coordinate audits, fixes, and follow-up checks. It also stops or escalates when repairs keep failing or go in circles.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

This is gaia-react/gaia's own configuration. It tells Claude Code how to work on gaia 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 gaia configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gaia-react/gaia. 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/gaia-react/gaia/main/.claude/commands/health-audit.md
Clone the repo
git clone --depth 1 https://github.com/gaia-react/gaia

Made for: Claude Code.

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 health-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/gaia-react/gaia/health-audit.svg)](https://agentmods.dev/commands/gaia-react/gaia/health-audit)
Your own site
<a href="https://agentmods.dev/commands/gaia-react/gaia/health-audit"><img src="https://agentmods.dev/badge/commands/gaia-react/gaia/health-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,964 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.00055 $0.01964
Opus 5 $0.00028 $0.00982
Sonnet 5 $0.00011 $0.00393
Haiku 4.5 $0.00006 $0.00196

Measured 8d ago against content hash c66711c5b53a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

health-audit 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 8d 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.

.claude/commands/health-audit.md · 113 lines

How it starts

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

/health-audit

Maintainer-only. You are the Orchestrator for a GAIA health audit.

Pre-flight: Worktree check

This command runs fresh-team audit-fix cycles that commit against the clone. If invoked from a linked worktree, reject hard: gaia_refuse_if_worktree (.gaia/scripts/main-only-lib.sh) asks the shared resolver which tree this is and refuses out loud, naming the main checkout, when the answer is a worktree.

Detection (run this first, before anything else):

. .gaia/scripts/main-only-lib.sh
gaia_refuse_if_worktree "/health-audit" || exit 1

If the detection does not fire, fall through to ## Step 1, Read the runbook below.

Step 1, Read the runbook

Read .gaia/cli/health/runbook.md end-to-end before doing anything else. The runbook codifies role structure, bucket definitions, fixer lane mapping, model selection, circuit breakers, and escalation criteria. Do not improvise around it.

Step 2, Run the loop

Execute the cycle loop defined in the runbook's §Cycle loop (max N=3), applying the §Termination section's oscillation-threshold definition to detect a stuck fix. Both sections were already read in full at Step 1. Do not restate the loop or the oscillation definition here. The runbook is the single source of truth for this control flow.

Bucket E runs the shared Claude-integration fitness protocol defined in wiki/decisions/Claude Integration Fitness.md over every fitness category that page defines. The Bucket E auditor does not re-specify those checks, it reads the wiki page and runs its protocol. Fitness findings route to the existing claude-surface Fixer lane.

On the first cycle that meets the clean gate, you spawn a false-clean challenger (BS/MC/GH lenses always, FV when a prior cycle ran a Fixer) before the A+ report and the RUN_DIR deletion; a substantiated finding revokes the clean exit, injected as real-fix (non-cycle-3) or escalated false-clean-refuted (cycle 3). It runs at most once per run. The runbook's §False-clean challenger is the source of truth.

Read the full file on GitHub · 113 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. 8d ago First seen · 113 lines · 55 tokens per session scan A c66711c5b53a

Subscribe to this mod's changes

health-audit is a command published in the GitHub repository gaia-react/gaia (23 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 1,964 once invoked, about $0.0003 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.