How long and how many tool calls each turn took, charted.

How long and how many tool calls each turn took, charted.
Status: stub. Tested with Claude Code 2.1.287.
hooks/register.ts 15 lines1import type { Register } from 'claude-code'
2
3// STUB. Loads, validates, and answers /turn-meter with what it will become.
4// The shape it is heading for: turn.complete records; pane charts the last turns
5export const register: Register = on => {
6 on('session.start', async ($, e, next) => {
7 await $.command.register({ name: 'turn-meter', description: "How long and how many tool calls each turn took, charted." })
8 return next(e)
9 })
10
11 on('command.run', { command: 'turn-meter' }, async () => {
12 return { text: 'Not built yet. ' + "How long and how many tool calls each turn took, charted." }
13 })
14}
15