Install
Install with PiG
pig install npm:pi-simplifyInstall with Pi
pi install npm:pi-simplifyPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Verified with PiG. This package was installed and started with a PiG build. That is not a security audit or a compatibility guarantee.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"dist/index.js"
]
}README
Written by the package's publisher, shown as published in version 0.2.3 (README.md). PiG does not review it.
pi-simplify
A Pi extension that reviews recently changed code for clarity, consistency, and maintainability improvements.
Installation
pi install npm:pi-simplify
Usage
Review all uncommitted changes
/simplify
Review only staged changes
/simplify --staged
Review specific files
/simplify src/foo.ts src/bar.ts
Diff against a specific branch
/simplify --ref=main
What it does
When invoked, /simplify detects changed files and line ranges (via git diff) and instructs the agent to review only those changed lines with these principles:
- Preserve functionality: never change what the code does
- Apply project standards: follow conventions from CLAUDE.md / AGENTS.md
- Enhance clarity: reduce complexity, eliminate redundancy, improve naming
- Maintain balance: avoid over-simplification
The agent may read surrounding code for context, but edits stay within the changed line ranges. Newly added files are reviewed in full. It applies improvements one file at a time, runs tests to verify nothing breaks, and summarises the changes.
License
MIT