GENesis-AGI: Command for Claude Code

.claude/commands/deep-review.md

deep-review is a command for Claude Code from WingedGuardian/GENesis-AGI. It costs 0 tokens per session (2,183 once invoked), scanned A, original, MIT.

A command for an adversarial review of the current code changes before they are pushed.

In plain words
What is it for?
Use it before pushing substantial changes, especially hooks, gates, parsers, or security-related code.
Why use it?
It looks for logic bugs that ordinary linting, secrets checks, or structural scans may miss.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents; mentions Codex.

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

Reuse

Borrowing it

Nothing to install: this file belongs to WingedGuardian/GENesis-AGI. 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/WingedGuardian/GENesis-AGI/main/.claude/commands/deep-review.md
Clone the repo
git clone --depth 1 https://github.com/WingedGuardian/GENesis-AGI

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 deep-review

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/wingedguardian/genesis-agi/deep-review"><img src="https://agentmods.dev/badge/commands/wingedguardian/genesis-agi/deep-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,183 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.00000 $0.02183
Opus 5 $0.00000 $0.01092
Sonnet 5 $0.00000 $0.00437
Haiku 4.5 $0.00000 $0.00218

Measured yesterday against content hash 2a6006c0c7a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

deep-review 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 yesterday.

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/deep-review.md · 126 lines

How it starts

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

Run a fresh-context, un-anchored ADVERSARIAL-LOGIC review of the current diff before pushing — the review that catches real bugs, not a lint/secrets/"structural CLEAN" scan. Use it on any substantial change, and ALWAYS before pushing a hook, gate, parser, or security-surface change.

Why this exists: an internal review-loop analysis of recent PRs found that first-round Codex findings were real, pre-existing bugs — the initial pushes had been self-reviewed with the WRONG SHAPE (a pattern/secrets scan), not an adversarial logic audit. This command makes the right-shape pass the easy default. (It reliably kills the first round; it is NOT a cure for the whole loop — fix-churn and hand-rolled parsing drive the tail. See the Common Traps entry on CLI parsing.)

Note: /deep-review is the LOCAL pre-push adversarial pass (Claude-model reviewers). It does NOT replace the independent-model Codex review, which still runs on the PR and is required by the merge gate — the two are complementary (Codex catches cross-model blind spots). This command clears the local commit review-depth gate; it does not certify the PR by itself.

1. Stage everything, then scope the FULL branch diff

  • ROOT="$(git rev-parse --show-toplevel)" — the repo root. Use $ROOT/scripts/… for every scripts/… path below: this repo's Bash cwd drifts, so a bare relative scripts/… can resolve against the wrong directory and fail. (git commands find the root on their own.)
  • Stage all intended changes first (git add …) and skim git status: git diff never shows UNTRACKED (never-added) files, so a brand-new source/test/hook/config file is invisible to the review until it is staged. Nothing untracked = the diff is complete.
  • git diff "$(git merge-base HEAD origin/main)" — everything the branch changes vs the merge-base, INCLUDING staged and unstaged tracked work (git diff <commit> compares the working tree). Add --stat for the file list. Do NOT use ..HEAD alone (misses uncommitted work) or plain git diff alone (misses STAGED work).

Read the full file on GitHub · 126 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. yesterday Changed · +39 lines 2a6006c0c7a3
  2. 5d ago Changed · +3 lines f2876b1b9126
  3. 9d ago First seen · 84 lines · 0 tokens per session scan A 175bb64e5d58

Subscribe to this mod's changes

deep-review is a command published in the GitHub repository WingedGuardian/GENesis-AGI (96 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,183 tokens. 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.