pi-co-authored-by
A Pi extension that automatically appends Co-Authored-By and Generated-By git trailers to commit messages with the model name and pi version
Package details
Install pi-co-authored-by from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-co-authored-by- Package
pi-co-authored-by- Version
0.2.0- Published
- Mar 29, 2026
- Downloads
- 51/mo · 14/wk
- Author
- brunogarcia
- License
- MIT
- Types
- extension
- Size
- 5 KB
- Dependencies
- 0 dependencies · 1 peer
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
pi-co-authored-by
A Pi extension that automatically appends git trailers to commit messages when the agent runs git commit. Adds the model name and pi version so you always know which AI helped write the code.
Features
Co-Authored-By trailer — Credits the model that helped write the code:
Co-Authored-By: Claude Sonnet 4 <noreply@pi.dev>
Generated-By trailer — Records which version of Pi was used:
Generated-By: pi 0.63.2
Example commit:
fix: resolve null pointer
Co-Authored-By: Claude Sonnet 4 <noreply@pi.dev>
Generated-By: pi 0.63.2
Requirements
- Pi coding agent
Install
pi install npm:pi-co-authored-by
Or try it without installing:
pi -e npm:pi-co-authored-by
You can also install from git:
pi install git:github.com/bruno-garcia/pi-co-authored-by
How it works
The extension hooks into Pi's tool_call event. When it detects a git commit -m command, it appends two extra -m flags to create git trailers with the current model name and pi version.
| What | Value |
|---|---|
Co-Authored-By |
Model name (e.g., Claude Sonnet 4) |
Generated-By |
Pi version (e.g., pi 0.52.12) |
Development
npm install
npm test
License
MIT