@ramarivera/pi-model-guardrails

Model guardrails for Pi coding agent

Packages

Package details

extension

Install @ramarivera/pi-model-guardrails from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@ramarivera/pi-model-guardrails
Package
@ramarivera/pi-model-guardrails
Version
0.1.7
Published
Jun 1, 2026
Downloads
47/mo · 47/wk
Author
ramarivera
License
MIT
Types
extension
Size
63 KB
Dependencies
1 dependency · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./src/extension.ts"
  ]
}

Security note

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

README

@ramarivera/pi-model-guardrails

Model guardrails for Pi coding agent

Install

pi install npm:@ramarivera/pi-model-guardrails@0.0.1

Local Development

This checkout is live-enabled for Pi through:

.pi/extensions/model-guardrails/index.ts

That shim imports the package entrypoint in src/index.ts, which imports the extension factory from src/extension.ts. Tests use the same symbol so local behavior, package behavior, and manual Pi behavior do not drift.

npm install
npm run check
npm test
npm run test:e2e
npm pack --dry-run

Publishing

Publishing uses GitHub Actions trusted publishing in .github/workflows/publish.yml.

Before the first publish, configure npm trusted publishing:

  • owner/repo: ramarivera/pi-model-guardrails
  • workflow: .github/workflows/publish.yml
  • environment: blank unless the workflow is changed to require one

No NPM_TOKEN is required for trusted publishing.