@diegopetrucci/pi-extensions
A collection of pi extensions and skills for annotation UIs, context management, workflow audits, contrarian review, review-comment triage, notifications, brrr push alerts, safety guards, GitHub research, repo-local knowledge, todos, tool rendering, model
Package details
Install @diegopetrucci/pi-extensions from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@diegopetrucci/pi-extensions- Package
@diegopetrucci/pi-extensions- Version
0.1.83- Published
- Nov 3, 2026
- Downloads
- 2,718/mo · 785/wk
- Author
- diegopetrucci
- License
- MIT AND Apache-2.0
- Types
- extension, skill
- Size
- 2.5 MB
- Dependencies
- 3 dependencies · 4 peers
Pi manifest JSON
{
"image": "https://raw.githubusercontent.com/diegopetrucci/pi-extensions/main/assets/oracle-preview.svg",
"skills": [
"./extensions/illustrations-to-explain-things/skills"
],
"extensions": [
"./extensions/agent-workflow-audit/index.ts",
"./extensions/annotate-git-diff/index.ts",
"./extensions/annotate-last-message/index.ts",
"./extensions/brrr/index.ts",
"./extensions/code-reviewer/index.ts",
"./extensions/confirm-destructive/index.ts",
"./extensions/context-cap/index.ts",
"./extensions/context-inspector/index.ts",
"./extensions/contrarian/index.ts",
"./extensions/developer/index.ts",
"./extensions/diff-summarizer/index.ts",
"./extensions/dirty-repo-guard/index.ts",
"./extensions/dynamic-context-pruning/index.ts",
"./extensions/fast/index.ts",
"./extensions/gnosis/index.ts",
"./extensions/inline-bash/index.ts",
"./extensions/librarian/index.ts",
"./extensions/minimal-footer/index.ts",
"./extensions/notify/index.ts",
"./extensions/oracle/index.ts",
"./extensions/permission-gate/index.ts",
"./extensions/project-mcp-json/index.ts",
"./extensions/quiet-tools/index.ts",
"./extensions/repo-scout/index.ts",
"./extensions/review/index.ts",
"./extensions/test-runner/index.ts",
"./extensions/todo/index.ts",
"./extensions/triage-comments/index.ts",
"./extensions/web-scout/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-extensions
A collection of pi agent extensions I made. (Btw, I am also building my own harness on top of pi. Have a look if that sounds interesting!)
Subagents
code-reviewer: Adds acode_reviewersubagent tool with read-only built-in tools plus configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4) that reviews local changes for ticket fit, diff mismatches, correctness, security, simplicity, and validation gaps without implementing fixes, auto-selects a contrarian-style opposite-provider review model when available, and clamps requested thinking to the chosen model's capabilities.contrarian: Adds a contrarian tool with read-only built-in tools plus configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4) that spins up an isolated subprocess to stress-test plans, designs, assumptions, bug hypotheses, and conclusions by steelmanning the strongest opposing case.developer: Adds adevelopersubagent tool that implements one task in an isolated child agent using the current session model and thinking, withread,write,edit,grep,find,ls, unrestrictedbash, and configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4);write/editare limited to the checkout.diff-summarizer: Adds a read-onlydiff_summarizersubagent tool that summarizes a diff or the current local changes and highlights review risk using the current session model atmediumthinking, withread,grep,find,ls, guarded read-onlybash(directgit/gh/pwdonly), and configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4).librarian: Adds a GitHub research scout with a local repo checkout cache disabled by default under the OS user cache directory, toggleable with/librarian-cache, configurable subagent model/thinking defaults via/librarian-config, cached repos expiring after 7 days of non-use, and configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4).oracle: Adds an Amp-style oracle tool with read-only built-in tools plus configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4) that auto-selects the strongest reasoning model on the current provider/subscription, supports persisted/oraclemodel/thinking defaults, requests xhigh reasoning by default and clamps to model capabilities, and shows live status while running.repo-scout: Adds a read-onlyrepo_scoutsubagent tool that scans a repository and reports stack, conventions, commands, and hotspots using the current session model atmediumthinking, withread,grep,find,ls, guarded read-onlybash(directgit/gh/pwdonly), and configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4).test-runner: Adds atest_runnersubagent tool that runs exact validation shell commands in order in an isolated child agent using the current session model atlowthinking, stops at the first failure, and reports PASS/FAIL per step; tools are unrestrictedbashand configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4).web-scout: Adds a read-onlyweb_scoutsubagent tool that researches a question on the web via the hosted Exa MCP endpoint (no API key required; optionalEXA_API_KEYfor higher limits) and returns citation-backed findings using the current session model atmediumthinking, withweb_search,fetch_url(http(s) only),read,grep,find,ls, and configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4).
Providers
fast: Adds/fastplus the session-only/ultrafasttoggle for supported direct OpenAI API, OpenAI Codex, and Anthropic Claude models; Ultrafast is limited to API-keygpt-6-astraon OpenAI's canonical Responses endpoint.
UI
git-footer: Adds TLH-style git dirty counts, ahead/behind, and optional PR number to pi's built-in footer status area. This package is standalone-only and is not auto-loaded by the@diegopetrucci/pi-extensionscollection package.minimal-footer: Replaces pi's built-in footer with a minimal configurable two-line layout: branch plus cached git dirty/ahead/PR status and repo on the first line, context/model on the second, optionalDUMB ZONE, optionalxpmarker, plus OpenAI Codex usage windows labeled from their reported durations.quiet-tools: Always renders collapsed built-in tool rows andmcp__*rows as a one-line invocation plus an expand hint without changing model-visible tool results; inspect status with/quiet-tools status.
/ Slash commands
agent-workflow-audit: Adds/agent-workflow-audit, which runs an isolated repo workflow audit subagent with configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4) and returns only the final distilled report to the main session.annotate-git-diff: Adds/annotate-git-diff, a native Glimpse UI where explicit Submit sends structured feedback to the agent and close recovery keeps an unsent draft in the editor.annotate-last-message: Adds/annotate-last-message, a native Glimpse UI for annotating the latest assistant reply and sending planning-oriented feedback directly to the agent.review: Adds/reviewand/end-reviewfor interactive code reviews of local changes, commits, PRs, and selected paths.triage-comments: Adds/triage-commentsand atriage_commentssubagent tool with read-only built-in tools plus configured MCP tools (run without confirmation, may have side effects, Pi >=1.0.4) that can auto-detect the current branch's PR, filter resolved/outdated inline comments, classify selected review comments with evidence, and suggest handling options without implementing changes
Context management
context-cap: Caps effective model context windows at 350k tokens by default so pi avoids thedumb zone; toggle temporarily with/context-cap.context-inspector: Adds/context, a local self-contained HTML dashboard that breaks down where the current session context is going, with category overview, top offenders, and drilldown search.dynamic-context-pruning: Automatically prunes duplicate tool results, stale errored inputs, and superseded file-op outputs from long sessions behind a cache-aware net-benefit gate, with a/prunepicker and/context-pruningstatus/control commands.
Safety
confirm-destructive: Confirms before destructive session actions like clear, switch, and fork.dirty-repo-guard: Prompts before new sessions, session switches, or forks when the current git repo has uncommitted changes.permission-gate: Prompts for confirmation before dangerous bash commands and protectedwrite/edittargets like.git,node_modules, and secret-bearing.envfiles; rejects namedpowershelltool calls as unsupported.
Quality of life
brrr: Sends brrr push notifications when pi finishes an agent turn and is ready for input, with optional macOS idle gating.gnosis: Exposes thegnrepo-local knowledge base CLI as an agent tool for searching and recording durable project decisions, constraints, and intent.illustrations-to-explain-things: Adds a skill for generating clean, absurd Xiaohei-style article illustrations, shot lists, image edits, and visual metaphors.inline-bash: Expands!{command}snippets in user prompts by running them through bash before the prompt reaches the agent.notify: Sends configurable terminal, desktop, bell, and sound notifications when pi finishes and is ready for input, including tmux-aware terminal notifications.project-mcp-json: Reads a Claude Code-style.mcp.jsonfrom the project working directory and registers the configured MCP servers with pi viapi.registerMcpServer. Requires a trusted project and follows Pi's project trust semantics — run/trustin the project to enable loading.todo: Adds a branch-awaretodotool for the agent and a/todosviewer for users..
Deprecated
claude-fast: Deprecated standalone leftover. It no longer changes provider requests; usefast.openai-fast: Deprecated standalone leftover. It no longer changes provider requests; usefast.
Install
Full collection:
pi install npm:@diegopetrucci/pi-extensions
Or a specific extension:
pi install npm:@diegopetrucci/pi-quiet-tools
Then reload pi:
/reload
Development
Run npm run format for the supported source and test files; CI runs npm run format:check.