New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

git-metadata

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-metadata

Pi extension that provides git repository metadata — branch, remotes, commits, tags, status, and contributors

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

git-metadata

A Pi extension that provides a git_metadata tool for querying git repository information — branch, remotes, commits, tags, status, contributors, and diff stats.

Install

pi install npm:git-metadata

Or try it temporarily without installing:

pi -e npm:git-metadata

Tool: git_metadata

Actions

ActionDescriptionOptions
summaryFull repo overview — branch, tracking, ahead/behind, dirty/staged/untracked counts, last commit, remote URL—
branchCurrent branch with tracking info and ahead/behind counts—
remotesList configured remotes (name + URL)—
logRecent commits (hash, author, date, message)count (default: 10)
tagsRecent tags sorted by creation datecount (default: 10)
statusWorking tree status (modified, added, deleted, untracked)—
contributorsTop contributors by commit countcount (default: 10)
diff_statChanged files with insertions/deletions vs a refref (default: HEAD~1)

Examples

The LLM will use this tool automatically when you ask about your git repo. You can also be specific:

  • "What's the status of my repo?" → triggers summary
  • "Show me the last 20 commits" → triggers log with count: 20
  • "Who are the top contributors?" → triggers contributors
  • "What changed since the last tag?" → triggers diff_stat with ref: <last-tag>

Custom TUI Rendering

All results have compact and expanded views. Toggle expanded view to see full details (commit lists, contributor bars, file-by-file diff stats).

Development

Test locally:

cd git-metadata
pi -e ./extensions/git-metadata.ts

License

MIT

Keywords

pi-package

FAQs

Package last updated on 24 Mar 2026

Related posts