gaia: Command for Claude Code

.claude/commands/gaia-release.md

gaia-release is a command for Claude Code from gaia-react/gaia. It costs 40 tokens per session (6,715 once invoked), scanned A, original, MIT.

A maintainer-only release command for GAIA, a software project. It prepares a version update, change log, generated files, a pull request, and a tag after the change is merged.

In plain words
What is it for?
Use it to run pre-release checks, update the version, finalize the change log, refresh the manifest, open a release branch and pull request, and tag the merged release.
Why use it?
It removes the need to perform the release checklist by hand while enforcing the project's protected-main-branch process.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .gaia/scripts/verify-required-checks.sh.

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-release.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-release

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/gaia-react/gaia/gaia-release"><img src="https://agentmods.dev/badge/commands/gaia-react/gaia/gaia-release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,715 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.00040 $0.06715
Opus 5.5 $0.00016 $0.02686
Sonnet 5.5 $0.00008 $0.01343
Haiku 4.5 $0.00004 $0.00671

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

Security

Grade A, and why

gaia-release 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 4d 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-release.md · 368 lines

How it starts

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

Contents: Required argument; Pre-flight: Worktree check; Workflow; Recovery: I tagged on the wrong commit.

Cut a new GAIA release. Thin orchestrator over the .gaia/cli/gaia-maintainer release CLI namespace, which owns every deterministic step (preflight checks, semver bump, CHANGELOG graduation, wiki scrub, manifest regen, commit + tag dance). This command sequences the CLI subcommands and surfaces user-facing prompts where human judgment is required.

This command is maintainer-only: it and the gaia-maintainer binary are release-excluded.

[!important] main is protected Direct pushes to main are blocked. The release commit lands on a release branch, goes through a PR, and the tag is created on the squash commit after it lands on main. The release PR is subject to the same CI gate and the same Code Audit Team merge handshake as any other PR. Expect Vitest and Playwright, Run Chromatic, and Vitest (.gaia/cli): a release PR bumps root package.json, which that job's paths filter lists, so it always runs the job's full typecheck, lint, vitest, and bundle-freshness path rather than its filter-miss fast pass (it touches .gaia/cli/** only when Step 7b rebuilt the bundles). gh pr merge --squash --auto is the normal path: the repository allows squash merges only, and base-branch protection rejects a merge without --auto, so --auto is required to queue the merge until checks pass. See wiki/concepts/PR Merge Workflow.md.

Required argument

Invocation: /gaia-release patch|minor|major. The argument is the sole authority for the version bump.

If the argument is missing, including when /gaia-release is reached as part of a larger batch of work ("ship this then release", a multi-step plan that ends in release, a chained workflow), STOP and ask the maintainer via AskUserQuestion before any preflight / branch / commit step. Do not infer the bump from commit prefixes, diff size, or the gaia-maintainer release bump proposal.

The conventional-commit scan over-proposes minor for CI/plumbing commits incorrectly tagged feat: that are patch-level in spirit; the maintainer is the only reliable source for semver intent. Never proceed without an explicit patch|minor|major from the maintainer.

Read the full file on GitHub · 368 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. 4d ago Changed · +12 lines 13762132c71b
  2. 5d ago Changed cd6ad4b3ef71
  3. 6d ago Changed · -21 lines bfd918f35aa2
  4. 8d ago Changed · +4 lines 95bd47458b07
  5. 10d ago Changed · -2 lines 7baf7704f85d
  6. 11d ago Changed · +1 lines 2c34371b283e
  7. 12d ago Changed e4152fa947ec
  8. 13d ago Changed 5d84929a4193
  9. 14d ago Changed · +2 lines 64579b66050b
  10. 15d ago First seen · 372 lines · 40 tokens per session scan A 923b6fdbd906

Subscribe to this mod's changes

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