raven-debug

raven-debug is a command for Claude Code from giggsoinc/raven. It costs 41 tokens per session (916 once invoked), scanned B, original, MIT.

A command that checks whether Raven, its configuration, agents, files, and hooks are installed correctly. If the project has not been set up, it offers discovery and setup choices instead.

In plain words
What is it for?
Use it to diagnose Raven setup, inspect detected project signals, start initialization, or preview the configuration that would be created.
Why use it?
It helps distinguish a broken installation from a project that has never been configured. The first-run path can show what setup would look like before saving anything.

Command for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions CLAUDE.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is [Run: python3 .claude/scripts/sr-detect-workmode.py .].

Part of the raven plugin — 63 skills, 13 commands, 10 agents, 5 hooks, 1 MCP server shipped together

Good fit Use it to diagnose Raven setup, inspect detected project signals, start initialization, or preview the configuration that would be created.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/giggsoinc/raven
agentmods
npx agentmods add commands/giggsoinc/raven/raven-debug

Made for: Claude Code.

Or install raven, the plugin that ships this one along with the rest of its 63 skills, 13 commands, 10 agents, 5 hooks, 1 MCP server.

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 raven-debug

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/giggsoinc/raven/raven-debug"><img src="https://agentmods.dev/badge/commands/giggsoinc/raven/raven-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 916 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00041 $0.00916
Opus 5.5 $0.00016 $0.00366
Sonnet 5.5 $0.00008 $0.00183
Haiku 4.5 $0.00004 $0.00092

Measured 2mo ago against content hash d202e4b1acf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

raven-debug scanned grade B with 1 finding 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 2mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

13. **manifest.secrets.json permissions** — warn if not chmod 600
commands/raven-debug.md · 110 lines

How it starts

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

/raven-debug

First: Check If Raven Is Initialized

Before running any diagnostics:

Is .raven/manifest.json present?

NO MANIFEST — First-Run Discovery

If .raven/manifest.json does NOT exist:

Do NOT error. Do NOT say "manifest missing — hard stop."

Instead, say this:

─────────────────────────────────────────────────
  RAVEN — not set up yet for this project
─────────────────────────────────────────────────

  No manifest found at .raven/manifest.json

  Raven can help with this project. Here's what
  I can see in the current directory:

  [Run: python3 .claude/scripts/sr-detect-workmode.py .]
  [Display the signals and detected mode from the output]

  This looks like a [detected mode] project.

  Want me to set Raven up now?

    1) Yes — set it up (takes 2 minutes)
    2) No — just tell me what Raven would do here
    3) Show me the manifest that would be created

  →

If user says 1: Run the setup flow inline (ask the 2-3 questions, create the manifest, confirm). If user says 2: Describe what Raven would enforce for the detected mode, no manifest created. If user says 3: Generate and display the manifest JSON without saving it. Ask "Save this? [y/n]".

This is the correct behaviour when a developer runs raven-debug as their first command — they're exploring. Reward that, don't punish it.


MANIFEST EXISTS — Full Diagnostic

Run these checks in order. Output ✅ or ❌ per check.

  1. CLAUDE.md — exists at project root?
  2. manifest.json — valid JSON, all required fields present?
  3. manifest.json → stack.work_type — present and valid? (code/infra/data/docs/review/mixed/salesforce/odoo)
  4. manifest.secrets.json — present? (warn if missing, not hard stop)
  5. .gitignore — exists at project root?
  6. .gitignore entries — covers .env, *.pem, *.key, manifest.secrets.json?
  7. .env files — present but gitignored? (warn if exposed)
  8. .claude/agents/ — list all loaded agents (count + names)
  9. .claude/skills/ — list all loaded skills (count + names)
  10. .claude/settings.json — hooks registered (PreToolUse, PostToolUse, PreCompact, Notification)?
  11. .git/hooks/pre-commit — executable?
  12. .raven/architecture.md — exists? (warn if missing — not a hard stop)
  13. manifest.secrets.json permissions — warn if not chmod 600

Read the full file on GitHub · 110 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. 2mo ago First seen · 110 lines · 41 tokens per session scan B d202e4b1acf3

Subscribe to this mod's changes

raven-debug is a command published in the GitHub repository giggsoinc/raven (5 stars, last pushed 13d ago), licensed MIT. It adds 41 tokens to every session and 916 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.