pi-thegreataxios-staples

Personal staple extension for pi coding-agent — protected paths

Package details

extension

Install pi-thegreataxios-staples from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-thegreataxios-staples
Package
pi-thegreataxios-staples
Version
0.1.1
Published
May 1, 2026
Downloads
not available
Author
thegreataxios
License
MIT
Types
extension
Size
4.6 KB
Dependencies
1 dependency · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

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

README

pi-thegreataxios-staples

Personal staple extension for pi. Blocks writes/edits to sensitive files.

Install

pi install npm:pi-thegreataxios-staples

Quick Start

pi -e ./index.ts

Features

Protected Paths

Blocks write and edit operations to sensitive files via tool_call hook.

Path Reason
.env (exact file) Secrets and environment variables
.env.* (e.g. .env.local, .env.production) Environment-specific secrets
.env.example allowed Template file, not secrets
.dev.vars Cloudflare Workers secrets
.git/ Version control integrity
node_modules/ Dependency tree stability

Architecture

index.ts                     # Entry — activates protected paths
features/
└── protected-paths.ts       # tool_call hook with filename-aware blocking

Single dependency: @mariozechner/pi-coding-agent.