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.
/plugin marketplace add YeonwooSung/my-claude-code-mods /plugin install agent-profiler@my-claude-code-mods
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

What it hooks into
session.startWhen a session startsturn.startWhen Claude starts a turnturn.completeWhen a turn endsturn.stepAt each step of a turntool.callAround a tool call, where it can hold onetool.checkA Claude Code eventclassic.PostToolUseA Claude Code eventclassic.PostToolUseFailureA Claude Code eventclassic.SubagentStartA Claude Code eventclassic.SubagentStopA Claude Code eventsession.endWhen a session endscommand.runWhen you run its slash command/profile/profile-pane/profile-exportui.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
- Folder
- agent-profiler
- Version
- 0.1.0
- Repo stars
- 909
- Last change
- 2026-10-13
- Language
- TypeScript
- Files
- 29