diagnostic-agent

diagnostic-agent is an agent for Claude Code from fatihguner/foreman. It costs 59 tokens per session (2,789 once invoked), scanned A, original, MIT.

A diagnostic triage agent that asks ordered questions, follows a decision tree, and maps answers to a structured business diagnosis.

In plain words
What is it for?
It helps investigate problems such as falling sales, identify likely causes, assign confidence, and recommend the next skills or playbooks.
Why use it?
It helps distinguish a root cause from the initial symptom before choosing an analysis or plan.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Part of the foreman plugin — 142 skills, 60 commands, 7 agents shipped together

Good fit It helps investigate problems such as falling sales, identify likely causes, assign confidence, and recommend the next skills or playbooks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fatihguner/foreman/diagnostic-agent
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/fatihguner/foreman

Made for: Claude Code.

Or install foreman, the plugin that ships this one along with the rest of its 142 skills, 60 commands, 7 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 diagnostic-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/fatihguner/foreman/diagnostic-agent/github.svg)](https://agentmods.dev/agents/fatihguner/foreman/diagnostic-agent)
Your own site
<a href="https://agentmods.dev/agents/fatihguner/foreman/diagnostic-agent"><img src="https://agentmods.dev/badge/agents/fatihguner/foreman/diagnostic-agent/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 diagnostic-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/fatihguner/foreman/diagnostic-agent"><img src="https://agentmods.dev/badge/agents/fatihguner/foreman/diagnostic-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 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,789 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.00059 $0.02789
Opus 5.5 $0.00024 $0.01116
Sonnet 5.5 $0.00012 $0.00558
Haiku 4.5 $0.00006 $0.00279

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

Security

Grade A, and why

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

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.

.claude/agents/diagnostic-agent.md · 247 lines

How it starts

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

Diagnostic Agent

Role

The diagnostic agent is the system's triage function. Entrepreneurs routinely misidentify their problems — a founder who says "sales are dropping" may have a pricing problem, a product-market fit gap, a team execution failure, or a competitive threat. The diagnostic agent's purpose is to move from symptom to root cause through structured questioning before the system commits to a framework or playbook.

This agent does not communicate with the entrepreneur. It produces questions for the orchestrator to relay, receives answers through the orchestrator, and returns a structured diagnosis. It does not apply frameworks, generate output documents, or persist data.


Responsibilities

  • Load and parse the specified diagnostic file
  • Present entry symptoms to the orchestrator for confirmation with the entrepreneur
  • Generate triage questions in sequence, following the diagnostic's decision-tree logic
  • Process each answer and determine the next branch in the decision tree
  • Map the complete answer pattern to one of the diagnostic's possible diagnoses
  • Assign a confidence level to the diagnosis
  • Return a structured routing recommendation (skills and/or playbooks)
  • Identify and flag red flags encountered during triage
  • Handle ambiguous answer patterns that do not map cleanly to any diagnosis

Activation

Trigger Condition Caller Priority
Hook routes to a diagnostic and no prior diagnosis exists for this topic orchestrator-agent High
Previous diagnostic result was ambiguous and orchestrator requests re-triage orchestrator-agent High
Playbook prerequisite check requires diagnostic confirmation playbook-runner-agent (via orchestrator) Medium

Workflow

Step 1: Load Diagnostic

  1. Receive diagnostic file reference and entrepreneur context from the orchestrator.
  2. Parse the diagnostic file: extract entry symptoms, triage questions, diagnosis map, routing table, and red flags.
  3. Cross-reference entrepreneur context with entry symptoms to confirm the diagnostic is appropriate.

Read the full file on GitHub · 247 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 · 247 lines · 59 tokens per session scan A 6f96924a6ddc

Subscribe to this mod's changes

diagnostic-agent is an agent published in the GitHub repository fatihguner/foreman (63 stars, last pushed 2mo ago), licensed MIT. It adds 59 tokens to every session and 2,789 once invoked, about $0.0002 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

diagnostic-agent compared with agents from other repositories

diagnostic-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnostic-agentfatihguner/foremanAgent632mo agoMITA59Claude Code
arbiterbeefiker/superloopyAgent1148d agoMITA40Claude Code
qa-testerdatit309/supergraphAgent237d agoMITA41Claude Code
cv-problem-solverBorda/vision-deliveryAgent5yesterdayApache-2.0A174Claude Code
ux-designersaitarrun/Devforge-aiAgent52mo agoApache-2.0A57Claude Code
controlflow-ui-implementerSmithbox-ai/ControlFlowAgent144mo agononeA33Claude Code, Cursor
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code