Tools for researching and exploring Git repositories with Pi agent. Clone, update, and summarize codebases on the fly.
Codebase Exploration — Quickly download and orient yourself in a new repository. Perfect for researching dependencies, libraries, or competitor codebases.
Smart Defaults — Uses shallow clones (--depth 1) and hard resets to keep research fast and your workspace clean.
Automated Summarization — Automatically extracts directory structure, README content, and latest commit info to give you immediate context.
pi install npm:@mjakl/pi-git-researchpi install git:github.com/mjakl/pi-git-researchClone this repository into your project-local or global Pi extensions directory:
cd .pi/extensions # or ~/.pi/agent/extensions
git clone https://github.com/mjakl/pi-git-research.git
cd pi-git-research
npm installYou can configure where repositories are checked out.
Option 1: CLI Flag
pi --repo-base-dir ~/Projects/researchOption 2: settings.json
Add this to your global or project settings.json:
{
"gitResearch": {
"baseDir": "~/Projects/research"
}
}If not configured, repositories are cloned into your current working directory.
Clone or update a git repository for research.
url: Repository URL (supports GitHub shorthands likeuser/repo).branch: (Optional) Specific branch or tag.shallow: (Optional) Use shallow clone (default:true).
Get a quick overview of a cloned repository.
path: Path to the local repository.depth: (Optional) Directory tree depth (default:2).
List branches and tags available in a repository (local or remote).
A high-level skill that coordinates the tools to download, summarize, and explain a repository in one go.
/explore-repo https://github.com/mariozechner/pi-coding-agent| Feature | Built-in Bash | This Extension |
|---|---|---|
| Cloning | Manual git clone |
Automatic normalization & updating |
| Updates | Manual fetch/reset | One-call hard reset & clean |
| Context | None | Automatic README & tree extraction |
| Workflow | Multiple steps | Integrated explore-repo skill |
MIT