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

@kuraxii/pi-codex-bash

v1.0.0

Published

Codex-shaped shell tool and prompt adapter for pi coding agent

Downloads

306

Readme

pi-codex-bash

基于 @howaboua/pi-codex-bash 改造,原作者 IgorWarzocha

If you're expecting details about the code, you've come to the wrong place. Clone it and ask your Clanka.

Pi already runs GPT models. This extension gives Codex-like models Codex-shaped shell tools and prompt handling on top of Pi's native read, edit and write tools. Transport stays on Pi's built-in OpenAI Codex provider.

Install

# git 安装(推荐,dist/ 已预编译)
pi install git:github.com/kuraxii/pi-codex-bash

# npm 安装
pi install npm:@kuraxii/pi-codex-bash

Requires Pi 0.82 or newer and Node.js 22.19 or newer. Native helpers for macOS, Linux and Windows are bundled for x64 and arm64.

Open /codex after installation. Turn Enabled on to activate the shell adapter globally; heavy prompt overwrite remains opt-in.

Contents

What you get

  • Codex-shaped exec_command and write_stdin shell tools on top of Pi's native read, edit and write
  • foreground, background and interactive shell sessions with resumable output
  • compact Pi-native rendering, status and background-shell controls

Pi keeps its sessions, project context, skills, UI and model transport. The model gets the dialect it already knows.

Modes

| Mode | Behaviour | | --- | --- | | Structured adapter | Replaces Pi's bash tool with the shell adapter set while read, edit and write stay active. Enabled by the global Enabled switch. | | Off | The adapter stays inactive and the model keeps Pi's ordinary tools. |

Structured mode replaces only Pi's bash tool with the shell adapter tools; read, edit and write stay active. The model inspects files with read or the shell and edits with Pi's native edit / write.

The Enabled switch in /codex → General turns the adapter on for all models or off globally. It no longer inspects the active model or provider.

Settings

/codex opens the settings UI:

| Tab | Covers | | --- | --- | | General | Global enabled switch and heavy prompt overwrite | | Display | Tool rendering and background shells |

Open the display tab directly with /codex display.

Settings live in ~/.pi/agent/pi-codex-bash.json. Edit config opens the file for provider IDs, custom binaries and keybinds. Run /reload after changing keybinds by hand.

tools.customRustBinariesDir can override the bundled exec_bridge helper by filename. Build it on the target machine, put the binary in one directory, set that directory in the config, then run /reload.

The optional Heavy system prompt overwrite removes roughly 40% of Pi's known default scaffold while preserving additions from other extensions. It is off by default.

Models and providers

The adapter is model-agnostic: scope.enabled in the config is the single global switch. When on, every model gets the shell adapter tools and the Codex-shaped prompt; when off, everything stays on Pi's ordinary tools.

Renaming and migrating from Lite

The package was renamed from @howaboua/pi-codex-conversion. The legacy ~/.pi/agent/pi-codex-conversion.json is read once and migrated to pi-codex-bash.json automatically.

This is also a major change for users of the old canonical package. Legacy PATH mode and its package binaries are gone. Old PATH-mode settings normalize to the structured adapter. Use structured tools instead.

Troubleshooting

  • A helper cannot run on this system: build it from a checkout on the target machine, put it in tools.customRustBinariesDir, then run /reload. Do not replace system glibc for this.

For anything stranger, clone the repository and ask your Clanka:

git clone https://github.com/kuraxii/pi-codex-bash.git
cd pi-codex-bash
npm install
pi --no-extensions --no-skills -e .

See CHANGELOG.md.

License

MIT. Bundled and vendored third-party components retain their own licences and notices.