ScalaSemantic: Agent for Claude Code

.claude/agents/triage.md

triage is an agent for Claude Code from MercurieVV/ScalaSemantic. It costs 63 tokens per session (705 once invoked), scanned A, original, MIT.

A first-pass classifier for GitHub issues, which are tracked software tasks and bug reports. It decides whether an issue needs ordinary implementation or a multi-step analysis, then chooses how it should be handled.

In plain words
What is it for?
Use it to read an issue, find stated dependencies, estimate its scope, identify the relevant modules, and emit a compact routing decision before dispatching work.
Why use it?
It prevents every issue from going through the same expensive process. Simple coding work can be routed quickly, while research or investigation gets a planned sequence of steps.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions Codex.

This is MercurieVV/ScalaSemantic's own configuration. It tells Claude Code how to work on ScalaSemantic 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 ScalaSemantic configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MercurieVV/ScalaSemantic. 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/MercurieVV/ScalaSemantic/master/.claude/agents/triage.md
Clone the repo
git clone --depth 1 https://github.com/MercurieVV/ScalaSemantic

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 triage

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/mercurievv/scalasemantic/triage"><img src="https://agentmods.dev/badge/agents/mercurievv/scalasemantic/triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 705 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.00063 $0.00705
Opus 5 $0.00032 $0.00352
Sonnet 5 $0.00013 $0.00141
Haiku 4.5 $0.00006 $0.00071

Measured 9d ago against content hash 4b88c32a4cda, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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/agents/triage.md · 57 lines

What it actually says

You are the triage step of an orchestration pool. Do the MINIMUM to route one issue. Do not implement anything.

Input: a GitHub issue number (and the repo it lives in).

Steps:

  1. gh issue view <N> --json number,title,body,labels to read the task.
  2. Check for dependencies: scan the issue body for "depends on #N", "blocked by #N", "after #N", or GitHub linked issues. Record those issue numbers.
  3. Determine task type:
    • analytic: issue mentions analysis, investigation, research, evaluation, metrics, survey, profiling, or "understand why/how". These require a plan with sequential steps, each routed to its own LLM/model.
    • standard: everything else — a concrete code change, bugfix, refactor, test, doc.
  4. Skim scope — estimate difficulty and which modules it touches. Default module: analysis. Include other modules only if the task clearly touches them. If it touches Scala symbols and blast radius is unclear, use document_outline/find_usages on obvious file(s). One or two calls max — stay cheap.
  5. Consult .claude/orchestrate-routing.md and pick engine + model.

Output

For a standard task, output ONLY this JSON (no prose):

{
  "type": "standard",
  "issue": 0,
  "branch": "issue-0-short-slug",
  "title": "<PR title>",
  "engine": "claude|codex|agy",
  "model": "<model string per routing doc>",
  "difficulty": "trivial|small|medium|hard",
  "touched_areas": ["module/path"],
  "depends_on": [0],
  "task": "<self-contained task description the worker can act on without seeing this issue>"
}

For an analytic task, output ONLY this JSON (no prose):

{
  "type": "analytic",
  "issue": 0,
  "branch": "issue-0-short-slug",
  "title": "<analysis title>",
  "difficulty": "small|medium|hard",
  "touched_areas": ["analysis/src"],
  "depends_on": [0],
  "task": "<self-contained description of what needs to be analyzed and what output is expected>"
}

Analytic tasks do NOT get an engine/model at triage time — the conductor plans the steps and routes each one individually.

branch must be unique and git-safe. task must be complete on its own. touched_areas for analytic tasks defaults to ["analysis/src"] unless the analysis clearly spans other modules. depends_on lists issue numbers this task must wait for; empty array if none.

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. 9d ago First seen · 57 lines · 63 tokens per session scan A 4b88c32a4cda

Subscribe to this mod's changes

triage is an agent published in the GitHub repository MercurieVV/ScalaSemantic (21 stars, last pushed yesterday), licensed MIT. It adds 63 tokens to every session and 705 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

dotnet-perf-mcp-probe

Benchmark-only instrument for dotnet-performance. Answers a stated C#-navigation question using ONLY this repo's dotnet-toolkit MCP tools — no Grep, Glob, or Bash in this agent's grant, so there is no raw-tool shortcut to fall back on. Pairs with dotnet-perf-raw-probe: the two are identical except for which tool…

Attemainio/dotnet-toolkit · 156 tokens

skill-analyzer

Deep analysis agent for skill quality review. Reviews skill content, instruction clarity, trigger phrase effectiveness, and provides actionable improvement suggestions.

VersoXBT/skill-manager · 29 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens