ds-rescue

ds-rescue is a command for Claude Code from zred0627/ds-rescue-cc. It costs 14 tokens per session (640 once invoked), scanned C, original, MIT.

A command-line tool that sends plans, designs, or recent code changes to DeepSeek for an independent adversarial review. It can review a file or the latest Git commit diff.

In plain words
What is it for?
Use it to challenge an implementation plan, inspect a technical design, or review the changes in the latest commit.
Why use it?
It provides a second opinion from a different AI model, helping uncover problems the original review may miss.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ds-rescue plugin — 1 skill, 1 command, 1 agent, 1 hook shipped together

Good fit Use it to challenge an implementation plan, inspect a technical design, or review the changes in the latest commit.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add zred0627/ds-rescue-cc
Claude Code
/plugin install ds-rescue

Made for: Claude Code.

Or install ds-rescue, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent, 1 hook.

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 ds-rescue

README.md
[![agentmods](https://agentmods.dev/badge/commands/zred0627/ds-rescue-cc/ds-rescue/github.svg)](https://agentmods.dev/commands/zred0627/ds-rescue-cc/ds-rescue)
Your own site
<a href="https://agentmods.dev/commands/zred0627/ds-rescue-cc/ds-rescue"><img src="https://agentmods.dev/badge/commands/zred0627/ds-rescue-cc/ds-rescue/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 ds-rescue

Your own site · 80×15
<a href="https://agentmods.dev/commands/zred0627/ds-rescue-cc/ds-rescue"><img src="https://agentmods.dev/badge/commands/zred0627/ds-rescue-cc/ds-rescue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 640 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00014 $0.00640
Opus 5 $0.00007 $0.00320
Sonnet 5 $0.00003 $0.00128
Haiku 4.5 $0.00001 $0.00064

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

Security

Grade C, and why

ds-rescue scanned grade C with 2 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 9d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

echo " Linux/macOS: curl -fsSL https://raw.githubusercontent.com/zred0627/ds-rescue-cc/main/scripts/install.sh | sh"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

echo " Linux/macOS: curl -fsSL https://raw.githubusercontent.com/zred0627/ds-rescue-cc/main/scripts/install.sh | sh"
plugins/ds-rescue/commands/ds-rescue.md · 60 lines

How it starts

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

Invoke the ds-rescue Go binary to get an independent second-opinion review from DeepSeek.

Argument parsing

The command accepts these user-facing flags and forwards them to the binary. Note: the binary's CLI parser registers --plan, --scheme, --execution as flag aliases (see Data Model > CLI Contract), so $ARGUMENTS is passed verbatim — no translation needed.

  • --check → run ds-rescue --check for self-diagnosis
  • --version → run ds-rescue --version
  • --plan <file> → binary alias for --mode plan
  • --scheme <file> → binary alias for --mode scheme
  • --execution → binary alias for --mode execution (binary self-runs git diff HEAD~1 HEAD)
  • <file> (no flag) → let binary auto-detect mode from content

Execution

BINARY="${CLAUDE_PLUGIN_ROOT}/bin/ds-rescue"
if [ ! -x "$BINARY" ]; then
  BINARY="$(command -v ds-rescue 2>/dev/null)"
fi
if [ -z "$BINARY" ]; then
  echo "ds-rescue binary not found. Install with one of:"
  echo "  Recommended:  go install github.com/zred0627/ds-rescue-cc/cmd/ds-rescue@latest"
  echo "  Linux/macOS:  curl -fsSL https://raw.githubusercontent.com/zred0627/ds-rescue-cc/main/scripts/install.sh | sh"
  echo "  Windows:      iwr https://raw.githubusercontent.com/zred0627/ds-rescue-cc/main/scripts/install.ps1 | iex"
  exit 1
fi

export DS_RESCUE_SKILL_PATH="${CLAUDE_PLUGIN_ROOT}/skills/ds-plan-challenger/SKILL.md"
"$BINARY" $ARGUMENTS

Examples

/ds-rescue docs/plans/2026-05-17-foo.md
  → auto-detects plan mode (path contains docs/plans/)

/ds-rescue --scheme scheme-A-vs-B.md
  → forces scheme mode

/ds-rescue --execution
  → binary self-runs git diff HEAD~1 HEAD and reviews the change

/ds-rescue --check
  → self-diagnostic

Notes

  • Default model is pro (deepseek-chat v4-pro). Use --model flash for faster/cheaper but less thorough review.
  • For execution mode, you must be inside a git repo with at least one previous commit on HEAD.
  • Findings are raw DeepSeek output — don't expect Claude-style politeness; that's the point.

Read the full file on GitHub · 60 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. 9d ago First seen · 60 lines · 14 tokens per session scan C 416894fc05c0

Subscribe to this mod's changes

ds-rescue is a command published in the GitHub repository zred0627/ds-rescue-cc (2 stars, last pushed 3mo ago), licensed MIT. It adds 14 tokens to every session and 640 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.