gaia: Command for Claude Code

.claude/commands/gaia-fitness.md

gaia-fitness is a command for Claude Code from gaia-react/gaia. It costs 107 tokens per session (421 once invoked), scanned A, original, MIT.

A command that checks a project's connection to Claude, repairs problems it finds, verifies the result, and reports a grade from F to A+.

In plain words
What is it for?
Use it to inspect, fix, and verify the project's Claude integration, then see an overall fitness grade.
Why use it?
It gathers configuration and integration problems into one health check instead of requiring separate manual diagnosis and repair.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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/gaia-fitness.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 gaia-fitness

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/gaia-react/gaia/gaia-fitness"><img src="https://agentmods.dev/badge/commands/gaia-react/gaia/gaia-fitness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 421 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.00107 $0.00421
Opus 5.5 $0.00043 $0.00168
Sonnet 5.5 $0.00021 $0.00084
Haiku 4.5 $0.00011 $0.00042

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

Security

Grade A, and why

gaia-fitness 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 10d 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/gaia-fitness.md · 28 lines

What it actually says

Run the GAIA fitness workflow.

Pre-flight: Worktree check

This command grades this clone's Claude integration and heals it through a pull request of its own. It starts from the main checkout (the clone's primary working directory, on any branch) and isolates the heal right before its first write, through .claude/skills/gaia/references/isolation.md, so it never writes onto the branch the checkout holds. A linked worktree holds someone else's work, so it refuses to run from one. Run this first, before anything else; a non-zero exit is the refusal: relay it and stop.

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

Anchor for the next pre-flight step: a check that must pass before this command starts goes here, after the worktree check and before the workflow dispatch line.

. .gaia/scripts/main-only-lib.sh
gaia_pull_gate "/gaia-fitness"

On a non-zero exit, read .claude/skills/update-gaia/references/pull-gate.md and follow it with /gaia-fitness, this run's original arguments and the exit code, before anything below creates a branch, worktree, claim or SPEC id.

Read .claude/skills/gaia/references/fitness.md from the project root and follow it exactly.

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. 10d ago Changed · -4 lines c4d07ec3eaee
  2. 11d ago Changed · +9 lines 0b8143f1f2b2
  3. 15d ago Changed · +74 tokens per session 4087037351f1
  4. 21d ago Changed · +1 lines · +1 tokens per session d0b940ff062f
  5. 2mo ago First seen · 22 lines · 32 tokens per session scan A 11e3c8ab5d12

Subscribe to this mod's changes

gaia-fitness is a command published in the GitHub repository gaia-react/gaia (26 stars, last pushed 4d ago), licensed MIT. It adds 107 tokens to every session and 421 once invoked, about $0.0004 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.