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 projectslist— Shows all indexed repositoriesserve— Serves all indexed repositoriesmcp— Serves all indexed repositories via MCP
Repository-Specific Commands
These commands must be run from within a git repository:analyze— Indexes the current repositorystatus— Shows index status for current repositoryclean— Removes index for current repositorywiki— Generates documentation for current repositoryquery,context,impact,cypher— Query the knowledge graph
Storage Architecture
Local Repository Storage (.gitnexus/)
Each indexed repository gets a .gitnexus/ directory at its root:
.gitnexus/ directory is automatically added to .gitignore.
Global Registry (~/.gitnexus/)
GitNexus maintains a global registry of all indexed repositories:
- 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