deep-review

deep-review is a command for Claude Code from turingmindai/turingmind-code-review. It costs 8 tokens per session (1,101 once invoked), scanned A, original, MIT.

A command for a broad code review that examines the changes, surrounding project context, architecture, security, tests, and likely effects on related files.

In plain words
What is it for?
Use it to review a set of code changes, checking their summary, dependencies, related files, test coverage, architecture, security, and project rules.
Why use it?
It gathers information from the repository before reviewing, so problems are less likely to be missed because only the changed lines were inspected.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the turingmind-code-review plugin — 2 commands, 1 agent shipped together

Good fit Use it to review a set of code changes, checking their summary, dependencies, related files, test coverage, architecture, security, and project rules.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/turingmindai/turingmind-code-review/deep-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/turingmindai/turingmind-code-review

Made for: Claude Code.

Or install turingmind-code-review, the plugin that ships this one along with the rest of its 2 commands, 1 agent.

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/turingmindai/turingmind-code-review/deep-review/github.svg)](https://agentmods.dev/commands/turingmindai/turingmind-code-review/deep-review)
Your own site
<a href="https://agentmods.dev/commands/turingmindai/turingmind-code-review/deep-review"><img src="https://agentmods.dev/badge/commands/turingmindai/turingmind-code-review/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/turingmindai/turingmind-code-review/deep-review"><img src="https://agentmods.dev/badge/commands/turingmindai/turingmind-code-review/deep-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,101 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.00008 $0.01101
Opus 5.5 $0.00003 $0.00440
Sonnet 5.5 $0.00002 $0.00220
Haiku 4.5 $0.00001 $0.00110

Measured 1mo ago against content hash f90158604e39, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

plugins/turingmind/commands/deep-review.md · 147 lines

How it starts

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

Comprehensive code review with full context analysis. Includes architecture review, test coverage, and impact analysis.

Phase 1: Gather Context (3 Parallel Haiku Agents)

Agent 1A - Change Summary:

1. Run `git status`, `git diff`, `git diff --staged`
2. If no changes → inform user and stop
3. Extract:
   - Files changed (list)
   - Languages detected (from extensions)
   - Line counts (additions/deletions)

Agent 1B - Project Context:

1. Find CLAUDE.md (root + directories with changes)
2. Read dependency files:
   - package.json / requirements.txt / go.mod / Cargo.toml
3. Identify project type and framework

Agent 1C - Related Files:

For each modified file, find:
- Files that import the modified file
- Files that the modified file imports
- Test files (foo.ts → foo.test.ts)

Phase 2: Load Agents (Progressive)

Only load agents relevant to detected context:

Condition Load Agent
Always @agents/bugs.md
Always @agents/security.md
Always (deep) @agents/architecture.md
CLAUDE.md exists @agents/compliance.md
.ts/.tsx/.js/.jsx files @agents/language-typescript.md
.py files @agents/language-python.md

See @agents/index.md for full routing logic.

Phase 3: Deep Analysis (Parallel Sonnet Agents)

Launch loaded agents in parallel. Each agent:

  1. Reads full file context + related files from Phase 1C
  2. Analyzes only the diff (not pre-existing code)
  3. Returns structured issues with diff-style fixes

Core Agents (always):

  • @agents/bugs.md - Logic errors, null access, race conditions
  • @agents/security.md - OWASP Top 10, injection, XSS, secrets
  • @agents/architecture.md - Patterns, coupling, dependencies

Conditional Agents:

  • @agents/compliance.md - If CLAUDE.md exists
  • @agents/language-typescript.md - If TS/JS files
  • @agents/language-python.md - If Python files

Additional Deep Analysis:

  • Tests & Documentation Agent:
    • Do test files exist for modified code?
    • Do tests need updating for this change?
    • Are new public APIs missing tests?
    • Do README/docs need updates?

Read the full file on GitHub · 147 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. 1mo ago First seen · 147 lines · 8 tokens per session scan A f90158604e39

Subscribe to this mod's changes

deep-review is a command published in the GitHub repository turingmindai/turingmind-code-review (50 stars, last pushed 9mo ago), licensed MIT. It adds 8 tokens to every session and 1,101 once invoked, about $0.0000 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.