@anthnykr/pi-study-commits
Pi extension for selecting recent git commits and injecting their diffs into the conversation.
Package details
Install @anthnykr/pi-study-commits from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@anthnykr/pi-study-commits- Package
@anthnykr/pi-study-commits- Version
0.1.1- Published
- Mar 19, 2026
- Downloads
- 55/mo · 7/wk
- Author
- anthnykr
- License
- MIT
- Types
- extension
- Size
- 19.4 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@anthnykr/pi-study-commits
Pi package for studying recent git commits from inside pi.
Install
pi install npm:@anthnykr/pi-study-commits
Commands
/study-commits
Open a picker for recent commits, then inject selected diffs into the conversation.
Examples:
/study-commits
/study-commits 10
/study-commits-max
Show or set the default commit count used by /study-commits.
Examples:
/study-commits-max
/study-commits-max 50
/study-commits-max clear
Precedence:
/study-commits 10/study-commits-max 50- built-in default
20
What it does
- checks current directory is a git repo
- loads recent commits with
git log - shows an interactive multi-select picker
- fetches selected diffs with
git show --stat --patch --no-color - caps total diff context at 4000 lines
- sends the assembled context back into the session as a user message