From 5674b2201d433f20896d432fb309fbcde25ac2a2 Mon Sep 17 00:00:00 2001 From: abhigyanpatwari Date: Tue, 3 Mar 2026 00:20:27 +0530 Subject: [PATCH] feat: merge Laravel route detection (PR #133), revert unwanted doc changes Merged PR #133 which adds AST-based Laravel Route::* extraction. Reverted AGENTS.md, CLAUDE.md, and README.md to preserve current config, crypto warning, Discord link, and correct language support count (12, including Kotlin/Swift). Co-Authored-By: Claude Opus 4.6 --- AGENTS.md | 53 +++++++---------------------------------------------- CLAUDE.md | 51 +++++++-------------------------------------------- README.md | 35 +++++++++++++++++++++++++++++------ 3 files changed, 43 insertions(+), 96 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f27f6caa2..aad422632 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,16 +1,10 @@ -# AI Agent Rules - # GitNexus MCP -This project is indexed by GitNexus as **GitNexus** (1348 symbols, 3492 relationships, 104 execution flows). - -GitNexus provides a knowledge graph over this codebase — call chains, blast radius, execution flows, and semantic search. +This project is indexed by GitNexus as **GitnexusV2** (1444 symbols, 3700 relationships, 111 execution flows). ## Always Start Here -For any task involving code understanding, debugging, impact analysis, or refactoring, you must: - 1. **Read `gitnexus://repo/{name}/context`** — codebase overview + check index freshness 2. **Match your task to a skill below** and **read that skill file** 3. **Follow the skill's workflow and checklist** @@ -21,44 +15,11 @@ For any task involving code understanding, debugging, impact analysis, or refact | Task | Read this skill file | |------|---------------------| -| Understand architecture / "How does X work?" | `.claude/skills/gitnexus/exploring/SKILL.md` | -| Blast radius / "What breaks if I change X?" | `.claude/skills/gitnexus/impact-analysis/SKILL.md` | -| Trace bugs / "Why is X failing?" | `.claude/skills/gitnexus/debugging/SKILL.md` | -| Rename / extract / split / refactor | `.claude/skills/gitnexus/refactoring/SKILL.md` | - -## Tools Reference - -| Tool | What it gives you | -|------|-------------------| -| `query` | Process-grouped code intelligence — execution flows related to a concept | -| `context` | 360-degree symbol view — categorized refs, processes it participates in | -| `impact` | Symbol blast radius — what breaks at depth 1/2/3 with confidence | -| `detect_changes` | Git-diff impact — what do your current changes affect | -| `rename` | Multi-file coordinated rename with confidence-tagged edits | -| `cypher` | Raw graph queries (read `gitnexus://repo/{name}/schema` first) | -| `list_repos` | Discover indexed repos | - -## Resources Reference - -Lightweight reads (~100-500 tokens) for navigation: - -| Resource | Content | -|----------|---------| -| `gitnexus://repo/{name}/context` | Stats, staleness check | -| `gitnexus://repo/{name}/clusters` | All functional areas with cohesion scores | -| `gitnexus://repo/{name}/cluster/{clusterName}` | Area members | -| `gitnexus://repo/{name}/processes` | All execution flows | -| `gitnexus://repo/{name}/process/{processName}` | Step-by-step trace | -| `gitnexus://repo/{name}/schema` | Graph schema for Cypher | - -## Graph Schema - -**Nodes:** File, Function, Class, Interface, Method, Community, Process -**Edges (via CodeRelation.type):** CALLS, IMPORTS, EXTENDS, IMPLEMENTS, DEFINES, MEMBER_OF, STEP_IN_PROCESS - -```cypher -MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "myFunc"}) -RETURN caller.name, caller.filePath -``` +| Understand architecture / "How does X work?" | `.claude/skills/gitnexus/gitnexus-exploring/SKILL.md` | +| Blast radius / "What breaks if I change X?" | `.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md` | +| Trace bugs / "Why is X failing?" | `.claude/skills/gitnexus/gitnexus-debugging/SKILL.md` | +| Rename / extract / split / refactor | `.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md` | +| Tools, resources, schema reference | `.claude/skills/gitnexus/gitnexus-guide/SKILL.md` | +| Index, status, clean, wiki CLI commands | `.claude/skills/gitnexus/gitnexus-cli/SKILL.md` | diff --git a/CLAUDE.md b/CLAUDE.md index 7986daec7..aad422632 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,14 +1,10 @@ # GitNexus MCP -This project is indexed by GitNexus as **GitNexus** (1348 symbols, 3492 relationships, 104 execution flows). - -GitNexus provides a knowledge graph over this codebase — call chains, blast radius, execution flows, and semantic search. +This project is indexed by GitNexus as **GitnexusV2** (1444 symbols, 3700 relationships, 111 execution flows). ## Always Start Here -For any task involving code understanding, debugging, impact analysis, or refactoring, you must: - 1. **Read `gitnexus://repo/{name}/context`** — codebase overview + check index freshness 2. **Match your task to a skill below** and **read that skill file** 3. **Follow the skill's workflow and checklist** @@ -19,44 +15,11 @@ For any task involving code understanding, debugging, impact analysis, or refact | Task | Read this skill file | |------|---------------------| -| Understand architecture / "How does X work?" | `.claude/skills/gitnexus/exploring/SKILL.md` | -| Blast radius / "What breaks if I change X?" | `.claude/skills/gitnexus/impact-analysis/SKILL.md` | -| Trace bugs / "Why is X failing?" | `.claude/skills/gitnexus/debugging/SKILL.md` | -| Rename / extract / split / refactor | `.claude/skills/gitnexus/refactoring/SKILL.md` | - -## Tools Reference - -| Tool | What it gives you | -|------|-------------------| -| `query` | Process-grouped code intelligence — execution flows related to a concept | -| `context` | 360-degree symbol view — categorized refs, processes it participates in | -| `impact` | Symbol blast radius — what breaks at depth 1/2/3 with confidence | -| `detect_changes` | Git-diff impact — what do your current changes affect | -| `rename` | Multi-file coordinated rename with confidence-tagged edits | -| `cypher` | Raw graph queries (read `gitnexus://repo/{name}/schema` first) | -| `list_repos` | Discover indexed repos | - -## Resources Reference - -Lightweight reads (~100-500 tokens) for navigation: - -| Resource | Content | -|----------|---------| -| `gitnexus://repo/{name}/context` | Stats, staleness check | -| `gitnexus://repo/{name}/clusters` | All functional areas with cohesion scores | -| `gitnexus://repo/{name}/cluster/{clusterName}` | Area members | -| `gitnexus://repo/{name}/processes` | All execution flows | -| `gitnexus://repo/{name}/process/{processName}` | Step-by-step trace | -| `gitnexus://repo/{name}/schema` | Graph schema for Cypher | - -## Graph Schema - -**Nodes:** File, Function, Class, Interface, Method, Community, Process -**Edges (via CodeRelation.type):** CALLS, IMPORTS, EXTENDS, IMPLEMENTS, DEFINES, MEMBER_OF, STEP_IN_PROCESS - -```cypher -MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "myFunc"}) -RETURN caller.name, caller.filePath -``` +| Understand architecture / "How does X work?" | `.claude/skills/gitnexus/gitnexus-exploring/SKILL.md` | +| Blast radius / "What breaks if I change X?" | `.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md` | +| Trace bugs / "Why is X failing?" | `.claude/skills/gitnexus/gitnexus-debugging/SKILL.md` | +| Rename / extract / split / refactor | `.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md` | +| Tools, resources, schema reference | `.claude/skills/gitnexus/gitnexus-guide/SKILL.md` | +| Index, status, clean, wiki CLI commands | `.claude/skills/gitnexus/gitnexus-cli/SKILL.md` | diff --git a/README.md b/README.md index 119173b0f..6a236f47e 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,30 @@ # GitNexus +⚠️ Important Notice:** GitNexus has NO official cryptocurrency, token, or coin. Any token/coin using the GitNexus name on Pump.fun or any other platform is **not affiliated with, endorsed by, or created by** this project or its maintainers. Do not purchase any cryptocurrency claiming association with GitNexus. -abhigyanpatwari%2FGitNexus | Trendshift +
-**Building git for agent context.** + + abhigyanpatwari%2FGitNexus | Trendshift + + +

Join the official Discord to discuss ideas, issues etc!

+ + + Discord + + + npm version + + + License: PolyForm Noncommercial + + +
+ +**Building nervous system for agent context.** Indexes any codebase into a knowledge graph — every dependency, call chain, cluster, and execution flow — then exposes it through smart tools so AI agents never miss code. -[![npm version](https://img.shields.io/npm/v/gitnexus.svg)](https://www.npmjs.com/package/gitnexus) -[![License: PolyForm Noncommercial](https://img.shields.io/badge/License-PolyForm%20Noncommercial-blue.svg)](https://polyformproject.org/licenses/noncommercial/1.0.0/) @@ -72,6 +89,12 @@ To configure MCP for your editor, run `npx gitnexus setup` once — or set it up > **Claude Code** gets the deepest integration: MCP tools + agent skills + PreToolUse hooks that automatically enrich grep/glob/bash calls with knowledge graph context. +### Community Integrations + +| Agent | Install | Source | +|-------|---------|--------| +| [pi](https://pi.dev) | `pi install npm:pi-gitnexus` | [pi-gitnexus](https://github.com/tintinweb/pi-gitnexus) | + If you prefer manual configuration: **Claude Code** (full support — MCP + skills + hooks): @@ -297,7 +320,7 @@ GitNexus builds a complete knowledge graph of your codebase through a multi-phas ### Supported Languages -TypeScript, JavaScript, Python, Java, C, C++, C#, Go, Rust, PHP +TypeScript, JavaScript, Python, Java, Kotlin, C, C++, C#, Go, Rust, PHP, Swift --- @@ -459,7 +482,7 @@ The wiki generator reads the indexed graph structure, groups files into modules - [X] Wiki Generation, Multi-File Rename, Git-Diff Impact Analysis - [X] Process-Grouped Search, 360-Degree Context, Claude Code Hooks -- [X] Multi-Repo MCP, Zero-Config Setup, 9 Language Support +- [X] Multi-Repo MCP, Zero-Config Setup, 11 Language Support - [X] Community Detection, Process Detection, Confidence Scoring - [X] Hybrid Search, Vector Index