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

@xl0/pi-lovely-codex

v0.2.0

Published

Pi extension for GPT fast mode and Codex-style apply_patch

Readme

@xl0/pi-lovely-codex

GPT "Fast mode" control and Codex-style apply_patch tool.

Install

pi install npm:@xl0/pi-lovely-codex

Use without install:

pi -e npm:@xl0/pi-lovely-codex

/lovely-codex

Lovely codex settings

GPT fast mode 🏎️

  • default -> omit service_tier - default mode
  • fast -> send service_tier: "priority" for openai and openai-codex - request fast mode on OpenAI API and Codex sub.
  • fast-codex -> send priority only for openai-codex - request fast mode on Codex sub only.

Applies only to provider openai or openai-codex, model id starting with gpt-. Fast mode shows 🏎️ in status line.

apply_patch tool

GPT models have been relentlessly fine-tuned to use the apply_patch tool in Codex. They can use the default Pi edit tool of course, but often make silly mistakes that might be just muscle memory from being trained on apply_patch for the edit task.

This extension adds the tool GPT models crave so much.

Note: Current apply_patch implementation shells out to codex --codex-run-as-apply-patch. You need to have codex installed and available on PATH.

add apply_patch controls whether Lovely Codex enables the apply_patch tool:

  • on -> always add the apply_patch tool.
  • off -> don't add the apply_patch tool.
  • gpt-only -> enable apply_patch only when current model id starts with gpt- or contains /gpt-.

Optionally, you can disable the now redundant built-in tools while apply_patch is active:

  • disable write
  • disable edit

When apply_patch becomes inactive, write/edit are restored only if they were active at session start.

Default effective values: add apply_patch = gpt-only, disable write = off, disable edit = off.

Config scopes:

  • User: ~/.pi/agent/xl0-pi-lovely-codex.json
  • Workspace: <cwd>/.pi/xl0-pi-lovely-codex.json

Workspace overrides User. All keys are optional.

Related projects

| | | | --- | --- | | Pi Lovely Web | web_search, web_fetch, web_image tools | | Pi Lovely Dev Tools | interactive debugging helpers /tool, /show-sysprompt, /show-context, /llm-stats | | Pi Lovely IDE | IDE integration | | Pi Lovely Config | scoped config helpers for Pi extensions |


Like this work? Hire me