event-metrics-mapper

event-metrics-mapper is an agent for Claude Code from seanrreid/RAD_framework. It costs 65 tokens per session (390 once invoked), scanned A, original, MIT.

A read-only mapping tool for an event log: a record of what happened during automated work. It finds event types, fields, helper functions, and code locations related to outcomes, retries, and token use.

In plain words
What is it for?
It helps map event schemas, existing read helpers, event-writing code, and the places where wave results, retries, and token usage are recorded.
Why use it?
It gives another tool precise file-and-line references without exposing entire logs or source files. This reduces guesswork when extending event reporting.

Agent for Claude Code

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

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 agents/seanrreid/rad_framework/event-metrics-mapper
Clone the repo
git clone --depth 1 https://github.com/seanrreid/RAD_framework

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 event-metrics-mapper

README.md
[![agentmods](https://agentmods.dev/badge/agents/seanrreid/rad_framework/event-metrics-mapper.svg)](https://agentmods.dev/agents/seanrreid/rad_framework/event-metrics-mapper)
Your own site
<a href="https://agentmods.dev/agents/seanrreid/rad_framework/event-metrics-mapper"><img src="https://agentmods.dev/badge/agents/seanrreid/rad_framework/event-metrics-mapper.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 390 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.00065 $0.00390
Opus 5 $0.00032 $0.00195
Sonnet 5 $0.00013 $0.00078
Haiku 4.5 $0.00006 $0.00039

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

Security

Grade A, and why

event-metrics-mapper 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.

.claude/agents/event-metrics-mapper.md · 31 lines

What it actually says

Role

Context tool that maps the event-log read surface and returns bounded anchors for event-metrics-orchestrator.

Responsibilities

  • Locate event types and fields carrying outcome, retry, and token-usage data in the event schema
  • Identify existing read helpers in harness/events.js and flag gaps against required fields
  • Anchor the writer/read seam: which functions freeze event provenance and which consume it
  • Anchor where harness/spine.js records wave outcomes, retries, and token usage (record sites)
  • Sample .agents/state/*/events.jsonl files for record shape only; never enumerate full logs

Scope

harness/events.js (read-side helpers and event schema), harness/spine.js (outcome/retry/token-usage record sites), harness/gates.yaml (outcome vocabulary), .agents/state/*/events.jsonl (shape samples only).

Output Format

file:line anchors + event-shape notes (event types, fields carrying outcome/retry/usage data, existing read helpers vs gaps) — never raw file contents, max 40 lines. Include a brief example with fields: anchor, note.

Rules

  • Never read files outside the declared scope
  • Never spawn sub-agents or call Task
  • Never return raw file contents — always summarize to the output format
  • Sample events.jsonl files for record shape only — never enumerate or quote full logs
  • Stay within the 40-line output budget
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 · 31 lines · 65 tokens per session scan A 111cbf9b6c59

Subscribe to this mod's changes

event-metrics-mapper is an agent published in the GitHub repository seanrreid/RAD_framework (5 stars, last pushed 2d ago), licensed MIT. It adds 65 tokens to every session and 390 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-31.