agent-triage CLAUDE.md

agent-triage CLAUDE.md is an instructions file for coding agents from converra/agent-triage. It costs 853 tokens per session, scanned A, original, MIT.

Project instructions for agent-triage, a tool and library for finding why AI agents fail in production. It turns conversation records into a standard format, checks them against behavioural rules, diagnoses failures, and creates reports.

In plain words
What is it for?
Working on trace ingestion, rule extraction, compliance checks, failure diagnosis, recommendations, and self-contained HTML reports.
Why use it?
It gives agents the project’s data structures, processing stages, and development conventions, making changes less likely to break the diagnosis pipeline.

Instructions file

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 instructions/converra/agent-triage/claude-md
Clone the repo
git clone --depth 1 https://github.com/converra/agent-triage

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 agent-triage CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/converra/agent-triage/claude-md.svg)](https://agentmods.dev/instructions/converra/agent-triage/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/converra/agent-triage/claude-md"><img src="https://agentmods.dev/badge/instructions/converra/agent-triage/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 853 This file is loaded in full into every session.
When invoked 853 The same file — it is already loaded in full.
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 $0.00853 $0.00853
Opus 5 $0.00426 $0.00426
Sonnet 5 $0.00171 $0.00171
Haiku 4.5 $0.00085 $0.00085

Measured 5d ago against content hash 8810e7db2da7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-triage CLAUDE.md 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 5d 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.md · 80 lines

How it starts

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

agent-triage

CLI tool, MCP server, and Node.js library for diagnosing AI agents in production. Extracts behavioral policies from system prompts, evaluates traces against them, generates diagnostic reports.

Architecture

Traces (JSON/LangSmith/OTel)
  → Normalize to NormalizedConversation
  → Extract policies from system prompt (or use existing policies.json)
  → Evaluate: 12 metrics + policy compliance per conversation
  → Diagnose: root cause turn, cascade chain, blast radius, fix
  → Aggregate: failure patterns, recommendations
  → Report: self-contained HTML with inline CSS/JS

Core Types

  • NormalizedConversation — universal trace format, all connectors normalize to this (src/ingestion/types.ts)
  • Policy — extracted behavioral rule with id, name, description, category, complexity (src/policy/types.ts)
  • PolicyResult — per-conversation verdict (pass/fail/not_applicable) with evidence and failing turns (src/evaluation/types.ts)
  • Diagnosis — root cause analysis: turn, agent, summary, impact, cascade chain, fix, blast radius (src/evaluation/types.ts)
  • Report — final output: conversations, policies, metrics, failure patterns, recommendations (src/evaluation/types.ts)

Key Modules

  • src/llm/client.ts — unified LLM client (OpenAI + Anthropic), use createLlmClient()
  • src/llm/prompts.ts — all prompt templates, return structured JSON
  • src/llm/json.ts — safe JSON parsing for LLM responses (handles code fences, control chars, word-number coercion)
  • src/report/ — HTML report: generator.ts (entry), sections.ts (render functions), styles.ts (inline CSS/JS/icons)

Rules

ESM Imports

All imports use .js extensions even for .ts files. This is required by Node16 module resolution.

// Correct
import { foo } from "./bar.js";
// Wrong — will fail at runtime
import { foo } from "./bar";
import { foo } from "./bar.ts";

LLM Response Parsing

Never use raw JSON.parse() on LLM output. Always use safeJSONParse() from src/llm/json.ts.

Read the full file on GitHub · 80 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. 5d ago First seen · 80 lines · 853 tokens per session scan A 8810e7db2da7

Subscribe to this mod's changes

agent-triage CLAUDE.md is an instructions file published in the GitHub repository converra/agent-triage (4 stars, last pushed 5mo ago), licensed MIT. It adds 853 tokens to every session, about $0.0043 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.