pre-aggregate-profiling-data-for-agents

pre-aggregate-profiling-data-for-agents is an agent for coding agents from runnithan/claudex-setup. It costs 0 tokens per session (299 once invoked), scanned A, original, MIT.

A guidance pattern for giving a coding agent summarized profiler data, such as how often functions run and how long they take. A profiler records a program’s runtime behavior to help find slow code.

In plain words
What is it for?
Use it when connecting performance or monitoring data to an agent. It helps present CPU shares, frequency counts, percentile durations, and the specific slow code path in a readable summary.
Why use it?
It avoids making the agent calculate statistics from large, raw profiling outputs or guess which code is actually slow.

Agent

Part of the claudex-setup plugin — 3 skills, 21 commands, 22 agents 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 agents/runnithan/claudex-setup/pre-aggregate-profiling-data-for-agents
Clone the repo
git clone --depth 1 https://github.com/runnithan/claudex-setup

Or install claudex-setup, the plugin that ships this one along with the rest of its 3 skills, 21 commands, 22 agents.

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 pre-aggregate-profiling-data-for-agents

README.md
[![agentmods](https://agentmods.dev/badge/agents/runnithan/claudex-setup/pre-aggregate-profiling-data-for-agents.svg)](https://agentmods.dev/agents/runnithan/claudex-setup/pre-aggregate-profiling-data-for-agents)
Your own site
<a href="https://agentmods.dev/agents/runnithan/claudex-setup/pre-aggregate-profiling-data-for-agents"><img src="https://agentmods.dev/badge/agents/runnithan/claudex-setup/pre-aggregate-profiling-data-for-agents.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 299 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 $0.00000 $0.00299
Opus 5 $0.00000 $0.00150
Sonnet 5 $0.00000 $0.00060
Haiku 4.5 $0.00000 $0.00030

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

Security

Grade A, and why

pre-aggregate-profiling-data-for-agents 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 4d 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.

lessons/agents/pre-aggregate-profiling-data-for-agents.md · 29 lines

What it actually says

Pre-Aggregate Profiling/Runtime Data Before Handing It to an Agent

TL;DR

When you want a coding agent to fix slow code, don't dump raw profiler output, give it a single tool that aggregates samples (frequencies, percentiles) into an analyzed view, because LLMs are bad at doing those computations themselves.

Why it matters

Agents see the caller code but not the runtime characteristics of callees, so they guess and pick the wrong hotspot. Raw flamegraph output forces the model to do statistical aggregation it's poorly suited for; a pre-analyzed view (e.g. '~22% CPU in this function') lets it correctly localize the bottleneck.

How to apply

When wiring performance/observability tooling for an agent: expose at most a handful of tools (ideally one); have the tool itself compute frequencies and percentile durations and present a consumable summary, not raw samples; supply runtime data alongside the source; and be specific about which path is slow.

[[cli-tools-over-mcp-for-tokens]], [[design-cli-help-for-agents]]

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. 4d ago First seen · 29 lines · 0 tokens per session scan A 8dc9d85b12b1

Subscribe to this mod's changes

pre-aggregate-profiling-data-for-agents is an agent published in the GitHub repository runnithan/claudex-setup (1 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 299 tokens. 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

Other agents, from other repositories

engram-assessor

Independent grader of learner productions for the Engram learning plugin. MUST BE USED for /learn verification and /review audits. Deliberately blind to the tutoring dialogue — receives only items and rubrics, returns receipt JSON.

nagisanzenin/engram · 49 tokens

engram-curriculum-architect

Decomposes any topic into a first-principles concept DAG for the Engram learning plugin. Use when starting a new learning topic or restructuring one. Returns strict JSON for engram.py add-topic.

nagisanzenin/engram · 50 tokens

information-architect

Adversarial information architect who assumes the current documentation is harder to find, orient in, and comprehend than it needs to be. Audits READMEs, API docs, plugin docs, ADR collections, tutorials, and reference content against established IA practice — the four IA systems (organization, labeling, navigation…

testdouble/han · 193 tokens

engram-artifact-smith

Builds interactive HTML explorables for Engram threshold concepts under the binding Explorable Contract. Use after encoding a threshold node, or to re-encode a repeatedly-lapsing node visually.

nagisanzenin/engram · 45 tokens

edtech-reviewer

Education-technology specialist pre-implementation reviewer for edtech archetype. Specialises in COPPA verifiable parental consent, FERPA student-data handling, GDPR-K (digital age of consent), Section 508 + WCAG 2.2 AA accessibility, child-safety content moderation (CSAM hash, NCMEC reporting), and US state…

avelikiy/great_cto · 112 tokens

knowledge-extractor

Deep-analysis agent spawned by /crystallize. Reads session logs and lessons.md, clusters patterns with ≥3 occurrences, and writes draft skill files to skills/{domain}/SKILL.md.

avelikiy/great_cto · 42 tokens