A Pi package with personal extensions by ngutman.
This repository is intentionally similar in spirit and layout to mitsuhiko/agent-stuff
Path: pi-extensions/repo-shared-sessions/index.ts
Commands:
/repo-resume— open an interactive selector of sessions from the same git repository/repo-resume latest— jump directly to the most recently modified matching session/repo-sessions— alias for/repo-resume
How repository matching works:
- Prefer
remote.origin.url(normalized; supports SSH/HTTPS variants) - Fall back to git top-level path when no remote exists
Path: pi-extensions/autoname-sessions/index.ts
Command:
/autoname-sessions [--dry-run] [--force] [--limit <n>] [--quiet]
This command infers concise purpose-based session names from transcript samples, with deterministic fallback behavior and a local cache to avoid unnecessary renames.
Path: pi-extensions/copy-last-response/index.ts
Triggers:
Alt+O— copy the last completed assistant response to the clipboard as markdown/copy-last-response— same behavior via slash command
This copies only assistant text blocks, preserving markdown and excluding thinking/tool-call blocks.
docs/slash-commands/landpr.md— a reusable PR landing workflow that combines the core flow fromagent-scriptswith extra safety checks from a stricter internal prompt variant, including head-drift detection, safer PR comment posting, merge verification, and recovery guidance.docs/slash-commands/review-security.md— a red-team-style PR security review prompt that readsSECURITY.mdfirst, checks for policy/boundary violations, and prioritizes exploitability over generic review commentary.
Install directly from GitHub:
pi install git:github.com/ngutman/agent-stuffInstall from a local clone:
pi install ~/workspace/agent-stuffOne-off load of a single extension:
pi -e ~/workspace/agent-stuff/pi-extensions/repo-shared-sessions/index.ts
pi -e ~/workspace/agent-stuff/pi-extensions/copy-last-response/index.ts- Extensions are written in TypeScript and loaded by Pi via runtime transpilation.
- This package declares Pi core packages as
peerDependencies. - Keep extension behavior safe and deterministic (no hidden side effects).
MIT