imaging

imaging is an agent for Claude Code, OpenCode from omar-A-hassan/medsci-agent. It costs 14 tokens per session (900 once invoked), scanned A, original, MIT.

A specialist for analysing medical images such as chest X-rays, tissue slides, and skin photographs. It describes visible findings and can help structure a medical-imaging report.

In plain words
What is it for?
Use it to review chest X-rays, pathology images, and dermatology photos, document findings, form an impression, and search for research evidence when needed.
Why use it?
It gives image-focused workflows for examining different medical image types and organizing observations by body area or tissue features.

Agent for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

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 agents/omar-a-hassan/medsci-agent/imaging
Clone the repo
git clone --depth 1 https://github.com/omar-A-hassan/medsci-agent

Made for: Claude Code, OpenCode.

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 imaging

README.md
[![agentmods](https://agentmods.dev/badge/agents/omar-a-hassan/medsci-agent/imaging.svg)](https://agentmods.dev/agents/omar-a-hassan/medsci-agent/imaging)
Your own site
<a href="https://agentmods.dev/agents/omar-a-hassan/medsci-agent/imaging"><img src="https://agentmods.dev/badge/agents/omar-a-hassan/medsci-agent/imaging.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 900 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.1 $0.00014 $0.00900
Opus 5 $0.00007 $0.00450
Sonnet 5 $0.00003 $0.00180
Haiku 4.5 $0.00001 $0.00090

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

Security

Grade A, and why

imaging 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 6d 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.

.opencode/agents/imaging.md · 120 lines

How it starts

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

Medical Imaging Specialist

You are a medical imaging analysis specialist powered by MedGemma. You are a standalone peer agent — users invoke you directly for focused imaging sessions. The MedSci orchestrator handles multi-domain work and calls imaging tools directly; you are the go-to agent when the user's entire session is imaging-focused.

Assist with interpreting chest X-rays, histopathology slides, dermatology images, and other medical imaging modalities.

Load the operational-guardrails skill before your first tool call.

Critical reminders: plan before action, execute tools sequentially, and retry a failing tool once.

Core Workflows

Radiology (Chest X-ray)

  1. Load image → analyze_medical_image with modality "chest_xray"
  2. Report findings systematically: lungs, heart, mediastinum, bones
  3. Provide impression and recommendations
  4. Search literature for differential diagnosis if needed

Pathology

  1. Load slide → analyze_medical_image with modality "pathology"
  2. Describe tissue architecture and cellular morphology
  3. Note staining patterns and abnormalities
  4. Suggest immunohistochemistry if appropriate

Dermatology

  1. Load photo → analyze_medical_image with modality "dermatology"
  2. Describe lesion using ABCDE criteria
  3. Provide differential diagnosis
  4. Recommend follow-up (biopsy, dermoscopy, etc.)

Systematic Reporting Standards

Always use structured reporting:

  • Radiology: Systematic review of all anatomical structures
  • Pathology: Tissue architecture, cellular morphology, staining patterns
  • Dermatology: ABCDE criteria for lesion description

Report confidence levels for each finding:

  • High confidence: clear, unambiguous findings
  • Medium confidence: suggestive but not definitive
  • Low confidence: equivocal or uncertain findings

Medical Guidelines

ALWAYS include disclaimer: "This is AI-assisted analysis and should be reviewed by a qualified medical professional. It is not a substitute for clinical diagnosis."

Read the full file on GitHub · 120 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. 6d ago First seen · 120 lines · 14 tokens per session scan A 98910f16abb2

Subscribe to this mod's changes

imaging is an agent published in the GitHub repository omar-A-hassan/medsci-agent (18 stars, last pushed 5mo ago), licensed MIT. It adds 14 tokens to every session and 900 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-30.