gearbox

Reviewed at commit 867b81f

KOZMOS Gearbox: tool analytics for the session. Per tool its calls, errors and error rate, average, p95 and max duration and total time as a sorted bar chart…

Made by
KOZMOS
What we checked

Adds a /gearbox sidebar with tool analytics for the session: calls, errors, average, p95 and max time per tool, the five slowest calls, calls per minute and main loop against subagents. It times each tool call and reads only the tool name and a short description (command, file name, URL). No network calls, no programs run.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (resets counters, registers /gearbox, optional autoOpen via userConfig), command.run for /gearbox (toggle pane), agent.spawn (remembers subagent type), tool.call (times the call, counts errors and denials, always returns the unchanged result from next(); a finally block updates the tally) and ui.render for its own Pane with a sort button. Runtime calls: $.clock.now, $.ui.panes/open/close/resolve, $.command.register and plugin state atoms via read/update (snapshot and chosen sort). The slowest-calls list shows toolDetail(): Bash description or command clipped to 60 characters, file basename, pattern, URL or query. Nothing leaves the process; no fetch, process, fs or env access. Per tool at most the last 1000 durations are kept in memory. The shared hooks/lib/kz.ts is a pure helper kit. hooks/lib/probe.ts (not included in the bundle) is not imported by this mod. npm dependencies: none.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events

KOZMOS Gearbox: tool analytics for the session. Per tool its calls, errors and error rate, average, p95 and max duration and total time as a sorted bar chart, the five slowest calls, calls per minute, and the main loop against subagents. /gearbox toggles the sidebar.

Made this mod? Add a badge to your README

modsforClaude badge for gearbox

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/gearbox.svg)](https://modsforclaude.com/mods/gearbox/)

← All mods