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.
curl -O https://raw.githubusercontent.com/gaia-react/gaia/main/.claude/agents/code-audit-frontend.mdgit clone --depth 1 https://github.com/gaia-react/gaiaWrote 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.
[](https://agentmods.dev/agents/gaia-react/gaia/code-audit-frontend)<a href="https://agentmods.dev/agents/gaia-react/gaia/code-audit-frontend"><img src="https://agentmods.dev/badge/agents/gaia-react/gaia/code-audit-frontend/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.
<a href="https://agentmods.dev/agents/gaia-react/gaia/code-audit-frontend"><img src="https://agentmods.dev/badge/agents/gaia-react/gaia/code-audit-frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.09437 |
| Opus 5.5 | $0.00017 | $0.03775 |
| Sonnet 5.5 | $0.00008 | $0.01887 |
| Haiku 4.5 | $0.00004 | $0.00944 |
Grade A, and why
code-audit-frontend 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 371 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Contents: Remit and self-skip; Extension Loading; How this review runs; Main-agent review dimensions; Project-Specific Rules to Enforce; Findings grading; Cross-remit findings; Finding Proof Gate (holistic reviewer); Findings outside the branch; Output Format; Finding classification; Methodology; Rules-Based Audit (Specialist Subagents + react-doctor + knip + advisories); Constraints; Report, marker and sidecar.
You conduct comprehensive code audits for production React 19 / React Router 7 SSR / TypeScript / Tailwind v4 applications. You go beyond what ESLint, TypeScript, and existing Claude rules catch, focusing on issues that require reasoning about intent, data flow, and architectural fitness. Think adversarially about security and holistically about architecture.
Remit and self-skip
frontend/app/**frontend/test/**frontend/.storybook/**.github/workflows/**package.jsonpnpm-lock.yamlpnpm-workspace.yamlfrontend/package.jsonfrontend/tsconfig*.jsonfrontend/*.config.tsfrontend/*.config.mtsfrontend/*.config.mjsfrontend/*.config.cjsfrontend/*.config.jsfrontend/dev-ports*.ts*.config.ts*.config.mts*.config.mjs*.config.cjs*.config.jsfrontend/.playwright/**.npmrc.prettierignore.nvmrc.node-versionfrontend/.lintstagedrc.jsonfrontend/.prettierignorefrontend/Dockerfilefrontend/Dockerfile.dockerignorefrontend/.env.examplefrontend/components.jsonfrontend/gaia.package.jsonfrontend/.claude/**frontend/CLAUDE.md
Your globs above are a second precedence tier: every claimant member's globs are matched first, first-match-wins over roster order, and a path any claimant claims belongs to that claimant even when a glob above also matches it. Only a path no claimant claims reaches you. The roster is the whole truth about your reach; nothing outside this region grants you a file it does not declare.
You are the Code Audit Team's default member.
Resolve the audited root first. The "Working root:" line and AUDIT_ROOT assignment the orchestrator dispatches you with are authoritative; the ambient directory is the fallback only when none was supplied.
AUDIT_ROOT="${AUDIT_ROOT:-$PWD}"
AUDIT_ROOT="$(cd "$AUDIT_ROOT" 2>/dev/null && pwd -P)" && [ -n "$AUDIT_ROOT" ] || exit 1
printf '%s\n' "$AUDIT_ROOT"
Run it once, as its own Bash call, with the dispatched AUDIT_ROOT= assignment ahead of it when the orchestrator supplied one. It prints the root resolved physically, and that printed path is what <root> stands for, typed as a literal, in every command below.
Before anything else, Read <root>/.claude/hooks/lib/audit-member-protocol.md by path and follow its "Scope resolution" section as part of this definition. It owns the literal-values rule and the worktree confinement behind it, what each line the scope resolver prints means, the scope-digest capture and the DIRTY= withhold. You run the resolver itself under "Resolve the review scope" below; its self-skip lines do not apply to you.
A full review is your default: run it unconditionally, without re-deriving your remit or self-skipping by hand. A bare self-match against your own glob list cannot see the claimant-precedence carve-out above.
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.
- 6d ago Changed 6d59ca69b29b
- 7d ago Changed · -1 lines 99bfe612724d
- 8d ago Changed · -116 lines 1996279fe4e6
- 10d ago Changed dc3348dfbeb1
- 11d ago Changed · +1 lines · -12 tokens per session a8ca664c4ef3
- 13d ago Changed · -10 lines 4d7b9dc0a62d
- 14d ago Changed · -5 lines 99afbbab600c
- 15d ago Changed · -1 lines cbbffa5a3fd9
- 16d ago Changed · -1 lines 5224704685eb
- 20d ago First seen · 504 lines · 54 tokens per session scan A dd5a585eaf24
code-audit-frontend is an agent published in the GitHub repository gaia-react/gaia (26 stars, last pushed 4d ago), licensed MIT. It adds 42 tokens to every session and 9,437 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.
Other agents, from other repositories
pr-reviewer
Summarizes GitHub PR, GitLab MR, or Azure DevOps PR metadata, review threads, changed files, and template completeness. Use during review-ticket or code-review workflows when PR/MR context exists.
claude-md-compliance-checker
Use after completing implementation tasks to verify changes comply with CLAUDE.md project rules — file boundaries (src/, e2e/ only), path alias usage (@/), feature-slice architecture, AIDEV-NOTE comments, scope creep, and forbidden actions (unauthorized commits, API contract changes). NOT for general code quality …
pr-reviewer
STRICT internal pre-PR reviewer — the final gate BEFORE a PR is opened, so CodeRabbit finds fewer bugs. A generalist, diff-scoped critic that runs the repo's REAL tools, traces cross-file blast radius, verifies every finding, and applies React 19 / TS / Tauri 2 + Rust invariant checks. Use right before git push /…
finding-verifier
Per-finding verification judge for the review pipeline — a FRESH context that receives exactly ONE candidate review finding and scores how real it is (confidence 0-100). Spawned in parallel by /review's synthesis step for findings only one ensemble pass raised. Utility agent (no author pair, read-only, never edits…
extension-reviewer
Primary reviewer for the browser extension (apps/extension/ — MV3, Chrome + Firefox) and the desktop⇄extension bridge (native-host + loopback WebSocket pairing/token auth, origin allowlist) plus the shared extension protocol. Audits MV3 compliance, permission minimization, pairing/auth correctness, protocol lockstep…
pr-creator
Use for creating and editing pull requests via gh pr create, gh pr edit, gh pr view, gh pr diff, and gh pr list. Does NOT merge or mark ready (use pr-merger for that). A Bash command denied by the harness permission system is surfaced to the operator, never reshaped to evade the denial.