Skip to content

Commit 1636e07

Browse files
author
wangjichao
committed
merge from main
2 parents fa334dc + 574e86c commit 1636e07

13 files changed

Lines changed: 175 additions & 176 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ body:
8080
id: version
8181
attributes:
8282
label: Version
83-
description: What version of Graph-Code are you using?
83+
description: What version of Code-Graph-RAG are you using?
8484
placeholder: "0.1.0 or commit hash"
8585
validations:
8686
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ contact_links:
88
about: Read the documentation and setup guides
99
- name: 🎓 MCP Server Setup
1010
url: https://github.com/vitali87/code-graph-rag/blob/main/docs/claude-code-setup.md
11-
about: Setup Graph-Code as an MCP server with Claude Code
11+
about: Setup Code-Graph-RAG as an MCP server with Claude Code

.github/ISSUE_TEMPLATE/question.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: ❓ Question
2-
description: Ask a question about using Graph-Code
2+
description: Ask a question about using Code-Graph-RAG
33
title: "[Question]: "
44
labels: ["question"]
55
body:
@@ -62,7 +62,7 @@ body:
6262
- type: input
6363
id: version
6464
attributes:
65-
label: Graph-Code Version
65+
label: Code-Graph-RAG Version
6666
description: Version or commit hash
6767
placeholder: "0.1.0 or commit hash"
6868
validations:

.github/workflows/build-binaries.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,22 @@ jobs:
6060
shell: bash
6161
run: |
6262
if [ "${{ matrix.platform }}" = "windows" ]; then
63-
./dist/graph-code-*.exe --version
63+
./dist/code-graph-rag-*.exe --version
6464
else
65-
./dist/graph-code-* --version
65+
./dist/code-graph-rag-* --version
6666
fi
6767
6868
- name: Upload binary artifact
6969
uses: actions/upload-artifact@v4
7070
with:
71-
name: graph-code-${{ matrix.platform }}-${{ matrix.arch }}
72-
path: dist/graph-code-*
71+
name: code-graph-rag-${{ matrix.platform }}-${{ matrix.arch }}
72+
path: dist/code-graph-rag-*
7373
retention-days: 30
7474
compression-level: 9
7575

7676
- name: Upload to release
7777
if: startsWith(github.ref, 'refs/tags/v')
7878
uses: softprops/action-gh-release@v2
7979
with:
80-
files: dist/graph-code-*
80+
files: dist/code-graph-rag-*
8181
fail_on_unmatched_files: true

README.md

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<picture>
33
<source srcset="assets/logo-dark-any.png" media="(prefers-color-scheme: dark)">
44
<source srcset="assets/logo-light-any.png" media="(prefers-color-scheme: light)">
5-
<img src="assets/logo-dark.png" alt="Graph-Code Logo" width="480">
5+
<img src="assets/logo-dark-any.png" alt="Code-Graph-RAG Logo" width="480">
66
</picture>
77

88
<p>
@@ -24,7 +24,7 @@
2424
</p>
2525
</div>
2626

27-
# Graph-Code: A Graph-Based RAG System for Any Codebases
27+
# Code-Graph-RAG: A Graph-Based RAG System for Any Codebases
2828

2929
An accurate Retrieval-Augmented Generation (RAG) system that analyzes multi-language codebases using Tree-sitter, builds comprehensive knowledge graphs, and enables natural language querying of codebase structure and relationships as well as editing capabilities.
3030

@@ -33,7 +33,7 @@ An accurate Retrieval-Augmented Generation (RAG) system that analyzes multi-lang
3333

3434
## Latest News 🔥
3535

36-
- **[NEW]** **MCP Server Integration**: Graph-Code now works as an MCP server with Claude Code! Query and edit your codebase using natural language directly from Claude Code. [Setup Guide](docs/claude-code-setup.md)
36+
- **[NEW]** **MCP Server Integration**: Code-Graph-RAG now works as an MCP server with Claude Code! Query and edit your codebase using natural language directly from Claude Code. [Setup Guide](docs/claude-code-setup.md)
3737
- [2025/10/21] **Semantic Code Search**: Added intent-based code search using UniXcoder embeddings. Find functions by describing what they do (e.g., "error handling functions", "authentication code") rather than by exact names.
3838

3939
## 🚀 Features
@@ -249,7 +249,7 @@ Use the Makefile for common development tasks:
249249

250250
## 🎯 Usage
251251

252-
The Graph-Code system offers four main modes of operation:
252+
The Code-Graph-RAG system offers four main modes of operation:
253253
1. **Parse & Ingest**: Build knowledge graph from your codebase
254254
2. **Interactive Query**: Ask questions about your code in natural language
255255
3. **Export & Analyze**: Export graph data for programmatic analysis
@@ -509,17 +509,17 @@ The agent will incorporate the guidance from your reference documents when sugge
509509

510510
## 🔌 MCP Server (Claude Code Integration)
511511

512-
Graph-Code can run as an MCP (Model Context Protocol) server, enabling seamless integration with Claude Code and other MCP clients.
512+
Code-Graph-RAG can run as an MCP (Model Context Protocol) server, enabling seamless integration with Claude Code and other MCP clients.
513513

514514
### Quick Setup
515515

516516
```bash
517-
claude mcp add --transport stdio graph-code \
517+
claude mcp add --transport stdio code-graph-rag \
518518
--env TARGET_REPO_PATH=/absolute/path/to/your/project \
519519
--env CYPHER_PROVIDER=openai \
520520
--env CYPHER_MODEL=gpt-4 \
521521
--env CYPHER_API_KEY=your-api-key \
522-
-- uv run --directory /path/to/code-graph-rag graph-code mcp-server
522+
-- uv run --directory /path/to/code-graph-rag code-graph-rag mcp-server
523523
```
524524

525525
### Available Tools
@@ -558,20 +558,18 @@ The knowledge graph uses the following node types and relationships:
558558
<!-- SECTION:node_schemas -->
559559
| Label | Properties |
560560
|-----|----------|
561-
| Project | `{name: string}` |
562-
| Package | `{qualified_name: string, name: string, path: string}` |
563-
| Folder | `{path: string, name: string}` |
564-
| File | `{path: string, name: string, extension: string}` |
565-
| Module | `{qualified_name: string, name: string, path: string}` |
566-
| Class | `{qualified_name: string, name: string, decorators: list[string]}` |
567-
| Function | `{qualified_name: string, name: string, decorators: list[string]}` |
568-
| Method | `{qualified_name: string, name: string, decorators: list[string]}` |
569-
| Interface | `{qualified_name: string, name: string}` |
570-
| Enum | `{qualified_name: string, name: string}` |
571-
| Type | `{qualified_name: string, name: string}` |
572-
| Union | `{qualified_name: string, name: string}` |
573-
| ModuleInterface | `{qualified_name: string, name: string, path: string}` |
574-
| ModuleImplementation | `{qualified_name: string, name: string, path: string, implements_module: string}` |
561+
| Project | `{name: string, absolute_path: string, project_name: string}` |
562+
| Package | `{qualified_name: string, name: string, path: string, absolute_path: string, project_name: string}` |
563+
| Folder | `{path: string, name: string, absolute_path: string, project_name: string}` |
564+
| File | `{path: string, name: string, extension: string, absolute_path: string, project_name: string}` |
565+
| Module | `{qualified_name: string, name: string, path: string, absolute_path: string, project_name: string}` |
566+
| Class | `{qualified_name: string, name: string, path: string, absolute_path: string, project_name: string, decorators: list[string]}` |
567+
| Function | `{qualified_name: string, name: string, path: string, absolute_path: string, project_name: string, decorators: list[string]}` |
568+
| Method | `{qualified_name: string, name: string, path: string, absolute_path: string, project_name: string, decorators: list[string]}` |
569+
| Interface | `{qualified_name: string, name: string, path: string, absolute_path: string, project_name: string}` |
570+
| Enum | `{qualified_name: string, name: string, path: string, absolute_path: string, project_name: string}` |
571+
| ModuleInterface | `{qualified_name: string, name: string, path: string, absolute_path: string, project_name: string}` |
572+
| ModuleImplementation | `{qualified_name: string, name: string, path: string, absolute_path: string, project_name: string, implements_module: string}` |
575573
| ExternalPackage | `{name: string, version_spec: string}` |
576574
<!-- /SECTION:node_schemas -->
577575

@@ -729,7 +727,7 @@ The agent uses AST-based function targeting with Tree-sitter for precise code mo
729727

730728
### Adding New Languages
731729

732-
Graph-Code makes it easy to add support for any language that has a Tree-sitter grammar. The system automatically handles grammar compilation and integration.
730+
Code-Graph-RAG makes it easy to add support for any language that has a Tree-sitter grammar. The system automatically handles grammar compilation and integration.
733731

734732
> **⚠️ Recommendation**: While you can add languages yourself, we recommend waiting for official full support to ensure optimal parsing quality, comprehensive feature coverage, and robust integration. The languages marked as "In Development" above will receive dedicated optimization and testing.
735733
@@ -873,10 +871,10 @@ For issues or questions:
873871

874872
## 💼 Enterprise Services
875873

876-
Graph-Code is open source and free to use. For organizations that need additional support, we offer:
874+
Code-Graph-RAG is open source and free to use. For organizations that need additional support, we offer:
877875

878876
- **Technical Support Contracts** — Custom SLAs, priority issue resolution, and dedicated assistance
879-
- **Integration Consulting** — Help deploying Graph-Code in your infrastructure and integrating with your toolchain
877+
- **Integration Consulting** — Help deploying Code-Graph-RAG in your infrastructure and integrating with your toolchain
880878
- **Custom Development** — Tailored features, new language support, and workflow optimization for your specific codebase
881879
- **Training & Onboarding** — Get your team up to speed with hands-on training sessions
882880

assets/logo-dark-any.png

76.8 KB
Loading

assets/logo-light-any.png

480 Bytes
Loading

codebase_rag/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from .tools.language import cli as language_cli
2828

2929
app = typer.Typer(
30-
name="graph-code",
30+
name="code-graph-rag",
3131
help=ch.APP_DESCRIPTION,
3232
no_args_is_help=True,
3333
add_completion=False,

codebase_rag/constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ class DiffMarker:
677677
)
678678

679679
# (H) Default titles and prompts
680-
DEFAULT_TABLE_TITLE = "Graph-Code Initializing..."
680+
DEFAULT_TABLE_TITLE = "Code-Graph-RAG Initializing..."
681681
OPTIMIZATION_TABLE_TITLE = "Optimization Session Configuration"
682682
PROMPT_ASK_QUESTION = "Ask a question"
683683
PROMPT_YOUR_RESPONSE = "Your response"
@@ -864,7 +864,7 @@ class Architecture(StrEnum):
864864
AMD64 = "amd64"
865865

866866

867-
BINARY_NAME_TEMPLATE = "graph-code-{system}-{machine}"
867+
BINARY_NAME_TEMPLATE = "code-graph-rag-{system}-{machine}"
868868
BINARY_FILE_PERMISSION = 0o755
869869
DIST_DIR = "dist"
870870
BYTES_PER_MB_FLOAT = 1024 * 1024
@@ -2405,7 +2405,7 @@ class MCPParamName(StrEnum):
24052405

24062406

24072407
# (H) MCP server constants
2408-
MCP_SERVER_NAME = "graph-code"
2408+
MCP_SERVER_NAME = "code-graph-rag"
24092409
MCP_CONTENT_TYPE_TEXT = "text"
24102410
MCP_DEFAULT_DIRECTORY = "."
24112411
MCP_JSON_INDENT = 2

docs/claude-code-setup.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Claude Code Setup for Graph-Code MCP Server
1+
# Claude Code Setup for Code-Graph-RAG MCP Server
22

3-
Connect Graph-Code to Claude Code for powerful codebase analysis and editing.
3+
Connect Code-Graph-RAG to Claude Code for powerful codebase analysis and editing.
44

55
## Quick Setup
66

@@ -11,12 +11,12 @@ Configure the MCP server from your project directory:
1111
cd /path/to/your/project
1212

1313
# Add MCP server with project path
14-
claude mcp add --transport stdio graph-code \
14+
claude mcp add --transport stdio code-graph-rag \
1515
--env TARGET_REPO_PATH="$(pwd)" \
1616
--env CYPHER_PROVIDER=google \
1717
--env CYPHER_MODEL=gemini-2.0-flash \
1818
--env CYPHER_API_KEY=your-google-api-key \
19-
-- uv run --directory /absolute/path/to/code-graph-rag graph-code mcp-server
19+
-- uv run --directory /absolute/path/to/code-graph-rag code-graph-rag mcp-server
2020
```
2121

2222
**Replace**:
@@ -30,12 +30,12 @@ The `"$(pwd)"` automatically uses your current directory as the target repositor
3030
Specify the repository path explicitly:
3131

3232
```bash
33-
claude mcp add --transport stdio graph-code \
33+
claude mcp add --transport stdio code-graph-rag \
3434
--env TARGET_REPO_PATH=/absolute/path/to/your/project \
3535
--env CYPHER_PROVIDER=google \
3636
--env CYPHER_MODEL=gemini-2.0-flash \
3737
--env CYPHER_API_KEY=your-google-api-key \
38-
-- uv run --directory /absolute/path/to/code-graph-rag graph-code mcp-server
38+
-- uv run --directory /absolute/path/to/code-graph-rag code-graph-rag mcp-server
3939
```
4040

4141
**Replace**:
@@ -102,24 +102,24 @@ docker run -p 7687:7687 -p 7444:7444 memgraph/memgraph-platform
102102
Add separate named instances for different projects:
103103

104104
```bash
105-
claude mcp add --transport stdio graph-code-backend \
105+
claude mcp add --transport stdio code-graph-rag-backend \
106106
--env TARGET_REPO_PATH=/path/to/backend \
107107
--env CYPHER_PROVIDER=openai \
108108
--env CYPHER_MODEL=gpt-4 \
109109
--env CYPHER_API_KEY=your-api-key \
110-
-- uv run --directory /path/to/code-graph-rag graph-code mcp-server
110+
-- uv run --directory /path/to/code-graph-rag code-graph-rag mcp-server
111111

112-
claude mcp add --transport stdio graph-code-frontend \
112+
claude mcp add --transport stdio code-graph-rag-frontend \
113113
--env TARGET_REPO_PATH=/path/to/frontend \
114114
--env CYPHER_PROVIDER=openai \
115115
--env CYPHER_MODEL=gpt-4 \
116116
--env CYPHER_API_KEY=your-api-key \
117-
-- uv run --directory /path/to/code-graph-rag graph-code mcp-server
117+
-- uv run --directory /path/to/code-graph-rag code-graph-rag mcp-server
118118
```
119119

120120
## Troubleshooting
121121

122-
**Can't find uv/graph-code**: Use absolute paths from `which uv`
122+
**Can't find uv/code-graph-rag**: Use absolute paths from `which uv`
123123

124124
**Wrong repository analyzed**:
125125
- Without `TARGET_REPO_PATH`: MCP uses the directory where Claude Code is opened
@@ -132,5 +132,5 @@ claude mcp add --transport stdio graph-code-frontend \
132132
## Remove
133133

134134
```bash
135-
claude mcp remove graph-code
135+
claude mcp remove code-graph-rag
136136
```

0 commit comments

Comments
 (0)