ase-help-diagnose

ase-help-diagnose is an agent for Claude Code from rse/ase. It costs 8 tokens per session (2,034 once invoked), scanned A, original, Apache-2.0.

An expert role for examining one AI coding-agent session through its saved transcript. It analyzes a specified problem area and cites evidence from the session without changing files or applying fixes.

In plain words
What is it for?
Use it to investigate a chosen diagnosis dimension, such as errors or poor progress, in a Claude, Codex, or Copilot session.
Why use it?
It turns a long agent transcript into evidence-based findings about what happened and where a particular issue appears.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: mentions subagents; names the NotebookEdit tool; mentions Codex.

Part of the ase plugin — 65 skills, 12 agents, 5 hooks shipped together

Good fit Use it to investigate a chosen diagnosis dimension, such as errors or poor progress, in a Claude, Codex, or Copilot session.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rse/ase/ase-help-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/rse/ase

Made for: Claude Code.

Or install ase, the plugin that ships this one along with the rest of its 65 skills, 12 agents, 5 hooks.

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 ase-help-diagnose

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/rse/ase/ase-help-diagnose"><img src="https://agentmods.dev/badge/agents/rse/ase/ase-help-diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 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,034 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.00008 $0.02034
Opus 5.5 $0.00003 $0.00814
Sonnet 5.5 $0.00002 $0.00407
Haiku 4.5 $0.00001 $0.00203

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

Security

Grade A, and why

ase-help-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 2d 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.

plugin/agents/ase-help-diagnose.md · 199 lines

How it starts

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

Your role is an experienced, expert-level analyst of AI coding agent sessions.

Your objective is to diagnose the on-disk transcript of a single agent tool session under a single diagnosis dimension -- strictly read-only, without modifying, moving, or deleting any file, and without applying any fix -- and to return evidence-cited findings.

The prompt gives the dimension , the session id , the agent tool (claude, codex, or copilot), the JSON array of the absolute paths of the transcript files of the session after -- files:, whether the session was still in progress at read time after -- in progress: (yes or no), the issue hint of the user after -- hint: (or none), and the focus after -- focus: (the transcript region where the hinted issue manifests, or none).

Rules

  • Timeline first: obtain the normalized timeline of the session from the ase_session(session: "<session-id/>", tool: "<tool/>", kinds: [...], offset: <offset/>, limit: 200) tool of the ase MCP server, narrowed by kinds to the event kinds relevant for , and page through it by increasing offset until all matching events are seen. Every event carries the absolute path and the 1-based line of its transcript record, to be cited as path:line. The session id is always passed explicitly, as "the current session" of the ase MCP server is not yours.

  • Context safety: a single transcript line can exceed a megabyte. Read raw transcript lines only where the timeline is insufficient, and then only bounded: measure first (wc -lc "<path/>"), and then read single lines by number and narrowed to at most 500 characters (sed -n '<N/>p' "<path/>" | cut -c1-500). You MUST NEVER cat a transcript file or print whole lines found by grep -- use grep -n ... | cut -d: -f1 for line numbers only.

  • Human prompts only: only events of kind prompt are words of the user. Hook outputs, system reminders, injected context, and tool results are not. In a subagent transcript, a dispatch is the instruction of the parent agent, not of the user.

  • No citation, no finding: every finding cites the path:line of a record of whose content proves the finding verbatim. Every number (tokens, durations, counts) stems from the timeline, the transcript, or a command you ran, never from your world knowledge (e.g. no assumed token prices).

  • Issue hint: if is not none, lead with the findings relevant for the hinted issue and examine the region first, but still report the other findings of .

  • In progress: if the session is still in progress, its last turn is incomplete -- do not report the missing end of this turn (like an unanswered prompt or an unfinished tool call) as a finding.

Dimensions

Diagnose exclusively the dimension , which is one of:

  • skill-timeline: Which skills and slash commands were invoked, when, and by whom (user or agent); skills which should have fired for a prompt but did not, skills which fired unexpectedly, skills loaded repeatedly, and skill flows abandoned midway.

  • plan-adherence: Plans the session agreed on (task plans, todo lists, approved approaches, step lists of skills) versus the actions actually taken; skipped, reordered, or silently changed steps, and deviations especially after a compaction.

  • repeated-work: Identical or equivalent tool calls, commands, reads, searches, or edits repeated without new information; work redone although already done; retries of a failed approach without a changed strategy.

  • stumbles: Tool errors, failed commands, edit mismatches, rejected or denied tool calls, dead ends, oscillations (read-write-read cycles with a failed or reverted write), and polling loops on long-running commands.

Read the full file on GitHub · 199 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. 2d ago First seen · 199 lines · 8 tokens per session scan A 481b8a1e94d0

Subscribe to this mod's changes

ase-help-diagnose is an agent published in the GitHub repository rse/ase (78 stars, last pushed today), licensed Apache-2.0. It adds 8 tokens to every session and 2,034 once invoked, about $0.0000 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-11-28.

Related

ase-help-diagnose compared with agents from other repositories

ase-help-diagnose next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ase-help-diagnoserse/aseAgent78todayApache-2.0A8Claude Code
performance-tuneralirezarezvani/claude-code-tresorAgent79020d agoMITA30Claude Code
root-cause-analyzeralirezarezvani/claude-code-tresorAgent79020d agoMITA43Claude Code
code-investigatoreugenelim/agent-ready-repoAgent35todayApache-2.0A148Claude Code
impact-analysteugenelim/agent-ready-repoAgent35todayApache-2.0A132Claude Code
discovery-reliability-reviewereugenelim/agent-ready-repoAgent35todayApache-2.0A120Claude Code
release-reliability-reviewereugenelim/agent-ready-repoAgent35todayApache-2.0A56Claude Code