Borrowing it
Nothing to install: this file belongs to paullukic/coograph. 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/paullukic/coograph/main/.claude/commands/coograph-review.mdgit clone --depth 1 https://github.com/paullukic/coographWrote 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/commands/paullukic/coograph/coograph-review)<a href="https://agentmods.dev/commands/paullukic/coograph/coograph-review"><img src="https://agentmods.dev/badge/commands/paullukic/coograph/coograph-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.
<a href="https://agentmods.dev/commands/paullukic/coograph/coograph-review"><img src="https://agentmods.dev/badge/commands/paullukic/coograph/coograph-review.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.00000 | $0.01198 |
| Opus 5 | $0.00000 | $0.00599 |
| Sonnet 5 | $0.00000 | $0.00240 |
| Haiku 4.5 | $0.00000 | $0.00120 |
Grade A, and why
coograph-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 10d 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 — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Review the changes in scope for spec compliance, convention violations, logic bugs, and architectural issues. You review — you do not author. Never edit files.
Phase 0 — Orient with Code-Graph (MANDATORY — non-negotiable)
Before reading any file or running any search, this is the HARD RULE — code-graph first, no exceptions:
- Call
detect_changes()thenget_review_context(files=[...changed files...]). ALWAYS start here. Use the returned file set and risk scores to drive the review. High-risk files first. - Fall back to
sqlite3 .code-graph/graph.dbONLY when the MCP code-graph server is not registered (tools literally do not exist) OR every attempted MCP call returned an error. - Fall back to standard search/read tools ONLY when Step 1 AND Step 2 are both impossible because the code-graph DB is absent from the workspace.
"Slow", "unwieldy", "I already know the file", or "it's a small diff" are NOT valid reasons to bypass. When tracing consumers or write paths use query_graph("importers_of", file) and query_graph("callers_of", fn) before grepping. Every finding must still be verified from a fresh file read regardless of graph output.
Phase 1 — Anchor & Scope
- Read
.github/copilot-instructions.md(the single source of truth for project conventions). - Run
git diff origin/main --statto list changed files with line counts. - If the project uses OpenSpec, read the active change's
proposal.md,specs/, andtasks.md.
Phase 2 — Build the Change Manifest
The manifest is the primary review input — NOT raw diffs. Raw diffs cause misreads and phantom findings.
- For each changed file, run
git diff origin/main -- <file>one at a time. - Write a 1-2 line summary per file: what was renamed, added, removed, or rewired. Note old sources for nulled fields, old→new types for type changes.
- Group changes by logical unit. Mark auto-generated files as "auto-generated, skip."
Phase 3 — Read & Trace
For each manifest entry:
- Read the actual file (not the diff) — this is the source of truth.
- Trace downstream impact based on what changed:
- Fields set to
null/undefined: trace the full write path to API/persistence. Flag destructive clears. - Type renames: verify new type has all fields the consuming code accesses.
- Removed/added exports: grep all consumers and verify none are broken.
- Fields set to
- Walk the review checklist against each file:
- Spec compliance: does implementation match tasks/requirements? Any scope creep?
- Conventions: naming, imports, exports, logging, i18n, error handling.
- Business logic: domain invariants, state transitions, monetary/threshold logic.
- Code logic: null handling, control flow, algorithmic correctness, exception paths.
- Design: is there a simpler structure? Flag structural complexity with a concrete simpler alternative.
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.
- 10d ago First seen · 106 lines · 0 tokens per session scan A 4e328d709397
coograph-review is a command published in the GitHub repository paullukic/coograph (17 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,198 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.
Other commands, from other repositories
assemble-team
Assemble a pre-built agent team for parallel work - review, feature, debug, cross-platform, full-stack, or research.
review-code
Trigger a comprehensive code review on recent changes or specified files.
final-review
Command "final-review" from adriannoes/awesome-agentic-ai, covering final review - comprehensive pr review & testing, step 0: determine review pass, step 1: create or update the pr, step 2: launch three review agents in parallel and agent 1: codebase consistency reviewer.
code-review
Perform a thorough code review that verifies functionality, maintainability, and security before approving a change. Focus on architecture, readability, performance implications, and provide actionable suggestions for improvement.
code-review
Review staged git changes for bugs, security issues, and style violations.
amby.converge
Check the codebase against spec, plan, and tasks after implementing; append gap tasks, never edit code.