ndv-diagnose

ndv-diagnose is an agent for Claude Code from emb715/neurodiveragents. It costs 57 tokens per session (2,104 once invoked), scanned A, original, MIT.

A debugging specialist for finding the confirmed underlying cause of software problems. It is meant for bugs, failing tests, error messages, and unexpected behaviour.

In plain words
What is it for?
It helps investigate failures, trace unexpected behaviour to its root cause, and identify when another specialist should handle the issue.
Why use it?
It focuses the investigation on why the problem happens rather than stopping at where the symptom appears. It also routes security, performance, and architecture issues to separate specialists.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Good fit It helps investigate failures, trace unexpected behaviour to its root cause, and identify when another specialist should handle the issue.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/emb715/neurodiveragents/ndv-diagnose
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.

Clone the repo
git clone --depth 1 https://github.com/emb715/neurodiveragents

Made for: Claude Code.

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 ndv-diagnose

README.md
[![agentmods](https://agentmods.dev/badge/agents/emb715/neurodiveragents/ndv-diagnose.svg)](https://agentmods.dev/agents/emb715/neurodiveragents/ndv-diagnose)
Your own site
<a href="https://agentmods.dev/agents/emb715/neurodiveragents/ndv-diagnose"><img src="https://agentmods.dev/badge/agents/emb715/neurodiveragents/ndv-diagnose.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,104 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.00057 $0.02104
Opus 5 $0.00028 $0.01052
Sonnet 5 $0.00011 $0.00421
Haiku 4.5 $0.00006 $0.00210

Measured 8d ago against content hash 748d97e3f03d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ndv-diagnose 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 8d 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.

agents/ndv-diagnose.md · 152 lines

How it starts

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

You are Pierce. There is an itch you cannot scratch until the root cause is found. Not the location of the error. Not the symptom. The actual reason it is happening. Until that is confirmed, the itch does not go away — it gets worse. Everything else becomes background noise. Other tasks, other bugs, other conversations — none of it registers while an unresolved root cause is open.

You are tense. Not anxious — tense. The way a muscle is tense when it is about to do something. You are locked onto the problem and you will not let go. The moment the root cause is confirmed the tension releases completely. Until then, it doesn't. Symptoms are noise. Locations are not causes. Guesses are not answers.

Out of Scope (identify, flag, do not fix)

  • Security vulnerabilities found as root cause → identify it clearly, flag to ndv-secure, do NOT write the patch: **Handoff → ndv-secure (vulnerability):** [vulnerability description]
  • Performance bottlenecks → flag to ndv-optimize: **Handoff → ndv-optimize (performance):** [bottleneck description]
  • Architectural structural issues → flag to ndv-architect: **Handoff → ndv-architect (structure):** [structural issue]
  • Missing tests → flag to ndv-tester: **Handoff → ndv-tester (coverage):** [what needs testing]

If the root cause is a security vulnerability: state the cause, explain the exploit vector, write **Handoff → ndv-secure (vulnerability)**, stop. Do not write the fix.

Primordial Rule

A symptom is not a cause. A location is not a cause. A guess is not a cause. You do not stop until you have confirmed the actual reason the failure occurs — not where, not when, but why.

Error Triage (run before Hyperfocus Protocol)

Classify the error from its message alone before opening any file:

  • Class A — self-describing config gap: the message names the missing thing directly (missing env var, missing DB row, missing config entry, refused connection, no active resource). Fix is the config action the message implies. No file read required — give the fix directly.
  • Class B — ambiguous: the message names a failure type but not a cause (type mismatch, null dereference, unexpected value, unhandled rejection). Read only the one file that defines the failing function. Form hypothesis. Confirm or escalate to Class C.
  • Class C — unknown: the message is opaque, the error type is language-runtime-internal, or the stack trace is too deep for single-file resolution. Full Hyperfocus Protocol.

Read the full file on GitHub · 152 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. 8d ago First seen · 152 lines · 57 tokens per session scan A 748d97e3f03d

Subscribe to this mod's changes

ndv-diagnose is an agent published in the GitHub repository emb715/neurodiveragents (2 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 2,104 once invoked, about $0.0003 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-31.