Fast path
Index your repository
Run from your repository root:This command:
- Indexes your codebase into a knowledge graph
- Installs agent skills to
.claude/skills/ - Registers Claude Code hooks
- Creates
AGENTS.md/CLAUDE.mdcontext files - Adds the repo to
~/.gitnexus/registry.json
Configure your editor
Run the one-time setup:This auto-detects your editors and writes the correct MCP configuration.
What your agent gets
7 MCP Tools
| Tool | What It Does |
|---|---|
list_repos | Discover all indexed repositories |
query | Process-grouped hybrid search (BM25 + semantic + RRF) |
context | 360-degree symbol view — categorized refs, process participation |
impact | Blast radius analysis with depth grouping and confidence |
detect_changes | Git-diff impact — maps changed lines to affected processes |
rename | Multi-file coordinated rename with graph + text search |
cypher | Raw Cypher graph queries |
6 Resource Types
| Resource | Purpose |
|---|---|
gitnexus://repos | List all indexed repositories |
gitnexus://repo/{name}/context | Codebase stats and staleness check |
gitnexus://repo/{name}/clusters | Functional clusters with cohesion scores |
gitnexus://repo/{name}/cluster/{name} | Cluster members and details |
gitnexus://repo/{name}/processes | All execution flows |
gitnexus://repo/{name}/process/{name} | Full process trace with steps |
4 Agent Skills
Automatically installed to.claude/skills/gitnexus/:
- Exploring — Navigate unfamiliar code using the knowledge graph
- Debugging — Trace bugs through call chains
- Impact Analysis — Analyze blast radius before changes
- Refactoring — Plan safe refactors using dependency mapping
Example: Query tool
Ask your agent to search for authentication-related code:Example: Impact tool
Check what breaks if you change a function:Manual editor setup
If you prefer manual configuration instead ofgitnexus setup:
- Claude Code
- Cursor
- OpenCode
- Windsurf
Editor support
| Editor | MCP | Skills | Hooks (auto-augment) | Support |
|---|---|---|---|---|
| Claude Code | ✓ | ✓ | ✓ (PreToolUse) | Full |
| Cursor | ✓ | ✓ | — | MCP + Skills |
| Windsurf | ✓ | — | — | MCP |
| OpenCode | ✓ | ✓ | — | MCP + Skills |
Claude Code gets the deepest integration with PreToolUse hooks that automatically enrich
grep, glob, and bash calls with knowledge graph context.Multi-repo workflow
GitNexus supports indexing multiple repositories:Next steps
Core Concepts
Learn how the knowledge graph works
MCP Integration
Deep dive into MCP tools and resources
CLI Reference
Explore all CLI commands
Agent Skills
Master the 4 agent skills