raven-debug

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

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

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.

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

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

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. Scan, not verified.
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 $0.00041 $0.00916
Opus 5 $0.00020 $0.00458
Sonnet 5 $0.00008 $0.00183
Haiku 4.5 $0.00004 $0.00092

Measured 3d ago against content hash d202e4b1acf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 3d ago), licensed MIT. It adds 41 tokens to every session and 916 once invoked, about $0.0002 per session on Opus 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.