@cad0p/pi-timestamps

Inline UTC timestamps for every message in pi coding agent — dim-styled, LLM-safe, zero-config

Packages

Package details

extension

Install @cad0p/pi-timestamps from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@cad0p/pi-timestamps
Package
@cad0p/pi-timestamps
Version
0.1.4
Published
Jun 6, 2026
Downloads
not available
Author
cad0p
License
MIT
Types
extension
Size
6.5 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "extensions/message-timestamps"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-timestamps

Inline UTC timestamps for every message in pi coding agent.

user message  2026-06-05T21:44:02Z
assistant response  2026-06-05T21:44:02Z

Features

  • Inline — timestamps appended directly to each message
  • UTC ISO format2026-06-05T21:44:02Z
  • Dim-styled — uses ANSI dim (\x1b[2m) for visual parity with thinking blocks; works with any theme
  • LLM-safe — timestamps are stripped at the context event, so the model never sees them
  • Zero config — install and it works
  • No dependencies — pure TypeScript, no runtime deps

Install

pi install npm:@cad0p/pi-timestamps

Or try without installing:

pi -e npm:@cad0p/pi-timestamps

How it works

  1. At message_end, appends 2026-06-05T21:44:02Z (dimmed) to user/assistant messages
  2. At context event (before LLM call), strips the timestamp from a deep copy — the session retains timestamps for history/replay; the LLM sees clean messages

Visual style

Timestamps render with terminal's native "dim" attribute (SGR 2), matching pi's thinking block style. No hardcoded colors — works with light/dark themes automatically.

License

MIT