[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
README.md

pi-current-time-context #

Hidden current local time context extension for pi.

The extension adds one hidden custom message before every agent turn:

<time>HH:MM</time>

Installation #

Install the extension into pi from the repository root:

pi install ./package/pi-plugin/current-time-context

Quick test #

Load the TypeScript entry point directly while developing:

pi -e ./package/pi-plugin/current-time-context/src/index.ts

A normal prompt then receives hidden context for the current local hour and minute.

Behavior #

The extension subscribes to pi's before_agent_start event. For each agent turn, it returns a hidden custom message with customType: "current-time-context".

display: false keeps the message out of the visible transcript UI. Pi still includes hidden custom messages in LLM context, so the model can use local wall-clock time.

Local wall-clock time is used because the agent answers in the user's active working context. The payload includes only hour and minute, with no seconds, date, or timezone. That keeps the context coarse and avoids unrelated temporal detail.

Validation #

Run package validation from the repository root:

mise run //package/pi-plugin/current-time-context:build
mise run //package/pi-plugin/current-time-context:test:unit
mise run //package/pi-plugin/current-time-context:lint
mise run //package/pi-plugin/current-time-context:verify:extension