npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vanillagreen/pi-codex-minimal-tools

v2.0.2

Published

Minimal Codex/OpenAI native tools for Pi: Codex image_generation, view_image, apply_patch

Readme

@vanillagreen/pi-codex-minimal-tools

Image and patch tools for Pi sessions using OpenAI or Codex models. It adds image generation, local image viewing and patch editing.

apply_patch side-by-side diff rendering

image_generation lifecycle

Install

  • npm: pi install npm:@vanillagreen/pi-codex-minimal-tools.
  • kendex: add the declaration below to the project's kendex.toml, or to ~/.config/kendex/kendex.toml for user scope. Run kendex update-pi.
[pi-extensions."@vanillagreen/pi-codex-minimal-tools"]
source = "kendex"

Restart Pi after installation. Use kendex update-pi --check to preview the installation.

Features

  • Generate or edit images and display the saved output.
  • Run image generation in the background.
  • Show a local image to the model.
  • Apply patches that add, change, move or delete files.
  • Inspect tool availability for the current model.

How it works

The extension checks the selected model and enables supported tools. An image request goes to the configured provider and saves the result in the output directory. An image-view request reads a local file into the model context. A patch request updates workspace files and reports the changes.

Settings

The settings editor writes project values to .pi/settings.json. The default user file is ~/.pi/agent/settings.json. PI_CODING_AGENT_DIR changes the user directory. Package values are stored under kendex.extensionManager.config["@vanillagreen/pi-codex-minimal-tools"].

Open /extensions:settings; settings appear under the Codex Minimal Tools tab. Project settings in .pi/settings.json apply only after Pi marks the workspace trusted.

  • enabled, autoEnable: the package and whether its tools join the active set on their own.
  • nativeProviderTools: the Codex provider shim and the native image_generation rewrite.
  • imageGeneration, imageOutputDir, imageModel, directImageApiFallback: image generation, where images land (relative to the workspace), and the direct Images API fallback, which needs OPENAI_API_KEY.
  • viewImage, viewImageWorkspaceOnly: the view_image tool and whether it may read outside the workspace.
  • applyPatchEnabled, strictPatchMode, allowAbsolutePatchPaths, deferApplyPatchRendering: the patch tool; strict mode removes edit and write from the active set so every edit goes through apply_patch.
  • glyphStyle: Unicode or ASCII symbols; pi-tool-renderer's global override wins when set.

Maintainer notes are in DEVELOPMENT.md.