How abhigyanpatwari/gitnexus works
GitNexus turns a repository into a searchable knowledge graph: users run analysis, the ingestion pipeline extracts and resolves code relationships, and the resulting index supports agent tools, CLI queries, and web exploration. The graph also represents embeddings, impact and trace analysis, semantic rename, Git-diff review, wiki generation, and automatic reindexing. Source excerpts establish selected pipeline, embedding, storage-resolution, and web-client links; README statements support documented capabilities where implementation excerpts are unavailable.
Main entry points: cli CLI commands · pipeline.ts Code ingestion · embedding-pipeline.ts Vector embeddings · storage-resolver.ts Index storage
Components 17
Indexing and analysis
- Code ingestion
gitnexus/src/core/ingestion/pipeline.ts - Knowledge graph
gitnexus/src/core/graph/graph.ts - Vector embeddings
gitnexus/src/core/embeddings/embedding-pipeline.ts - Graph queries
gitnexus/src/core/augmentation/engine.ts
Index and search
- Index storage
gitnexus/src/storage/storage-resolver.ts
User interfaces
- CLI commands
gitnexus/src/cli - MCP tools
gitnexus/src/mcp/server.ts - Web explorer
gitnexus-web/src/App.tsx - Backend client
gitnexus-web/src/services/backend-client.ts - UI state
gitnexus-web/src/hooks/useAppState.tsx
Extended capabilities
- Impact and trace
gitnexus/src/cli - Semantic rename
gitnexus/src/core - Git diff review
gitnexus/src/cli - Code wiki
gitnexus/src/core/wiki/llm-client.ts - Automatic reindex
gitnexus/src/core/auto-sync
Other components
- Developer
- Configured AI provider
Connections 17
- Developer → CLI commands: runs analysis
README.md - CLI commands → Code ingestion: indexes repository
README.md - Code ingestion → Knowledge graph: builds graph
gitnexus/src/core/ingestion/pipeline.ts - Code ingestion → Vector embeddings: generates vectors
- Vector embeddings → Index storage: publishes vectors
- Developer → MCP tools: uses agent tools
README.md - Developer → Web explorer: explores index
README.md - Web explorer → Backend client: connects through
gitnexus-web/src/App.tsx - UI state → Backend client: requests backend
gitnexus-web/src/hooks/useAppState.tsx - CLI commands → Graph queries: queries graph
- Developer → Impact and trace: checks impact
README.md - Developer → Semantic rename: previews rename
README.md - Developer → Git diff review: reviews changes
README.md - Developer → Code wiki: generates wiki
README.md - Configured AI provider → Code wiki: supplies model
README.md - CLI commands → Automatic reindex: starts watch
README.md - Index storage → Knowledge graph: resolves graph path
gitnexus/src/storage/storage-resolver.ts