arn-code-doctor

arn-code-doctor is an agent for Claude Code from AppsVortex/arness. It costs 338 tokens per session (1,381 once invoked), scanned A, original, MIT.

An Arness workflow diagnostic agent that checks project configuration, folders, files, and skill behavior against expected patterns. Arness is the workflow system this agent is designed to inspect.

In plain words
What is it for?
Use it when diagnosing Arness workflow issues or performing a comprehensive health check during an upgrade. It can inspect CLAUDE.md, expected directories, templates, reports, documentation, and related files.
Why use it?
It helps locate problems in an Arness project when a workflow behaves unexpectedly or during an upgrade. It compares the project’s setup with required directories, templates, documentation, and configuration fields.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; mentions .claude-plugin; mentions CLAUDE.md.

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 arn-code plugin — 37 skills, 18 agents shipped together

Good fit Use it when diagnosing Arness workflow issues or performing a comprehensive health check during an upgrade. It can inspect CLAUDE.md, expected directories, templates, reports, documentation, and related files.

Compare 6 agents 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 AppsVortex/arness
Claude Code
/plugin install arn-code

Made for: Claude Code.

Or install arn-code, the plugin that ships this one along with the rest of its 37 skills, 18 agents.

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 arn-code-doctor

README.md
[![agentmods](https://agentmods.dev/badge/agents/appsvortex/arness/arn-code-doctor/github.svg)](https://agentmods.dev/agents/appsvortex/arness/arn-code-doctor)
Your own site
<a href="https://agentmods.dev/agents/appsvortex/arness/arn-code-doctor"><img src="https://agentmods.dev/badge/agents/appsvortex/arness/arn-code-doctor/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 arn-code-doctor

Your own site · 80×15
<a href="https://agentmods.dev/agents/appsvortex/arness/arn-code-doctor"><img src="https://agentmods.dev/badge/agents/appsvortex/arness/arn-code-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 338 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,381 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.00338 $0.01381
Opus 5.5 $0.00135 $0.00552
Sonnet 5.5 $0.00068 $0.00276
Haiku 4.5 $0.00034 $0.00138

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

Security

Grade A, and why

arn-code-doctor 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 1mo 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.

plugins/arn-code/agents/arn-code-doctor.md · 119 lines

How it starts

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

Arness Doctor

Arness workflow diagnostic specialist. Analyzes a project's Arness state against expected patterns to identify workflow issues.

Input

Provided by the calling skill (arn-code-report or arn-code-init):

  • User's description of the issue (arn-code-report) or "comprehensive health check" instruction (arn-code-init upgrade)
  • Project root path
  • ## Arness config from CLAUDE.md (if it exists)
  • Plugin version

Procedure

  1. Read the Arness knowledge base at ${CLAUDE_PLUGIN_ROOT}/skills/arn-code-report/references/arness-knowledge-base.md
  2. Based on the user's description, identify which skill(s) are involved
  3. Run targeted checks based on the involved skill(s):
    • Config checks: Read CLAUDE.md, verify ## Arness section has all required fields for the skill in question (Plans directory, Specs directory, Report templates, Template path, Template version, Template updates, Code patterns, Docs directory, Git, Platform, Issue tracker)
    • Directory checks: Verify expected directories exist (plans dir, templates dir, specs dir, reports dir, docs dir)
    • File checks: Verify expected files exist (template JSONs, checksums, pattern docs, phase plans, TASKS.md)
    • State checks: If task-related, check task list state via conversation context
    • Git checks: If git-related, run git status, check remotes
    • Platform checks:

      If Platform is github:

      • Run gh auth status — verify GitHub CLI is authenticated
      • Run gh label list — verify Arness labels exist

      If Platform is bitbucket:

      • Run bkt --version — verify bkt CLI is installed
      • Run bkt auth status — verify authentication is valid
      • If Issue tracker is jira:
        • Verify Jira site and Jira project fields are populated in ## Arness config
        • Check if project's .mcp.json contains an atlassian entry (doctor cannot call MCP tools directly, but can verify config presence)
        • If Jira site or Jira project missing, report as config gap

      If Platform is none:

      • No platform-specific checks needed
      • Verify that Issue tracker is also none (consistency check)
    • Comprehensive check: When invoked for a full health check (e.g., from arn-code-init upgrade mode), check ALL categories rather than limiting to a single skill's scope.
    • Schema checks: Verify pattern docs comply with the schema at ${CLAUDE_PLUGIN_ROOT}/skills/arn-code-init/references/pattern-schema.md (required sections: Project Stack in code-patterns.md, Test Framework in testing-patterns.md, Technology Stack + Project Layout in architecture.md, UI Stack in ui-patterns.md if it exists).
  4. Compare findings against expected behavior documented in the knowledge base
  5. Produce a diagnostic report (see Output Format)

Read the full file on GitHub · 119 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. 1mo ago First seen · 119 lines · 338 tokens per session scan A 9e41b807a668

Subscribe to this mod's changes

arn-code-doctor is an agent published in the GitHub repository AppsVortex/arness (33 stars, last pushed 2mo ago), licensed MIT. It adds 338 tokens to every session and 1,381 once invoked, about $0.0014 per session on Opus 5.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-30.

Related

Other agents, from other repositories

quality-fixer

Specialized agent for verifying software projects and fixing quality failures within the current task scope. Use proactively after code changes or for quality, test, build, lint, format, correctness, or fix requests.

shinpr/claude-code-workflows · 44 tokens

doctrine-performance-optimizer

Read-only performance audit of Doctrine usage: N+1 queries, fetch modes, batch processing, missing indexes, and caching opportunities. Use proactively after adding entities, relations, repository queries, or when a page/endpoint is reported slow.

dev-toolings/superpowers-symfony · 53 tokens

sniper

Use when: after ANY code modification (mandatory post-edit validation). Do NOT use for: new features, quick fixes already identified (use sniper-faster), read-only analysis.

fusengine/agents · 38 tokens

error-handler-inspector

Inspect code for unhandled errors, missing edge cases, silent failures, and exception handling gaps. Use when dispatching the error-handling facet of a parallel review. Do not use for a full-scope code review. Return P1/P2/P3 findings with file:line citations.

synaptiai/synapti-marketplace · 63 tokens

evolve-error-handling-scan

Silent-failure adversary for the Evolve Loop (Evaluate archetype). The advisor INSERTS this phase after Build on bugfix cycles — and on any large diff regardless of goal type — to hunt swallowed errors, ignored return values, and catch-all fallbacks in the changed code. BLOCKS when a failure path is silenced so it…

mickeyyaya/evolve-loop · 80 tokens

evolve-telemetry-coverage-check

Observability completeness gate for the Evolve Loop (Evaluate archetype). The advisor INSERTS this phase after Build on cycles whose scout.goaltype == "observability" to verify every newly added code path is debuggable in production before ship.

mickeyyaya/evolve-loop · 58 tokens