Skip to content
Development
Command

/gaia-cleanse

Cleanses memory and auto-loaded files (CLAUDE.md, rules) of duplication with the wiki, contradictions with the wiki, and stale content, then asks one Apply / Discuss / Decline question; on Apply it applies the report, files any out-of-scope problem as a tech-debt issue, then

From plugin
gaia
2713 skills18 agents13 commands
$ npx -y skills add gaia-harness/gaia --agent claude-code

Command definition

gaia-cleanse.md
name: gaia-cleanse
description: Cleanses memory and auto-loaded files (CLAUDE.md, rules) of duplication with the wiki, contradictions with the wiki, and stale content, then asks one Apply / Discuss / Decline question; on Apply it applies the report, files any out-of-scope problem as a tech-debt issue, then commits, opens a PR, and merges it on a main-branch run like /update-deps. Pass --apply to re-run the apply-and-publish stage against the most recent report. Pass --cross-file to find instead a procedure, list or threshold stated in two or more instruction files and replace each copy with a pointer to its owning file, reporting a copy that disagrees with its owner. Use when the user asks to cleanse or clean up memory, CLAUDE.md, or rules for duplication, contradictions with the wiki, or stale instructions. For duplication or broken links inside the wiki itself, use /gaia-wiki instead.
argument-hint: "[--apply] [--cross-file] [scope-hint]"

Run the GAIA **cleanse** workflow with these arguments: `$ARGUMENTS`

Pre-flight: Worktree check

This command applies a repo-wide report, opens a pull request, and merges it. It starts from the main checkout (the clone's primary working directory, on any branch) and isolates its own work 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-cleanse" || 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-cleanse"

On a non-zero exit, read `.claude/skills/update-gaia/references/pull-gate.md` and follow it with `/gaia-cleanse`, 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/cleanse.md` from the project root and follow it exactly, with the arguments above as its input (none: its default research-then-gate path). Its Apply / Discuss / Decline gate MUST run here in the main conversation, not in a subagent, because only this layer can prompt the user.

Read more
@gaia-react
Ships withgaia

Claude is raw power. GAIA is order and focus. A serious harness for Claude Code. It keeps Claude-shipped code production-grade as your team scales. The React frontend is handled. You build the rest of your app on top.

2719 skills18 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
27
Star history of gaia-react/gaia on GitHub, a chart by star-history.com

Other commands on gaia.

distribution-vet

distribution-vet

Command

Maintainer-only. Classifies every file that would newly ship to adopters against the written distribution-boundary categories,…

@gaia-react@gaia-reactInstall Command
gaia-codify

gaia-codify

Command

Drafts a guard (deterministic check, skill, or path-scoped rule) for a recurring code-audit finding class, with approval. Reviews…

@gaia-react@gaia-reactInstall Command
gaia-debt

gaia-debt

Command

Fixes the tech-debt backlog, a single issue, a recommended related batch, or an optional batch of small unrelated issues, highest…

@gaia-react@gaia-reactInstall Command
gaia-fitness

gaia-fitness

Command

Lints this project's Claude integration (skills, commands, agents, rules, hooks, settings, CLAUDE.md files, wiki) with a…

@gaia-react@gaia-reactInstall Command
gaia-forensics

gaia-forensics

Command

Turns a GAIA workflow misfire into a redacted, classified, filing-ready bug report in one read-only pass. Self-diagnoses config…

@gaia-react@gaia-reactInstall Command
gaia-init

gaia-init

Command

Initializes a new project from the GAIA harness. Renames, strips GAIA branding, configures i18n, installs the React Doctor skill,…

@gaia-react@gaia-reactInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command