triage

triage is a command for Claude Code from tajmahal226/compound-engineering-plugin. It costs 13 tokens per session (1,964 once invoked), scanned A, original, MIT.

A command for reviewing findings one at a time and deciding which should become tracked items in a CLI TODO system.

In plain words
What is it for?
Use it to triage pending TODOs or review and audit findings by severity, category, location, proposed solution, and estimated effort.
Why use it?
It separates discussion and prioritization from coding, making it easier to decide which security, performance, architecture, bug, or feature findings need follow-up.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: names the TodoWrite tool.

Part of the compound-engineering plugin — 20 skills, 17 commands, 1 MCP server shipped together

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 commands/tajmahal226/compound-engineering-plugin/triage
Clone the repo
git clone --depth 1 https://github.com/tajmahal226/compound-engineering-plugin

Made for: Claude Code.

Or install compound-engineering, the plugin that ships this one along with the rest of its 20 skills, 17 commands, 1 MCP server.

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 triage

README.md
[![agentmods](https://agentmods.dev/badge/commands/tajmahal226/compound-engineering-plugin/triage.svg)](https://agentmods.dev/commands/tajmahal226/compound-engineering-plugin/triage)
Your own site
<a href="https://agentmods.dev/commands/tajmahal226/compound-engineering-plugin/triage"><img src="https://agentmods.dev/badge/commands/tajmahal226/compound-engineering-plugin/triage.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,964 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.00013 $0.01964
Opus 5 $0.00006 $0.00982
Sonnet 5 $0.00003 $0.00393
Haiku 4.5 $0.00001 $0.00196

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

Security

Grade A, and why

triage 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • triage — 91% identical, 8 lines differ
plugins/compound-engineering/commands/triage.md · 312 lines

How it starts

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

  • First set the /model to Haiku
  • Then read all pending todos in the todos/ directory

Present all findings, decisions, or issues here one by one for triage. The goal is to go through each item and decide whether to add it to the CLI todo system.

IMPORTANT: DO NOT CODE ANYTHING DURING TRIAGE!

This command is for:

  • Triaging code review findings
  • Processing security audit results
  • Reviewing performance analysis
  • Handling any other categorized findings that need tracking

Workflow

Step 1: Present Each Finding

For each finding, present in this format:

---
Issue #X: [Brief Title]

Severity: 🔴 P1 (CRITICAL) / 🟡 P2 (IMPORTANT) / 🔵 P3 (NICE-TO-HAVE)

Category: [Security/Performance/Architecture/Bug/Feature/etc.]

Description:
[Detailed explanation of the issue or improvement]

Location: [file_path:line_number]

Problem Scenario:
[Step by step what's wrong or could happen]

Proposed Solution:
[How to fix it]

Estimated Effort: [Small (< 2 hours) / Medium (2-8 hours) / Large (> 8 hours)]

---
Do you want to add this to the todo list?
1. yes - create todo file
2. next - skip this item
3. custom - modify before creating

Step 2: Handle User Decision

When user says "yes":

  1. Update existing todo file (if it exists) or Create new filename:

    If todo already exists (from code review):

    • Rename file from {id}-pending-{priority}-{desc}.md{id}-ready-{priority}-{desc}.md
    • Update YAML frontmatter: status: pendingstatus: ready
    • Keep issue_id, priority, and description unchanged

    If creating new todo:

    {next_id}-ready-{priority}-{brief-description}.md
    

    Priority mapping:

    • 🔴 P1 (CRITICAL) → p1
    • 🟡 P2 (IMPORTANT) → p2
    • 🔵 P3 (NICE-TO-HAVE) → p3

    Example: 042-ready-p1-transaction-boundaries.md

  2. Update YAML frontmatter:

    ---
    status: ready # IMPORTANT: Change from "pending" to "ready"
    priority: p1 # or p2, p3 based on severity
    issue_id: "042"
    tags: [category, relevant-tags]
    dependencies: []
    ---
    

Read the full file on GitHub · 312 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 · 312 lines · 13 tokens per session scan A 2faff3f23ead

Subscribe to this mod's changes

triage is a command published in the GitHub repository tajmahal226/compound-engineering-plugin (4 stars, last pushed 6mo ago), licensed MIT. It adds 13 tokens to every session and 1,964 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-31.