diagnose

diagnose is a command for Claude Code from furkanisikay/ardupilot-mcp. It costs 18 tokens per session (393 once invoked), scanned A, original, MIT.

A flight-log diagnosis command for ArduPilot, an open-source autopilot system used in drones and other vehicles. It examines a .bin DataFlash log, which records the vehicle’s sensors, settings, and events during a flight.

In plain words
What is it for?
Use it to investigate incidents, inspect events and sensor data, check flight parameters and physical capability, and receive tuning advice that is not applied automatically.
Why use it?
It turns raw flight records into evidence-based explanations of what went wrong, instead of relying on guesses about the vehicle or its configuration.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the ardupilot-mcp plugin — 2 commands, 1 MCP server shipped together

Good fit Use it to investigate incidents, inspect events and sensor data, check flight parameters and physical capability, and receive tuning advice that is not applied automatically.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/furkanisikay/ardupilot-mcp/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/furkanisikay/ardupilot-mcp

Made for: Claude Code.

Or install ardupilot-mcp, the plugin that ships this one along with the rest of its 2 commands, 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 diagnose

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/furkanisikay/ardupilot-mcp/diagnose"><img src="https://agentmods.dev/badge/commands/furkanisikay/ardupilot-mcp/diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 393 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.00018 $0.00393
Opus 5 $0.00009 $0.00197
Sonnet 5 $0.00004 $0.00079
Haiku 4.5 $0.00002 $0.00039

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

Security

Grade A, and why

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

commands/diagnose.md · 28 lines

What it actually says

Diagnose the ArduPilot DataFlash log at: $ARGUMENTS

Use the ardupilot-mcp MCP tools and ground every claim in their output:

  1. analyze_log(path) — run this first. It is the authoritative result: severity-ranked findings, each carrying official ArduPilot doc links, plus a summary. Everything you say should trace back to it.
  2. vehicle_profile(path) — frame, motor count, battery cells, hover throttle, power margin and thrust-to-weight. Use it to judge whether the airframe was physically capable (e.g. underpowered, marginal headroom) rather than guessing.
  3. Drill into any finding worth the detail:
    • list_events(path, ...) for the ERR/MODE/EV/MSG timeline around the incident.
    • query_timeseries(path, message_type, fields, start_s, end_s) for the raw numeric series behind a finding (e.g. VIBE, ATT DesRoll vs Roll, BAT Volt).
    • get_params(path, name_glob) / load_param_file(path) to check the configuration the vehicle actually flew.
  4. If asked about tuning, call recommend_tuning(path, area) and present it as advice only — it is never applied to a vehicle.

Then explain, in plain language, what happened and why — citing the doc links the report gave you and the concrete numbers (timestamps, values, thresholds) from the tools. Do not assert anything the tools did not report. If the log is truncated, or a message a check needs wasn't logged, say so instead of guessing.

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 · 28 lines · 18 tokens per session scan A a0ecccc5e84e

Subscribe to this mod's changes

diagnose is a command published in the GitHub repository furkanisikay/ardupilot-mcp (4 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 393 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-31.