dg

dg is a skill for Claude Code, Codex from v1r3n/dinesh-gilfoyle. It costs 29 tokens per session (2,766 once invoked), scanned A, original, Apache-2.0.

An entertaining code-review workflow with two fictional voices arguing over your changes. It reviews a Git diff—the list of edits in a Git project—or selected files.

In plain words
What is it for?
Use /dg to review staged and unstaged changes, a specific file, or a directory of source files. You can also limit the number of review rounds.
Why use it?
It gives you a second, adversarial look at code and can expose issues that a friendly review might miss. The argument format makes the review easier to follow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use /dg to review staged and unstaged changes, a specific file, or a directory of source files. You can also limit the number of review rounds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/v1r3n/dinesh-gilfoyle/dg
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.

Any agent
npx skills add v1r3n/dinesh-gilfoyle --skill dg
Clone the repo
git clone --depth 1 https://github.com/v1r3n/dinesh-gilfoyle

Made for: Claude Code, Codex.

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 dg

README.md
[![agentmods](https://agentmods.dev/badge/skills/v1r3n/dinesh-gilfoyle/dg/github.svg)](https://agentmods.dev/skills/v1r3n/dinesh-gilfoyle/dg)
Your own site
<a href="https://agentmods.dev/skills/v1r3n/dinesh-gilfoyle/dg"><img src="https://agentmods.dev/badge/skills/v1r3n/dinesh-gilfoyle/dg/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 dg

Your own site · 80×15
<a href="https://agentmods.dev/skills/v1r3n/dinesh-gilfoyle/dg"><img src="https://agentmods.dev/badge/skills/v1r3n/dinesh-gilfoyle/dg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,766 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.00029 $0.02766
Opus 5 $0.00015 $0.01383
Sonnet 5 $0.00006 $0.00553
Haiku 4.5 $0.00003 $0.00277

Measured 10d ago against content hash 6a1903f51765, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

dg 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.

dg/SKILL.md · 284 lines

How it starts

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

Dinesh vs Gilfoyle Code Review

Two-agent adversarial code review inspired by HBO's Silicon Valley. Gilfoyle attacks the code with withering technical precision. Dinesh defends it with flustered competence. The banter entertains; the back-and-forth produces genuinely better reviews.

Invocation

  • /dg — review git diff (staged + unstaged)
  • /dg 3 — git diff, max 3 rounds
  • /dg src/auth.ts — review specific file
  • /dg src/auth.ts 3 — specific file, 3 rounds max

Parse Arguments

  1. No args → target = git diff, cap = 5
  2. Number only → target = git diff, cap = that number
  3. Path only → target = that path, cap = 5
  4. Path + number → target = path, cap = number

Orchestration

Step 1: Gather Code

If git diff:

git diff HEAD
git diff --staged

Combine both diffs. If both are empty, tell the user there's nothing to review.

If file/path: Read the target file(s). If path is a directory, read all source files in it.

Always: Gather dependency context. Look for dependency files in the project root and include them in the context sent to agents:

  • package.json, package-lock.json, yarn.lock, pnpm-lock.yaml (Node.js)
  • requirements.txt, pyproject.toml, Pipfile.lock (Python)
  • go.mod, go.sum (Go)
  • pom.xml, build.gradle (Java)
  • Gemfile, Gemfile.lock (Ruby)
  • Cargo.toml, Cargo.lock (Rust)
  • composer.json, composer.lock (PHP)

These are needed for Gilfoyle's dependency vulnerability scan.

Step 2: Run the Debate

Initialize: round = 0, debate_history = []

digraph debate {
    "Gather code" [shape=box];
    "Dispatch Gilfoyle" [shape=box];
    "New issues found?" [shape=diamond];
    "Dispatch Dinesh" [shape=box];
    "All conceded, no pushback?" [shape=diamond];
    "Round >= cap?" [shape=diamond];
    "Ask user: continue?" [shape=diamond];
    "Synthesize final review" [shape=doublecircle];

    "Gather code" -> "Dispatch Gilfoyle";
    "Dispatch Gilfoyle" -> "New issues found?";
    "New issues found?" -> "Synthesize final review" [label="no — converged"];
    "New issues found?" -> "Dispatch Dinesh" [label="yes"];
    "Dispatch Dinesh" -> "All conceded, no pushback?";
    "All conceded, no pushback?" -> "Synthesize final review" [label="yes — converged"];
    "All conceded, no pushback?" -> "Round >= cap?";
    "Round >= cap?" -> "Dispatch Gilfoyle" [label="no — next round"];
    "Round >= cap?" -> "Ask user: continue?" [label="yes"];
    "Ask user: continue?" -> "Dispatch Gilfoyle" [label="yes — extend cap"];
    "Ask user: continue?" -> "Synthesize final review" [label="no"];
}

Read the full file on GitHub · 284 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 284 lines · 29 tokens per session scan A 6a1903f51765

Subscribe to this mod's changes

dg is a skill published in the GitHub repository v1r3n/dinesh-gilfoyle (191 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 29 tokens to every session and 2,766 once invoked, about $0.0001 per session on Opus 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.