pi-simplify

A Pi extension that reviews recently changed code for clarity, consistency, and maintainability.

Package details

extension

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

$ pi install npm:pi-simplify
Package
pi-simplify
Version
0.2.0
Published
Apr 10, 2026
Downloads
3,127/mo · 2,375/wk
Author
mdevy
License
MIT
Types
extension
Size
19.1 KB
Dependencies
0 dependencies · 4 peers
Pi manifest JSON
{
  "extensions": [
    "dist/index.js"
  ]
}

Security note

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

README

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 (via git diff) and instructs the agent to review them 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 reads each file, applies improvements one at a time, runs tests to verify nothing breaks, and summarizes the changes.

License

MIT