Skip to main content
GitNexus provides a powerful command-line interface for indexing repositories, managing the knowledge graph, and serving data to AI tools.

Quick Start

Available Commands

Core Commands

Repository Management

MCP Server

Direct Tool Access

These commands bypass MCP overhead and invoke the knowledge graph directly:

Advanced Commands

Global vs Repository-Specific

Global Commands

These commands work from any directory:
  • setup — Configures MCP globally for all projects
  • list — Shows all indexed repositories
  • serve — Serves all indexed repositories
  • mcp — Serves all indexed repositories via MCP

Repository-Specific Commands

These commands must be run from within a git repository:
  • analyze — Indexes the current repository
  • status — Shows index status for current repository
  • clean — Removes index for current repository
  • wiki — Generates documentation for current repository
  • query, context, impact, cypher — Query the knowledge graph

Storage Architecture

Local Repository Storage (.gitnexus/)

Each indexed repository gets a .gitnexus/ directory at its root:
The .gitnexus/ directory is automatically added to .gitignore.

Global Registry (~/.gitnexus/)

GitNexus maintains a global registry of all indexed repositories:
Purpose:
  • MCP server discovers and serves all indexed repos automatically
  • Multi-repo workflows without re-indexing
  • Centralized configuration for LLM providers

Command Options

Most commands support:
  • -h, --help — Show help for the command
  • -V, --version — Show GitNexus version

Memory Management

GitNexus automatically allocates up to 8GB of heap memory for large repositories (e.g., Linux kernel). If you need to customize this:

Next Steps

Index Repository

Learn how to index your first repository

Setup Editors

Configure MCP for your AI editor

Generate Wiki

Create LLM-powered documentation

Start Server

Run the local HTTP server