← Catalog

pi-gitnexus-fork

GitNexus knowledge graph integration for pi — enriches searches with call chains, execution flows, and blast radius

Extension

Install

Install with PiG

pig install npm:pi-gitnexus-fork

Install with Pi

pi install npm:pi-gitnexus-fork
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://github.com/tintinweb/pi-gitnexus/raw/master/media/screenshot.png",
  "skills": [
    "./skills"
  ],
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.7.1 (README.md). PiG does not review it.

pi-gitnexus

npm license

GitNexus knowledge graph integration for pi. Enriches every search, file read, and symbol lookup with call chains, callers/callees, and execution flows — automatically.

pi-gitnexus screenshot

Features

  • Automatic graph enrichment — appends call-chain context to read, grep, find, bash, and read_many results
  • Symbol lookups — callers, callees, execution flows, and impact analysis via MCP tools
  • Three transport modes — local binary (stdio), remote HTTP, or auto-detect
  • MCP server — exposes gitnexus_query, gitnexus_context, gitnexus_impact, gitnexus_detect_changes, and more
  • Search augmentation — filenames in grep/find results are enriched with per-file graph context in parallel
  • Configurable — pi-gitnexus.json for mode, server URL, and per-repo settings

Installation

For humans (npm)

npm install pi-gitnexus

For AI agents (pi settings.json)

Add to your pi settings.json packages array:

{
  "packages": ["pi-gitnexus"]
}

Git-sourced

In settings.json, reference the repo directly:

{
  "packages": ["github:buihongduc132/pi-gitnexus"]
}

Or clone into profile/git/github.com/buihongduc132/:

git clone https://github.com/buihongduc132/pi-gitnexus.git profile/git/github.com/buihongduc132/pi-gitnexus

Usage

Once installed, pi-gitnexus registers hooks and MCP tools automatically. No configuration needed for remote mode (default).

MCP Tools

ToolDescription
gitnexus_queryQuery execution flows by concept
gitnexus_contextGet full symbol context (callers, callees, flows)
gitnexus_impactBlast radius / impact analysis for a symbol
gitnexus_detect_changesDetect affected symbols from recent code changes
gitnexus_renameSafe rename across the call graph
gitnexus_cypherRaw Cypher queries against the graph

Search Enrichment

When the agent runs grep, find, bash, read, or read_many, pi-gitnexus appends graph context inline:

Agent reads auth/session.ts
  → file content returned normally
  → [GitNexus] appended: callers of the module, imports, related tests

Agent runs grep("validateUser")
  → grep results returned normally
  → [GitNexus] appended: Called by: login, signup / Calls: checkPermissions, getUser

Configuration

Config file: ~/.pi/pi-gitnexus.json

{
  "mode": "remote",
  "serverUrl": "http://100.114.135.99:4747/api/mcp"
}
FieldDefaultDescription
mode"auto"Transport: "local" (stdio), "remote" (HTTP), or "auto" (probe local, fallback remote)
serverUrl"http://100.114.135.99:4747/api/mcp"Remote GitNexus server URL

Environment overrides:

VariableDescription
GITNEXUS_MODEOverride mode (local, remote, auto)
GITNEXUS_SERVER_URLOverride remote server URL

License

MIT

Fork Attribution

This package is a fork of tintinweb/pi-gitnexus, originally licensed under MIT.

Repository: buihongduc132/pi-gitnexus