← Catalog

@spences10/pi-turn-timer

Live turn timing and persisted completion durations for Pi

Package

Install

Install with PiG

pig install npm:@spences10/pi-turn-timer

Install with Pi

pi install npm:@spences10/pi-turn-timer
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/spences10/my-pi/main/assets/pi-package-preview.png",
  "extensions": [
    "./dist/index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.

@spences10/pi-turn-timer

built with Vite+ tested with Vitest npm version license

my-pi package preview

Turn timing

Shows live elapsed time through Pi's existing working indicator and persists completion durations as session entries. No model calls are made.

The timer starts at agent_start and finishes at agent_settled, spanning retries, compaction, and queued continuations rather than resetting at each low-level run. Aborted interactions display “Stopped” rather than “Completed”. Reload and session shutdown clear the timer and restore Pi's working message. Incomplete work is not attributed to the next session.

Interactive mode shows the live clock. JSON, print, and RPC modes record durations without changing terminal UI. Existing turn-timer entries remain renderable after resuming a session.

Bundled into my-pi as turn-timer. Disable it with /extensions disable turn-timer; changes apply on reload. The working-message slot is shared with other extensions, so avoid enabling another extension that owns that same slot.

Install

pi install npm:@spences10/pi-turn-timer

Development

Package scripts build transitive workspace dependencies first, then run local tools through Vite+ with vp exec.

pnpm --filter @spences10/pi-turn-timer run check
pnpm --filter @spences10/pi-turn-timer run test
pnpm --filter @spences10/pi-turn-timer run build

License

MIT