Skip to content
anthod0Public

About

A collection of extensions for the pi coding agent.

Resources

Stars

16 stars

Watchers

1 watching

Forks

Repository files navigation

pi-lab

A collection of pi coding agent extensions, packaged for pi install.

Packages

Package Description Version
@pi-lab/openai Image generation, ChatGPT Fast controls and native Web Search NPM Version
@pi-lab/permissions Permission system — enforce allow / deny / ask rules on tool calls NPM Version
@pi-lab/webfetch Fetch URLs as clean Markdown with X/Twitter and Reddit optimizations NPM Version
@pi-lab/websearch Search the web with Exa, Parallel, or TinyFish NPM Version
@pi-lab/env Load .env into pi sessions NPM Version
@pi-lab/input-history ↑ recalls inputs across all sessions in the same project NPM Version
@pi-lab/notify Desktop notifications NPM Version
@pi-lab/subagent A minimal synchronous subagent NPM Version

Archived packages

These packages are no longer maintained and are retained for reference. No further updates or fixes are planned.

Package Reason Version
@pi-lab/ssm-env No longer maintained. NPM Version
@pi-lab/codex-image Deprecated in favor of @pi-lab/openai. NPM Version
@pi-lab/grok-build Just using the Grok CLI directly. NPM Version
@pi-lab/xsearch Parallel and TinyFish can find some X posts; for more time-sensitive searches, use Grok directly. NPM Version

Install

Each package can be installed individually:

pi install npm:@pi-lab/permissions

Or pin to a git ref:

pi install git:github.com/anthod0/pi-lab@main

Development

pnpm install

# type-check all packages
pnpm typecheck

# test an extension locally without installing
pi -e ./packages/<name>/src/index.ts

For packages that publish compiled output:

cd packages/<name>
pnpm build
pi -e ./dist/index.mjs

TypeScript source packages

openai and websearch publish src/index.ts directly. Their build scripts only type-check; they do not produce dist files. Each package uses standard bundledDependencies to include the private @pi-lab/utils TypeScript source, so utils is maintained once but never needs a separate npm release. Tests are excluded from both the extension and bundled utils.

The workspace uses nodeLinker: hoisted, which pnpm requires for this packaging mode. Run pnpm install after updating the workspace configuration; installation and packing must use the same layout. Pi's host packages remain peer dependencies and are not bundled. The release workflow skips private packages.

Packaging regression tests pack both source extensions, install their tarballs offline outside the workspace, and load them through Pi:

pnpm --filter @pi-lab/websearch test

About

A collection of extensions for the pi coding agent.

Resources

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages