ClaudeCodeMod

All shelves / Mods / Usage

agent-profiler

By YeonwooSung

agent-profiler is a Claude Code usage mod by YeonwooSung.

Draws where a session's time goes, model wait against tools and subagents, in a status line and a live pane, and can write the session out as an OTLP trace.

Draws

Install

The marketplace name is my-claude-code-mods.

In Claude Code
/plugin marketplace add YeonwooSung/my-claude-code-mods
/plugin install agent-profiler@my-claude-code-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.0
Repo stars
909
Last change
2026-10-13

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Sees tool calls
  • Reaches the network or an outside service

Claude Code 2.1.287 or later (desktop 2.1.286). Earlier builds need CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1; the author says 2.1.287 and later ignore it. /profile-pane opens the live pane. The status line looks like model 61% - tools 28% - running: Bash npm test 14s. The author says a trace is written under ~/.claude/agent-profiler, and if otlpEndpoint is set each batch is POSTed there, for Jaeger or Grafana Tempo. The export can include prompts and Bash lines.

Demo

The agent-profiler section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • turn.stepAt each step of a turn
  • tool.callAround a tool call, where it can hold one
  • tool.checkA Claude Code event
  • classic.PostToolUseA Claude Code event
  • classic.PostToolUseFailureA Claude Code event
  • classic.SubagentStartA Claude Code event
  • classic.SubagentStopA Claude Code event
  • session.endWhen a session ends
  • command.runWhen you run its slash command/profile/profile-pane/profile-export
  • ui.renderDraws into the sessionPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
YeonwooSung
Category
Usage
Marketplace
my-claude-code-mods
Repo
YeonwooSung/my-claude-code-mods
Folder
agent-profiler
Version
0.1.0
Repo stars
909
Last change
2026-10-13
Language
TypeScript
Files
29

Other mods in Usage

claude-carbongwittebolleDraws the CO2 of each answer and a pane with a pixel molecule colored against your past sessions, plus this session's total under the prompt.dividendMint-SecurityDraws a tip above the prompt about the prompt cache, the context, or the plan limits, with a status line and a /dividend pane of the session's figures.caliber-jev-compactioncaliber-ai-orgReplaces /compact: Jev scores each tool call, drops the stale ones, and keeps the rest of the conversation word for word, then toasts what it kept.model-effort-bandYeonwooSungDraws a band above the prompt with the selected model and the effort of the latest main-conversation request.shuntpleaseaiDraws a band above the prompt with the shared pool's usage and reset times, or this session's rate limits when you are off shunt.optimaizrblendbunjakuHolds a commandDraws this turn's cost, the 5-hour window, and cache time above the prompt, and holds a command that failed twice unchanged.clawdmeterwelternDraws Clawd and the session, weekly, and context bars in a band above the prompt.ccswaperrhythmDraws your ccswap accounts and their 5-hour and 7-day usage, and switches from a button on the band.routeralexei-ledPicks a model and effort for each turn from a classifier, and draws the tier above the prompt.context-budgetmelodic-softwareHolds a commandDraws the session's context by category, in a pane or a band above the prompt, and asks before a settings file is written.extra-modsJhonatan-de-SouzaDraws a menu for Zen, themes, model and effort, and a status line of context, plan limits, and cache.jevNasrallah-ALHas Jev drop stale tool calls at compaction and keep the rest word for word, toasts what it kept, and adds slash commands for the jev CLI.
All 183 in Usage