agent-triage: Instructions file for Claude Code

CLAUDE.md

agent-triage CLAUDE.md is an instructions file for Claude Code 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 for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is converra/agent-triage's own configuration. It tells Claude Code how to work on agent-triage itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-triage configures →

Reuse

Borrowing it

Nothing to install: this file belongs to converra/agent-triage. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/converra/agent-triage/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/converra/agent-triage

Made for: Claude Code.

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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00853 $0.00853
Opus 5.5 $0.00341 $0.00341
Sonnet 5.5 $0.00171 $0.00171
Haiku 4.5 $0.00085 $0.00085

Measured 2mo ago against content hash 8810e7db2da7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.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. 2mo 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 23d ago), licensed MIT. It adds 853 tokens to every session, about $0.0034 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-31.

Related

agent-triage CLAUDE.md compared with instructions from other repositories

agent-triage CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-triage CLAUDE.mdconverra/agent-triageInstructions file423d agoMITA853Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode