pi-co-authored-by
v0.1.1
Published
A Pi extension that automatically appends Co-Authored-By and Generated-By git trailers to commit messages with the model name and pi version
Downloads
167
Maintainers
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 <[email protected]>Generated-By trailer — Records which version of Pi was used:
Generated-By: pi 0.52.12Example commit:
fix: resolve null pointer
Co-Authored-By: Claude Sonnet 4 <[email protected]>
Generated-By: pi 0.52.12Requirements
- Pi coding agent
Install
pi install npm:pi-co-authored-byOr try it without installing:
pi -e npm:pi-co-authored-byYou can also install from git:
pi install git:github.com/bruno-garcia/pi-co-authored-byHow 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 testLicense
MIT
