pi-everyday

Small, additive conveniences for everyday Pi use.

Packages

Package details

extensionskillprompt

Install pi-everyday from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-everyday
Package
pi-everyday
Version
0.2.0
Published
Sep 6, 2026
Downloads
501/mo · 173/wk
Author
wenchenpku
License
MIT
Types
extension, skill, prompt
Size
55.8 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/index.ts"
  ],
  "skills": [
    "./skills/codex-image-gen"
  ],
  "prompts": [
    "./prompts"
  ]
}

Security note

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

README

pi-everyday

Small, additive conveniences for Pi:

  • Show remaining OpenAI Codex subscription usage.
  • Keep old images out of future model requests without changing session history.
  • Turn existing local paths in assistant output into Path Links.
  • Generate one audited image through Codex's built-in image_gen tool.
  • Run focused code reviews in a fresh Pi process with /review.

This package is primarily maintained for personal use. Public use is welcome, but maintenance and compatibility are best effort.

Quick start

Install globally:

pi install npm:pi-everyday

Start Pi normally. The extensions load automatically.

To try the package for one session without installing it:

pi -e npm:pi-everyday

Pi packages execute with the same system access as Pi. Review the source before installing packages you do not trust.

Features

OpenAI usage status

When Pi has an openai-codex OAuth login, a compact status shows the remaining primary and secondary subscription windows. It refreshes after turns with a five-minute cooldown and does not replace Pi's footer.

If the internal OpenAI usage endpoint is unavailable or changes, the status stays silent.

Image context pruning

Images introduced during the current turn remain available to the model. On later turns, their image data is replaced only in the outbound model context with a short instruction to re-read the original path or request the image again.

Session history, text, tool calls, and saved JSONL remain unchanged. An old image without a reusable path must be attached again for further visual analysis.

Path Links

Path Rendering turns supported existing local paths into terminal links:

  • A file links to its containing directory.
  • A directory links to itself.
  • Inline-code paths, standalone path lines, and existing non-image Markdown links are supported.
  • Relative, ~/, and absolute paths work in normal assistant output.
  • Custom Markdown views receive absolute Path Links only because their working directory is unknown.

For example, Pi can render generic paths such as ./output/result.txt, ~/project, or /path/to/project as actions when they exist. Missing paths, URLs, Markdown images, and every fenced block remain unchanged.

Path Rendering affects display only. It does not alter session history or model context.

Codex image generation

Run the skill in Pi:

/skill:codex-image-gen

Provide a prompt and, optionally, one reference image and an output such as ./output/image.png. The skill runs the local codex command in a constrained Image Run, audits its Rollout, and transfers exactly one verified artifact.

There are no automatic retries, fallback providers, or additional image requests.

Code review prompt

Run the bundled prompt in Pi:

/review review the current branch

The prompt asks Pi to spawn a fresh pi --print process that reviews the requested code for bugs, security issues, and error-handling gaps. Add a provider or model to the request when you want the reviewer to use one explicitly. The main session reports the reviewer's findings without reading the code itself.

Privacy and security

  • The package includes no telemetry.
  • Usage status uses the active OpenAI OAuth token only for an in-memory request to the internal usage endpoint. It does not persist the token or account identifier.
  • Path Rendering checks whether candidate paths exist and whether they are files or directories. It does not read file contents or send paths to a remote service.
  • Image context pruning changes only the transient outbound model request. Saved session history is not rewritten.
  • An Image Run sends its prompt and optional reference image to OpenAI through the locally installed Codex CLI and consumes the account's image allowance.
  • Codex owns its login and keeps its normal session records under CODEX_HOME. The package does not read or store Codex credentials.
  • Image failure diagnostics and Codex records can contain prompts and local paths. Review them before sharing.

Default generated images and diagnostics use .scratch/, which should remain excluded from version control.

Compatibility and limitations

  • Pi 0.84.1 or newer.
  • Node.js 22.19.0 or newer.
  • macOS, Windows, and Linux.
  • Path Links require a terminal that supports OSC 8 hyperlinks and file:// URI handling.
  • Some terminals capture mouse input and require their hyperlink modifier while clicking.
  • Usage status depends on an undocumented OpenAI endpoint and can stop working without notice.
  • Image generation requires a compatible, authenticated local Codex CLI.
  • Generated images and diagnostics remain after package removal until deleted manually.

Automated checks run on macOS, Windows, and Linux. Pointer behavior can still vary by terminal.

Troubleshooting

Path Links render but do not open

Confirm that the terminal enables OSC 8 hyperlinks and routes file:// URIs to the operating system. Try the terminal's normal hyperlink modifier while clicking.

Usage status is absent

Confirm that Pi has an active openai-codex OAuth login. Endpoint failures intentionally remain silent.

Image generation fails before starting

Confirm that the local CLI is available and authenticated:

codex --version
codex login

Failure output includes the diagnostic location when one can be written. Diagnostics may contain prompts and local paths.

For reproducible defects, open the package's configured issue tracker:

npm bugs pi-everyday

Update and remove

Update this package:

pi update npm:pi-everyday

Update all installed Pi packages:

pi update --extensions

Remove it:

pi remove npm:pi-everyday

Removing the package stops its extensions and removes its bundled skill and prompt. It does not delete generated images or diagnostics.

Development

git clone <repository-url>
cd pi-everyday
npm install
npm run check
pi -e .

Do not commit credentials, generated images, diagnostics, local paths, or session logs.

Releases are published by GitHub Actions from matching v* tags through npm trusted publishing. Local npm tokens are not used for releases.

License

MIT